Skip to content

Commit

Permalink
the real home
Browse files Browse the repository at this point in the history
  • Loading branch information
gWOLF3 committed Sep 17, 2020
1 parent baf56e3 commit af86b2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vissh_snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ if [ ! -f $REAL_HOME/.vimrc ]; then touch $REAL_HOME/.vimrc; fi;
inotifywait -e modify $REAL_HOME/.vimrc;

if ([ -f $REAL_HOME/.bashrc ] && ( ! grep -qR 'alias ssh="ssh -F $REAL_HOME/.ssh/viSSHous"' $REAL_HOME/.bashrc ));
then echo 'alias ssh="ssh -F $REAL_HOME/.ssh/viSSHous"' >> $REAL_HOME/.bashrc && bash
then echo 'alias ssh="ssh -F $HOME/.ssh/viSSHous"' >> $REAL_HOME/.bashrc && bash
fi

if ([ -f $REAL_HOME/.zshrc ] && ( ! grep -qR 'alias ssh="ssh -F $REAL_HOME/.ssh/viSSHous"' $REAL_HOME/.zshrc ));
then echo 'alias ssh="ssh -F $REAL_HOME/.ssh/viSSHous"' >> $REAL_HOME/.zshrc && zsh
then echo 'alias ssh="ssh -F $HOME/.ssh/viSSHous"' >> $REAL_HOME/.zshrc && zsh
fi

echo "# last updated: $(date)" > $REAL_HOME/.ssh/viSSHous
Expand Down

0 comments on commit af86b2e

Please sign in to comment.