From bb9de1768938403d8b79f99554a48baec12ef26a Mon Sep 17 00:00:00 2001 From: totem4 Date: Fri, 19 Nov 2021 19:27:21 +0100 Subject: [PATCH 1/2] check for vim/screen existence in bashrc --- bashrc.jssh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashrc.jssh b/bashrc.jssh index 47c2a9b..ed15d57 100644 --- a/bashrc.jssh +++ b/bashrc.jssh @@ -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="$?" From 2cc6c7a116c023e5f66fdcb176e6a824e750de40 Mon Sep 17 00:00:00 2001 From: totem4 Date: Mon, 3 Jan 2022 23:45:09 +0100 Subject: [PATCH 2/2] added autocommand tabstop for yaml files --- vimrc.jssh | 1 + 1 file changed, 1 insertion(+) diff --git a/vimrc.jssh b/vimrc.jssh index ccaff19..ee52000 100644 --- a/vimrc.jssh +++ b/vimrc.jssh @@ -29,3 +29,4 @@ let &backupdir=localdir . "//" set mouse="" set shiftwidth=4 set tabstop=4 +autocmd FileType yaml setlocal ai ts=2 sw=2 et