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

28
zshrc
View file

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