Mercurial > index.cgi > dotfiles
comparison .bash_aliases @ 135:dead87cd99ae
13->bh, and a hostkeys alias so I don't have to keep remembering it
| author | Steve Huston <huston@astro.princeton.edu> |
|---|---|
| date | Mon, 14 Mar 2016 15:53:16 -0400 |
| parents | 4b397e94691a |
| children | 24ce14dfe16b |
comparison
equal
deleted
inserted
replaced
| 134:b973eb75feab | 135:dead87cd99ae |
|---|---|
| 49 | 49 |
| 50 # Export some of those above for the benefit of future shells | 50 # Export some of those above for the benefit of future shells |
| 51 export DFSTAT MDATE TDSTAT HDATE | 51 export DFSTAT MDATE TDSTAT HDATE |
| 52 | 52 |
| 53 # SSH aliases | 53 # SSH aliases |
| 54 alias 13='ssh cses13' | 54 alias bh='ssh csesbh' |
| 55 alias dh='ssh srhuston.net' | 55 alias dh='ssh srhuston.net' |
| 56 alias hostkeys='scp root@xanadu-vm:/etc/ssh/ssh_known_hosts . && vim -d /etc/ssh_known_hosts ssh_known_hosts && sudo mv ssh_known_hosts /etc/ssh_known_hosts' | |
| 56 alias j='ssh joshua.srhuston.net' | 57 alias j='ssh joshua.srhuston.net' |
| 57 alias keys='ssh-add $HOME/.ssh/*.pvt' | 58 alias keys='ssh-add $HOME/.ssh/*.pvt' |
| 58 alias r='ssh -l root' | 59 alias r='ssh -l root' |
| 59 alias r13='ssh -t cses13 screen -raAx' | 60 alias rbh='ssh -t csesbh screen -raAx' |
| 60 alias rj='ssh -t joshua.srhuston.net screen -raAx' | 61 alias rj='ssh -t joshua.srhuston.net screen -raAx' |
| 61 alias rx='ssh -t xanadu.astro.princeton.edu screen -raAx' | 62 alias rx='ssh -t xanadu.astro.princeton.edu screen -raAx' |
| 62 alias roc='ssh zenoss@rocinante' | 63 alias roc='ssh zenoss@rocinante' |
| 63 alias s=ssh | 64 alias s=ssh |
| 64 t() { | 65 t() { |
| 66 if [ -n "$2" ] ; then | 67 if [ -n "$2" ] ; then |
| 67 T_HOST=$2 | 68 T_HOST=$2 |
| 68 fi | 69 fi |
| 69 ssh -t $T_HOST "ssh $1" | 70 ssh -t $T_HOST "ssh $1" |
| 70 } | 71 } |
| 71 alias t13='t cses13' | |
| 72 alias rt13='t "-t cses13 screen -raAx"' | |
| 73 alias x='ssh xanadu.astro.princeton.edu' | 72 alias x='ssh xanadu.astro.princeton.edu' |
| 74 | 73 |
| 75 export CLUSTERLIST="adroit della hecate mcmillan orbital tiger tigressdata tukey" | 74 export CLUSTERLIST="adroit della hecate mcmillan orbital tiger tigressdata tukey" |
| 76 cdsh() { | 75 cdsh() { |
| 77 for H in $CLUSTERLIST ; do | 76 for H in $CLUSTERLIST ; do |
