1
0
Fork 0

some features to aliases, some cosmetic shit

This commit is contained in:
Von Random 2018-11-15 12:44:56 +03:00
parent 75b7a97314
commit b100aa0dde
2 changed files with 16 additions and 15 deletions

View file

@ -7,7 +7,7 @@ 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 r switch-client -T resize bind r display "resize" \; switch-client -T resize
bind -T resize -r h resize-pane -L 5 bind -T resize -r h resize-pane -L 5
bind -T resize -r j resize-pane -D 5 bind -T resize -r j resize-pane -D 5
bind -T resize -r k resize-pane -U 5 bind -T resize -r k resize-pane -U 5
@ -18,6 +18,7 @@ bind y command-prompt break-pane
bind -n M-w next-window bind -n M-w next-window
bind -n M-q previous-window bind -n M-q previous-window
bind -n M-` last-window bind -n M-` last-window
set -g terminal-overrides 'rxvt-unicode*:sitm@,ritm@'
set -g prefix C-g set -g prefix C-g
set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY" set -g update-environment "DISPLAY SSH_ASKPASS SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
set -g mode-keys "vi" set -g mode-keys "vi"

28
zshrc
View file

@ -168,15 +168,23 @@ alias atmux='command tmux -2 attach'
# screen # screen
alias rscreen='command screen -Dr' alias rscreen='command screen -Dr'
alias scr='command screen sudo -Es' alias scr='command screen sudo -Es'
# (neo)vim
vimcmd=$(whence nvim) || vimcmd=$(whence vim) || vimcmd=$(whence vi)
alias vim=$vimcmd
alias vi='vim'
# termcompat
if [[ -x $(whence termcompat) ]]; then
alias s='command termcompat ssh'
else
alias s='command ssh'
fi
# }}} # }}}
# {{{ plugins # {{{ plugins
# vi alias
vim() {
vimcmd=$(whence nvim) || vimcmd=$(whence vim) || vimcmd=$(whence vi)
$vimcmd "$@"
}
# grc # grc
if [[ -x "$(whence grc)" ]]; then if [[ -x $(whence grc) ]]; then
cmds=(\ cmds=(\
cc configure cvs df dig gcc gmake id ip last lsof make mount \ cc configure cvs df dig gcc gmake id ip last lsof make mount \
mtr netstat ping ping6 ps tcpdump traceroute traceroute6 \ mtr netstat ping ping6 ps tcpdump traceroute traceroute6 \
@ -203,12 +211,4 @@ greset() {
/usr/bin/git clean -fd /usr/bin/git clean -fd
/usr/bin/git reset --hard /usr/bin/git reset --hard
} }
# more compatible TERM for ssh sessions
s() {
if termcompat=$(whence termcompat); then
$termcompat ssh "$@"
else
ssh "$@"
fi
}
# }}} # }}}