From: tfheen Date: Sun, 16 Jan 2005 22:38:49 +0000 (+0000) Subject: ingenious ssh hack. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d961b87ef32b82fdbe5a59a810a49a18941e6b8f;p=dotfiles ingenious ssh hack. git-svn-id: file:///svn/tfheen/trunk/dotfiles@715 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf --- diff --git a/bashrc b/bashrc index fd89b4e..2787dfc 100644 --- a/bashrc +++ b/bashrc @@ -18,6 +18,7 @@ if [ -f "$HOME/.environment" ]; then . $HOME/.environment fi alias ls="ls $LS_OPTIONS" +alias ssh='ssh-add -l > /dev/null 2>&1 || ssh-add ; \ssh' ATTR_FET="\[\033[1m\]" ATTR_UND="\[\033[4m\]" diff --git a/zshrc b/zshrc index e673389..b888981 100644 --- a/zshrc +++ b/zshrc @@ -4,6 +4,8 @@ alias mv='nocorrect mv' # no spelling correction on mv alias cp='nocorrect cp' # no spelling correction on cp alias mkdir='nocorrect mkdir' # no spelling correction on mkdir +alias ssh='ssh-add -l > /dev/null 2>&1 || ssh-add ; \ssh' + bindkey -e # Emacs-style commandline editing