ftp -o - https://jcs.org/move_in | sh -
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

zshrc: add mac stuff that has been accumulating in .zshrc.local

+29 -3
+6 -3
.zshrc
··· 34 34 bindkey -e 35 35 36 36 # i'm too lazy to type these out 37 + alias calc='perl -pe "print eval(\$_) . chr(10);"' 37 38 alias ccom='cvs -q diff -upRN \!* || (echo; echo enter to commit; sh -c read && cvs com \!*)' 38 39 alias cdu='cvs -q diff -upRN' 39 40 alias cp='cp -i' ··· 91 92 alias ldd='otool -L' 92 93 alias sha1='openssl dgst -sha1' 93 94 94 - # pre-lion uses dscacheutil 95 - alias dnsflush='dscacheutil -flushcache; sudo killall -HUP mDNSResponder' 96 - 97 95 # update dotfiles 98 96 alias update_dotfiles='curl https://raw.github.com/jcs/dotfiles/master/move_in.sh | sh -x -' 99 97 ··· 127 125 fi 128 126 129 127 # load any local aliases and machine-specific things 128 + if [[ $OSTYPE = darwin* ]]; then 129 + if [ -f ~/.zshrc.mac ]; then 130 + source ~/.zshrc.mac 131 + fi 132 + fi 130 133 if [ -f ~/.zshrc.local ]; then 131 134 source ~/.zshrc.local 132 135 fi
+23
.zshrc.mac
··· 1 + export PATH=$PATH:/opt/X11/bin 2 + 3 + alias dnsflush="sudo discoveryutil udnsflushcaches" 4 + 5 + export STORE_LASTDIR=1 6 + 7 + export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer" 8 + 9 + if [ -f ~/.remind_forecast ]; then 10 + _mtime=`stat -f %m ~/.remind_forecast` 11 + _now=`date +%s` 12 + _diff=$((_now - _mtime)) 13 + if [ $_diff -gt 3600 ]; then 14 + # old 15 + rm ~/.remind_forecast 16 + fi 17 + fi 18 + 19 + if [ -f ~/.remind_forecast ]; then 20 + cat ~/.remind_forecast 21 + else 22 + ruby ~/code/remind_forecast/remind_forecast.rb | tee ~/.remind_forecast 23 + fi