default to make new windows in the same working directory
This commit is contained in:
+4
-5
@@ -3,23 +3,22 @@ unbind C-b
|
|||||||
set-option -g prefix C-a
|
set-option -g prefix C-a
|
||||||
bind-key C-a send-prefix
|
bind-key C-a send-prefix
|
||||||
|
|
||||||
# Reload config with Prefix + r
|
unbind c
|
||||||
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
|
||||||
bind r source-file ~/.tmux.conf \; display "Reloaded!"
|
bind r source-file ~/.tmux.conf \; display "Reloaded!"
|
||||||
|
|
||||||
# Enable mouse support for pane selection and scrolling
|
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
# Use Vim-like keys for pane navigation
|
|
||||||
bind h select-pane -L
|
bind h select-pane -L
|
||||||
bind j select-pane -D
|
bind j select-pane -D
|
||||||
bind k select-pane -U
|
bind k select-pane -U
|
||||||
bind l select-pane -R
|
bind l select-pane -R
|
||||||
|
|
||||||
# Split windows with Prefix + | (vertical) and Prefix + - (horizontal)
|
|
||||||
bind | split-window -h
|
bind | split-window -h
|
||||||
bind - split-window -v
|
bind - split-window -v
|
||||||
|
|
||||||
bind g popup -E -w 80% -h 90% -d "#{pane_current_path}" lazygit
|
bind g popup -E -w 80% -h 90% -d "#{pane_current_path}" -B lazygit
|
||||||
|
|
||||||
set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
set -as terminal-overrides ",xterm-256color:Tc"
|
set -as terminal-overrides ",xterm-256color:Tc"
|
||||||
|
|||||||
Reference in New Issue
Block a user