1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

update tmux.conf

This commit is contained in:
Henrik Hautakoski 2024-11-03 13:56:09 +01:00
parent d27e26379d
commit 7c3d903423

View file

@ -28,12 +28,6 @@ setw -g window-status-current-style 'fg=#0E1019 bg=color4 bold'
setw -g window-status-current-format ' #I #W '
setw -g window-status-separator ''
# tmux fzf plugin
TMUX_FZF_OPTIONS="-p -w 40% -h 40% --border=sharp --separator='─' --margin=0 --layout=reverse"
TMUX_FZF_PREVIEW=0
TMUX_FZF_SWITCH_CURRENT=1
# Keybinds
# remap prefix
@ -41,11 +35,11 @@ unbind C-b
set -g prefix C-a
bind C-a send-prefix
bind-key "e" run-shell "tmux neww ~/bin/tmuxs"
bind-key "n" run-shell -b "~/.config/tmux-plugins/tmux-fzf/scripts/session.sh new"
bind-key "w" run-shell -b "~/.config/tmux-plugins/tmux-fzf/scripts/session.sh switch"
bind r source-file ~/.tmux.conf\; display-message '~/.tmux.conf reloaded'
# Go to last window.
bind Space last-window
bind-key "e" run-shell -b "~/bin/tmuxs"
bind-key "w" run-shell -b "~/bin/tmuxs -a"
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'sainnhe/tmux-fzf'
run '~/.config/tmux-plugins/tpm/tpm'