Skip to content

Commit

Permalink
Latest hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Oct 1, 2007
1 parent 68efa3d commit fb4318c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 33 deletions.
24 changes: 9 additions & 15 deletions .muttrc
@@ -1,5 +1,4 @@
# ~/.muttrc
# $Id$

# Section: Options {{{1
# ---------------------
Expand Down Expand Up @@ -222,17 +221,12 @@ lists mutt-users speedseductionlist zaurus-general debian-knoppix
account-hook . 'unset imap_user imap_pass tunnel'; folder-hook . 'set folder="$HOME/Mail" record="=sent"'

account-hook imap://localhost/ 'set tunnel="/usr/sbin/imapd"'; folder-hook imap://localhost/ 'set folder=imap://localhost/'
account-hook imap://gob/ 'set tunnel="hostinfo -S gob -qx /usr/sbin/imapd"'; folder-hook imap://gob/ 'set folder=imap://gob/'
account-hook imap://lucille/ 'set tunnel="hostinfo -S lucille -qx /usr/sbin/imapd"'; folder-hook imap://lucille/ 'set folder=imap://lucille/'
account-hook imap://michael/ 'set tunnel="hostinfo -S michael -qx /usr/sbin/imapd"'; folder-hook imap://michael/ 'set folder=imap://michael/'
account-hook imap://lindsay/ 'set tunnel="hostinfo -S lindsay -qx /usr/sbin/imapd"'; folder-hook imap://lindsay/ 'set folder=imap://lindsay/'
account-hook imap://tobias/ 'set tunnel="hostinfo -S tobias -qx /usr/sbin/imapd"'; folder-hook imap://tobias/ 'set folder=imap://tobias/'

account-hook imap://gob.tpope.us/ 'set tunnel="ssh sexygeek.us ssh gob /usr/sbin/imapd"'
account-hook imap://lucille.tpope.us/ 'set tunnel="ssh sexygeek.us ssh lucille /usr/sbin/imapd"'
account-hook imap://michael.tpope.us/ 'set tunnel="ssh sexygeek.us ssh michael /usr/sbin/imapd"'
account-hook imap://lindsay.tpope.us/ 'set tunnel="ssh sexygeek.us ssh lindsay /usr/sbin/imapd"'
account-hook imap://tobias.tpope.us/ 'set tunnel="ssh sexygeek.us ssh tobias /usr/sbin/imapd"'
account-hook imap://michael/ 'set tunnel="ssh -qax michael /usr/sbin/imapd"'; folder-hook imap://michael/ 'set folder=imap://michael/'
account-hook imap://buster/ 'set tunnel="ssh -qax buster /usr/sbin/imapd"'; folder-hook imap://buster/ 'set folder=imap://buster/'
account-hook imap://tobias/ 'set tunnel="ssh -qax tobias /usr/sbin/imapd"'; folder-hook imap://tobias/ 'set folder=imap://tobias/'
account-hook imap://lindsay/ 'set tunnel="ssh -qax lindsay /usr/sbin/imapd"'; folder-hook imap://lindsay/ 'set folder=imap://lindsay/'
account-hook imap://gob/ 'set tunnel="ssh -qax gob /usr/sbin/imapd"'; folder-hook imap://gob/ 'set folder=imap://gob/'
account-hook imap://george/ 'set tunnel="ssh -qax george /usr/sbin/imapd"'; folder-hook imap://george/ 'set folder=imap://george/'

# }}}1
# Section: Misc {{{1
Expand All @@ -242,9 +236,9 @@ account-hook imap://tobias.tpope.us/ 'set tunnel="ssh sexygeek.us ssh tobias /
`[ -s ~/.mail_aliases ] && echo source ~/.mail_aliases || echo set`
# Section: Aliases {{{1
# ---------------------
alias gob Tim Pope <tpope@gob.tpope.us>
alias lucille Tim Pope <tpope@lucille.tpope.us>
alias michael Tim Pope <tpope@michael.tpope.us>
alias buster Tim Pope <tpope@buster.tpope.us>
alias lindsay Tim Pope <tpope@lindsay.tpope.us>
alias tobias Tim Pope <tpope@tobias.tpope.us>
alias lindsay Tim Pope <tpope@lindsay.tpope.us>
alias gob Tim Pope <tpope@gob.tpope.us>
alias george Tim Pope <tpope@george.tpope.us>
21 changes: 10 additions & 11 deletions .xsession
@@ -1,6 +1,5 @@
#!/bin/sh
# $Id$
# -*- sh -*- vim: ft=sh sw=4 sts=4
# vim:set ft=sh et sw=4 sts=4:

