check for vim/screen existence in bashrc

dev
totem4 3 years ago
parent 4a900329a9
commit bb9de17689

@ -11,8 +11,8 @@ alias la='ls -A'
alias l='ls -CF'
alias sl='ls'
[ -x $JSSHHOME/sshrc.jssh ] && alias jssh="$JSSHHOME/sshrc.jssh"
[ -r $JSSHHOME/screenrc.jssh ] && alias screen="screen -c $JSSHHOME/screenrc.jssh"
[ -r $JSSHHOME/vimrc.jssh ] && export VIMINIT="let \$MYVIMRC='$JSSHHOME/vimrc.jssh' | source \$MYVIMRC"
which screen >/dev/null 2>&1 && [ -r $JSSHHOME/screenrc.jssh ] && alias screen="screen -c $JSSHHOME/screenrc.jssh"
which vim >/dev/null 2>&1 && [ -r $JSSHHOME/vimrc.jssh ] && export VIMINIT="let \$MYVIMRC='$JSSHHOME/vimrc.jssh' | source \$MYVIMRC"
PROMPT_COMMAND=__prompt_command
__prompt_command() {
local curr_exit="$?"

Loading…
Cancel
Save