comparison .bash_aliases @ 41:2bea356b1032

* Added default screenrc from Linux (and the Screen installation) to .screenrc * Brought ~/.vim into repository (some syntax hilighting add-ons, gnupg plugin) * Hard-coded paths for aliases so as not to conflict with GNU coreutils from a Macports install * Removed dvra alias * Added $VNCVIEWER and changed VNC-type aliases to use it * Added syrinx aliases * Added syrinx to toodledo targets
author huston@80426f53-59d1-405d-934b-f07cd76f4a1a
date Thu, 17 Jun 2010 16:29:11 +0000
parents 21cf7b5fa0d6
children 998337c2b6f2
comparison
equal deleted inserted replaced
40:21cf7b5fa0d6 41:2bea356b1032
16 # run the svn status, so you won't be prompted if there's newer files 16 # run the svn status, so you won't be prompted if there's newer files
17 # available in your repository. These are safe to export since they're 17 # available in your repository. These are safe to export since they're
18 # the commands to be evaulated, not the output - you're storing how to get 18 # the commands to be evaulated, not the output - you're storing how to get
19 # the answer, not the answer itself. 19 # the answer, not the answer itself.
20 20
21 DFSTAT="stat -f %m -t %s $HOME/.dotfilets" 21 # Also note, the full paths are stored since GNU coreutils might be
22 MDATE="date -v -1m +%s" 22 # installed; while that would tend to make things "easier" since the GNU
23 TDSTAT="stat -f %m -t %s $HOME/.todo" 23 # one is the same as the Linux ones below, it can't be guaranteed.
24 HDATE="date -v -1H +%s" 24 # Instead of checking for the presence of /opt/local/bin/ls (or gls) it's
25 # easier to point directly to the one you know *is* installed.
25 26
26 alias ls='ls -FG' 27 DFSTAT="/usr/bin/stat -f %m -t %s $HOME/.dotfilets"
28 MDATE="/bin/date -v -1m +%s"
29 TDSTAT="/usr/bin/stat -f %m -t %s $HOME/.todo"
30 HDATE="/bin/date -v -1H +%s"
31
32 alias ls='/bin/ls -FG'
33
34 VNCVIEWER="open vnc://"
27 ;; 35 ;;
28 36
29 Linux) 37 Linux)
30 # See above for a description of these four 38 # See above for a description of these four
31 DFSTAT="stat -c %Y $HOME/.dotfilets" 39 DFSTAT="/usr/bin/stat -c %Y $HOME/.dotfilets"
32 MDATE="date -d \"1 month ago\" +%s" 40 MDATE="/bin/date -d \"1 month ago\" +%s"
33 TDSTAT="stat -c %Y $HOME/.todo" 41 TDSTAT="/usr/bin/stat -c %Y $HOME/.todo"
34 HDATE="date -d \"1 hour ago\" +%s" 42 HDATE="/bin/date -d \"1 hour ago\" +%s"
35 43
36 alias ls='ls --color=auto -F' 44 alias ls='/bin/ls --color=auto -F'
45
46 VNCVIEWER="vncviewer Shared=1 Fullcolor=1 "
37 ;; 47 ;;
38 esac 48 esac
39 49
40 # Export some of those above for the benefit of future shells 50 # Export some of those above for the benefit of future shells
41 export DFSTAT MDATE TDSTAT HDATE 51 export DFSTAT MDATE TDSTAT HDATE
42 52
43 # SSH aliases 53 # SSH aliases
44 alias dh='ssh srhuston.net' 54 alias dh='ssh srhuston.net'
45 alias dvra='ssh dvra@w2zq.com'
46 alias j='ssh joshua.srhuston.net' 55 alias j='ssh joshua.srhuston.net'
47 alias keys='ssh-add $HOME/.ssh/*.pvt' 56 alias keys='ssh-add $HOME/.ssh/*.pvt'
48 alias r='ssh -l root' 57 alias r='ssh -l root'
49 alias roc='ssh zenoss@rocinante' 58 alias roc='ssh zenoss@rocinante'
50 alias s=ssh 59 alias s=ssh
60 alias sy='ssh syrinx.astro.princeton.edu'
51 alias x='ssh xanadu.astro.princeton.edu' 61 alias x='ssh xanadu.astro.princeton.edu'
52 62
53 # Remote desktop/VNC 63 # Remote desktop/VNC
54 alias bynarr='rdesktop -a 16 bynarr.astro.princeton.edu -g 1593x1109' 64 alias bynarr='rdesktop -a 16 bynarr.astro.princeton.edu -g 1593x1109'
55 alias demeter='ssh -L9909:demeter:3389 -f joshua.srhuston.net "/sbin/ether-wake 00:0c:f1:a4:b6:c7 ; sleep 30"; sleep 10; rdesktop -a 16 localhost:9909 -g 1593x1109 &' 65 alias harmonic='ssh -L9910:harmonic:5900 -f joshua.srhuston.net "/sbin/ether-wake 00:11:24:3c:3a:e8 ; sleep 30"; sleep 10; ${VNCVIEWER}localhost:9910 &'
56 alias harmonic='ssh -L9910:harmonic:5900 -f joshua.srhuston.net "/sbin/ether-wake 00:11:24:3c:3a:e8 ; sleep 30"; sleep 10; vncviewer Shared=1 FullColour=1 localhost:9910 &' 66 alias milton='ssh -L9930:milton:5900 -f joshua.srhuston.net "/sbin/ether-wake 00:17:f2:01:d2:3c ; sleep 30"; sleep 10; ${VNCVIEWER}localhost:9930 &'
57 alias milton='ssh -L9930:milton:5900 -f joshua.srhuston.net "/sbin/ether-wake 00:17:f2:01:d2:3c ; sleep 30"; sleep 10; vncviewer Shared=1 FullColour=1 localhost:9930 &' 67 alias xanadu='ssh -L9920:localhost:5900 -f xanadu.astro.princeton.edu "sleep 300"; ${VNCVIEWER}localhost:9920 &'
58 68
59 # Programs 69 # Programs
60 alias atari='atari800 -height 800 -width 600' 70 alias atari='atari800 -height 800 -width 600'
61 alias base64='openssl enc -a' 71 alias base64='openssl enc -a'
62 alias bsr='bigscreen -raAx' 72 alias bsr='bigscreen -raAx'
70 # The $DARWIN check fills in a nice volname if this is a Mac 80 # The $DARWIN check fills in a nice volname if this is a Mac
71 alias junkpile="sshfs -oreconnect${DARWIN:+,volname=Junkpile} srhuston.net:junkpile $HOME/junkpile" 81 alias junkpile="sshfs -oreconnect${DARWIN:+,volname=Junkpile} srhuston.net:junkpile $HOME/junkpile"
72 alias sharm="sshfs -oreconnect${DARWIN:+,volname=Harmonic} harmonic.srhuston.net: $HOME/harmonic" 82 alias sharm="sshfs -oreconnect${DARWIN:+,volname=Harmonic} harmonic.srhuston.net: $HOME/harmonic"
73 alias sj="sshfs -oreconnect${DARWIN:+,volname=Joshua} joshua.srhuston.net: $HOME/joshua" 83 alias sj="sshfs -oreconnect${DARWIN:+,volname=Joshua} joshua.srhuston.net: $HOME/joshua"
74 alias sdh="sshfs -oreconnect${DARWIN:+,volname=srhuston.net} srhuston.net: $HOME/srhuston.net" 84 alias sdh="sshfs -oreconnect${DARWIN:+,volname=srhuston.net} srhuston.net: $HOME/srhuston.net"
85 alias ssy="sshfs -oreconnect${DARWIN:+,volname=Syrinx} syrinx.astro.princeton.edu: $HOME/syrinx"
75 alias sx="sshfs -oreconnect${DARWIN:+,volname=Xanadu} xanadu.astro.princeton.edu: $HOME/xanadu" 86 alias sx="sshfs -oreconnect${DARWIN:+,volname=Xanadu} xanadu.astro.princeton.edu: $HOME/xanadu"
76 87
77 # Other 88 # Other
78 alias condor_check="ls -lat /u/condor/hosts/*/log/MasterLog /scr/chimera0/condor/hosts/*/log/MasterLog" 89 alias condor_check="ls -lat /u/condor/hosts/*/log/MasterLog /scr/chimera0/condor/hosts/*/log/MasterLog"
79 90
80 # Functions 91 # Functions
81 update_toodledo() { 92 update_toodledo() {
82 case `hostname -s` in 93 case `hostname -s` in
83 xanadu|rapture) 94 xanadu|rapture|syrinx)
84 TOODLEDO_CMDS="toodledo tasks *Work; toodledo tasks *Personal" 95 TOODLEDO_CMDS="toodledo tasks *Work; toodledo tasks *Personal"
85 ;; 96 ;;
86 97
87 milton) 98 milton)
88 TOODLEDO_CMDS="toodledo tasks *Home; toodledo tasks *Personal" 99 TOODLEDO_CMDS="toodledo tasks *Home; toodledo tasks *Personal"