Merge branch 'master' of gitee.com:klesh/dotfiles
This commit is contained in:
commit
0ead2fa245
6
bin/p
Executable file
6
bin/p
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
PPWD=$(pwd)
|
||||||
|
trap "cd '$PPWD'" EXIT
|
||||||
|
cd ~/.password-store
|
||||||
|
find . -iname '*.gpg' | cut -c3- | sed 's/\.gpg$//g' | fzf | xargs pass -c
|
|
@ -62,7 +62,7 @@ if status is-interactive
|
||||||
|
|
||||||
if test -n "$TMUX"
|
if test -n "$TMUX"
|
||||||
function ssh
|
function ssh
|
||||||
tmux rename-window $argv[1]
|
tmux rename-window $argv[-1]
|
||||||
command ssh $argv
|
command ssh $argv
|
||||||
tmux setw automatic-rename
|
tmux setw automatic-rename
|
||||||
end
|
end
|
||||||
|
|
|
@ -18,13 +18,22 @@ setw -g mode-keys vi
|
||||||
set -g status-keys vi
|
set -g status-keys vi
|
||||||
set -g default-shell /usr/bin/fish
|
set -g default-shell /usr/bin/fish
|
||||||
# set -g prefix C-h
|
# set -g prefix C-h
|
||||||
bind-key c new-window -c '#{pane_current_path}'
|
bind c new-window -c '#{pane_current_path}'
|
||||||
bind-key '"' split-window -c '#{pane_current_path}'
|
bind '"' split-window -c '#{pane_current_path}'
|
||||||
bind-key % split-window -h -c '#{pane_current_path}'
|
bind % split-window -h -c '#{pane_current_path}'
|
||||||
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
|
||||||
|
bind a set-window-option automatic-rename
|
||||||
|
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
|
||||||
|
bind m \
|
||||||
|
set-option -g mouse on \;\
|
||||||
|
display 'Mouse: ON'
|
||||||
|
# set mouse off with prefix M
|
||||||
|
bind M \
|
||||||
|
set-option -g mouse off \;\
|
||||||
|
display 'Mouse: OFF'
|
||||||
bind -n M-h select-pane -L
|
bind -n M-h select-pane -L
|
||||||
bind -n M-j select-pane -D
|
bind -n M-j select-pane -D
|
||||||
bind -n M-k select-pane -U
|
bind -n M-k select-pane -U
|
||||||
|
@ -47,16 +56,8 @@ bind -n M-n next-window
|
||||||
bind -n M-p previous-window
|
bind -n M-p previous-window
|
||||||
bind -n M-N swap-window -t +1 \; next-window
|
bind -n M-N swap-window -t +1 \; next-window
|
||||||
bind -n M-P swap-window -t -1 \; previous-window
|
bind -n M-P swap-window -t -1 \; previous-window
|
||||||
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
|
|
||||||
bind -n M-[ copy-mode
|
bind -n M-[ copy-mode
|
||||||
bind -n M-] paste-buffer
|
bind -n M-] paste-buffer
|
||||||
bind m \
|
|
||||||
set-option -g mouse on \;\
|
|
||||||
display 'Mouse: ON'
|
|
||||||
# set mouse off with prefix M
|
|
||||||
bind M \
|
|
||||||
set-option -g mouse off \;\
|
|
||||||
display 'Mouse: OFF'
|
|
||||||
|
|
||||||
############################
|
############################
|
||||||
# plugins
|
# plugins
|
||||||
|
|
Loading…
Reference in New Issue
Block a user