PATH="$HOME/bin:/usr/local/bin:/usr/bin/X11:/usr/bin:/bin:/usr/games"
[ -n "$ENV" ] || ENV="$HOME/.shrc"
Expand All @@ -10,7 +9,7 @@ unset STY

xsetroot -solid '#000420'

hosts="gob barry michael lucille maeby lindsay tobias buster"
hosts="gob michael lucille lindsay tobias buster"
dpy=`echo ${DISPLAY:-':0.0'} | sed -e 's/localhost//'`
if echo $dpy|grep '^:' >/dev/null; then
hname=`hostname`
Expand All @@ -26,7 +25,7 @@ fi

if /sbin/ifconfig 2>/dev/null | grep '172\.28\.6' >/dev/null; then
for host in $hosts; do
xauth -i extract - $hname$dpy | ssh -axqoBatchmode=yes $host xauth merge - &
xauth -i extract - $hname$dpy | ssh -axqoBatchmode=yes $host xauth merge - &
done
fi

Expand All @@ -37,7 +36,7 @@ xset b 40 440 60
[ ! -f "$HOME/.xmodmap" ] || xmodmap "$HOME/.xmodmap"

if [ ! -f "$HOME/.xmodmap" -a ! -f "$HOME/.Xmodmap" ] && \
xmodmap 2>/dev/null|grep Super >/dev/null; then
xmodmap 2>/dev/null|grep Super >/dev/null; then
xmodmap -e "keysym Super_L = Hyper_L"
xmodmap -e "keysym Caps_Lock = Super_L"
xmodmap -e "keysym Scroll_Lock = Hyper_R Scroll_Lock"
Expand Down Expand Up @@ -77,12 +76,12 @@ wait
if [ -x "`which xscreensaver 2>/dev/null`" ]; then
nice -n 2 xscreensaver -no-splash >/dev/null 2>/dev/null &
case "$hname$dpy" in tobias:0|lucille:0|lindsay:0|maeby:0|buster:0)
(xscreensaver-command -watch|while read trash; do
case "$trash" in
BLANK*|LOCK*|UNBLANK*) tpope status check "$hname" ;;
esac
done
) >/dev/null 2>&1 & ;;
(xscreensaver-command -watch|while read trash; do
case "$trash" in
BLANK*|LOCK*|UNBLANK*) tpope status check "$hname" ;;
esac
done
) >/dev/null 2>&1 & ;;
esac
fi
#[ ! -x "`which btcid-launch 2>/dev/null`" ] || btcid-launch
Expand Down
13 changes: 6 additions & 7 deletions .zshrc
Expand Up @@ -23,15 +23,14 @@ periodic() { rehash }
export ENV="$HOME/.shrc"
interactive=1
. $ENV
#[ -f $HOME/mbox ] && export MAIL=$HOME/mbox

#domains=(`egrep '^(search|domain)' /etc/resolv.conf 2>/dev/null`)
#[[ -z $domains ]] || shift 1 domains

off=(gob michael lucille tobias lindsay)
work=(george arwen tpope-1084 jwxkl81-1061 san-netmon jmwa-netmon atl-netmon)
boxen=(michael gob tobias lindsay)
work=(george lucille jwxkl81-1061 bjdxx51-594 san-web san-netmon jmwa-netmon atl-netmon)
if [ -d "$HOME/friends" ]; then
for host in $off; do
for host in $boxen; do
[ "${host%.tpope.us}" != `hostname` ] && family=($family $host)
[ -d "$HOME/friends" ] && typeset ${host%.tpope.us}=$HOME/friends/${host%.tpope.us}
: ~${host%.tpope.us}
Expand All @@ -57,10 +56,10 @@ fi

namedir() { export $1=$PWD; : ~$1 }

friends=($off buster oscar maeby steve grex $work)
friends=($boxen buster grex $work)

#for host in $domains; do
# off=(${off%.$host})
# boxen=(${boxen%.$host})
# family=(${family%.$host})
# friends=(${friends%.$host})
#done
Expand Down Expand Up @@ -274,7 +273,7 @@ zstyle ':completion::complete:*' ignore-parents parent pwd
zstyle ':completion::complete:rm::(all-|)files' ignored-patterns
zstyle ':completion::complete:rmdir::(local-|)directories' ignored-patterns
zstyle ':completion:*' group-name ''
zstyle ':completion:*' hosts localhost $friends sexygeek.us cunn.iling.us rebelongto.us
zstyle ':completion:*' hosts localhost $friends tpope.us cunn.iling.us rebelongto.us
zstyle ':completion:*' urls http://www.tpope.net/ http://www.google.com/
zstyle ':completion:*' insert-unambiguous true
# NO NO NO!!! This makes things SLOW
Expand Down

0 comments on commit fb4318c

Please sign in to comment.