Tmux: remove unused keybinds
This commit is contained in:
parent
f12a9baf53
commit
26cc7e3d8d
|
@ -18,7 +18,6 @@ setw -g mouse-select-window on
|
|||
setw -g mouse-select-pane on
|
||||
set-option -g default-command "reattach-to-user-namespace -l zsh"
|
||||
|
||||
|
||||
## Key bindings ###########
|
||||
# Remap the key prefix
|
||||
set -g prefix C-Space
|
||||
|
@ -54,8 +53,6 @@ bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iqE
|
|||
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|vim?)(diff)?$' && tmux send-keys C-k) || tmux select-pane -U"
|
||||
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|vim?)(diff)?$' && tmux send-keys C-l) || tmux select-pane -R"
|
||||
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iqE '(^|\/)g?(view|vim?)(diff)?$' && tmux send-keys 'C-\\') || tmux select-pane -l"
|
||||
# bind-key -r C-h select-window -t :-
|
||||
# bind-key -r C-l select-window -t :+
|
||||
|
||||
# after copying to a tmux buffer, hit y again to copy to clipboard
|
||||
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/zsh
|
||||
|
||||
# Check to see if a command exists
|
||||
function command_exists {
|
||||
command -v "$1" &> /dev/null
|
||||
}
|
||||
|
||||
# vim:set ft=zsh:
|
Loading…
Reference in a new issue