Merge branch 'master' of gitee.com:klesh/dotfiles

This commit is contained in:
Klesh Wong 2021-02-19 16:47:19 +08:00
commit 0ead2fa245
3 changed files with 19 additions and 12 deletions

6
bin/p Executable file
View 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

View File

@ -62,7 +62,7 @@ if status is-interactive
if test -n "$TMUX"
function ssh
tmux rename-window $argv[1]
tmux rename-window $argv[-1]
command ssh $argv
tmux setw automatic-rename
end

View File

@ -18,13 +18,22 @@ setw -g mode-keys vi
set -g status-keys vi
set -g default-shell /usr/bin/fish
# set -g prefix C-h
bind-key c new-window -c '#{pane_current_path}'
bind-key '"' split-window -c '#{pane_current_path}'
bind-key % split-window -h -c '#{pane_current_path}'
bind c new-window -c '#{pane_current_path}'
bind '"' split-window -c '#{pane_current_path}'
bind % split-window -h -c '#{pane_current_path}'
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
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-j select-pane -D
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-N swap-window -t +1 \; next-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-] 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