mirror of
https://github.com/eRgo35/nix-config.git
synced 2026-02-04 15:46:12 +01:00
tmux mods
This commit is contained in:
@@ -39,8 +39,7 @@ in {
|
|||||||
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
|
[[ ! -f ${./p10k.zsh} ]] || source ${./p10k.zsh}
|
||||||
eval "$(zoxide init --cmd cd zsh)"
|
eval "$(zoxide init --cmd cd zsh)"
|
||||||
if [ -x "$(command -v tmux)" ] && [ -n "$DISPLAY" ] && [ -z "$TMUX" ]; then
|
if [ -x "$(command -v tmux)" ] && [ -n "$DISPLAY" ] && [ -z "$TMUX" ]; then
|
||||||
# exec tmux new-session -A -s $USER >/dev/null 2>&1
|
exec tmux new-session -A -s $USER >/dev/null 2>&1
|
||||||
exec tmux new -AD -t main -s main
|
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -13,6 +13,26 @@
|
|||||||
yank
|
yank
|
||||||
];
|
];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
# reattach userspaces
|
||||||
|
set -g default-command "reattach-to-user-namespace -l zsh"
|
||||||
|
|
||||||
|
# history limit
|
||||||
|
set -g history-limit 5000
|
||||||
|
|
||||||
|
# increase repeat time
|
||||||
|
set -g repeat-time 1000
|
||||||
|
|
||||||
|
# decrese command delay
|
||||||
|
set -sg escape-time 1
|
||||||
|
|
||||||
|
# faster key repetition
|
||||||
|
set -s escape-time 0
|
||||||
|
|
||||||
|
setw -g aggressive-resize on
|
||||||
|
|
||||||
|
# reload tmux while using tmux
|
||||||
|
bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded!"
|
||||||
|
|
||||||
# Shift Alt vim keys to switch windows
|
# Shift Alt vim keys to switch windows
|
||||||
bind -n M-H previous-window
|
bind -n M-H previous-window
|
||||||
bind -n M-L next-window
|
bind -n M-L next-window
|
||||||
@@ -25,6 +45,8 @@
|
|||||||
# Open panes in current directory
|
# Open panes in current directory
|
||||||
bind '"' split-window -v -c "#{pane_current_path}"
|
bind '"' split-window -v -c "#{pane_current_path}"
|
||||||
bind % split-window -h -c "#{pane_current_path}"
|
bind % split-window -h -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user