]> err.no Git - dotfiles/commitdiff
ingenious ssh hack.
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 16 Jan 2005 22:38:49 +0000 (22:38 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 16 Jan 2005 22:38:49 +0000 (22:38 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@715 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

bashrc
zshrc

diff --git a/bashrc b/bashrc
index fd89b4e3efc44d183b4388c8435be0bda80f523b..2787dfc34204dc2e8b1b8ce59b2e782dab648243 100644 (file)
--- 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 e673389db2603e50e4593d6225a0f8cc4b8bb83a..b888981149bb230fa66109d71518c8ba8f3cdeee 100644 (file)
--- 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