mirror of
https://github.com/harivansh-afk/dots.git
synced 2026-04-16 22:03:49 +00:00
tmux
This commit is contained in:
parent
f2e9ff34f2
commit
85c031b34d
1 changed files with 9 additions and 0 deletions
|
|
@ -29,6 +29,15 @@ bind K switch-client -p
|
||||||
bind H switch-client -p
|
bind H switch-client -p
|
||||||
bind L switch-client -n
|
bind L switch-client -n
|
||||||
|
|
||||||
|
# fzf pane switcher
|
||||||
|
bind f display-popup -w 80% -h 80% -E "\
|
||||||
|
tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index} #{session_name}/#{window_name} [#{pane_current_command}] #{pane_current_path}' \
|
||||||
|
| fzf --reverse \
|
||||||
|
--preview 'tmux capture-pane -ep -t {1}' \
|
||||||
|
--preview-window right:60% \
|
||||||
|
| awk '{print \$1}' \
|
||||||
|
| xargs tmux switch-client -t"
|
||||||
|
|
||||||
# Auto-rename windows to the current running command
|
# Auto-rename windows to the current running command
|
||||||
set -g automatic-rename on
|
set -g automatic-rename on
|
||||||
set -g automatic-rename-format '#{b:pane_current_path}'
|
set -g automatic-rename-format '#{b:pane_current_path}'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue