Spawn SSH agent even on remote hosts (for some foreign keys).
[nethome.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index ad2a9df..1459432 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -123,6 +123,7 @@ alias vi='vim'
 alias grepb='grep --binary-files=binary'
 alias L='lynx'
 alias chown='chown --no-dereference'
+alias chgrp='chgrp --no-dereference'
 alias hexedit='hexedit -s'
 alias cvs2cl='cvs2cl --window 3600 --separate-header --no-wrap'
 alias cvsfiles='cvsutil --files --print'
@@ -133,6 +134,8 @@ alias cvsignoresrmall='cvsutil --ignores --workings --rm'
 alias cvsignoresallrm='cvsutil --ignores --workings --rm'
 [ "`uname`" = "SunOS" -a -x $HOME/bin/rpm-by-pkg ] && alias rpm='rpm-by-pkg'
 alias rpmdb='rpm --define "_dbpath `echo /usr/lib/rpmdb/*/*`"'
+alias disass='objdump -D --target=binary --architecture=i386'
+alias cal='cal -m'
 
 # '2>/dev/null' to prevent: unalias: x: not found
 unalias 2>/dev/null cp # -i
@@ -174,6 +177,7 @@ if grep 2>/dev/null -q '^..............:0C38 00000000:0000 0A ' /proc/net/tcp;th
        export https_proxy=http://127.0.0.1:3128/
        export   ftp_proxy=http://127.0.0.1:3128/
 fi
+export VIMINIT="source `echo "${BASH_SOURCE:-$BASH_ENV}"|sed 's/[.]bashrc$/.vimrc/'`"
 
 export SOCKS5_SERVER=icsocks.holland.sun.com
 
@@ -241,7 +245,8 @@ if [ -f "$HOME/.bashrc.local" ];then source "$HOME/.bashrc.local";fi
 # Interactive part:
 for key in $HOME/.ssh/id_dsa;do
        [ -r "$key" ] || continue
-       [ -n "$SSH_TTY" ] && continue
+       # Do not: [ -n "$SSH_TTY" ] && continue
+       # as we may want foreign SSH keys too.
 
        agenteval=/tmp/.$USER.ssh-agent.eval
        if lockfile -1 -r 3 -l 10 -s 1 $agenteval.lock;then