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

Configure Feed

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

i don't use tcsh anymore

-165
-165
.tcshrc
··· 1 - # vim:ts=3:et:ft=tcsh 2 - # 3 - # tcsh 6 config 4 - # joshua sein <jcs@jcs.org> 5 - # 6 - 7 - # environment variables 8 - setenv BLOCKSIZE 1k 9 - setenv CVS_RSH /usr/bin/ssh 10 - setenv IRCNAME "*Unknown*" 11 - 12 - # ow my security 13 - setenv MYSQL_HISTFILE /dev/null 14 - 15 - # pass through to bash in case it somehow gets invoked 16 - setenv HISTFILE 17 - 18 - # if it looks like we're under RVM, use the $PATH we already set (and that rvm 19 - # already modified) 20 - if (! $?RUBY_VERSION) then 21 - setenv PATH ~/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin 22 - endif 23 - 24 - # on non-interactive shells, just exit here to speed things up 25 - if ($?USER == 0 || $?prompt == 0 || $tty == "") then 26 - exit 27 - endif 28 - 29 - # i'm too lazy to type these out 30 - alias ccom 'cvs -q diff -upRN \!* || (echo; echo enter to commit; sh -c read && cvs com \!*)' 31 - alias cdu 'cvs -q diff -upRN' 32 - alias cp 'cp -i' 33 - alias hg 'history | grep ' 34 - alias ll 'ls -alF' 35 - alias lo 'logout' 36 - alias ls 'ls -aF' 37 - if ("$OSTYPE" == "linux") then 38 - alias ls 'ls -aFv' 39 - endif 40 - alias manfile 'groff -man -Tascii \!* | less' 41 - alias mv 'mv -i' 42 - alias offline_mutt 'mutt -R -F ~/.muttrc.offline' 43 - alias ph 'ps auwwx | head' 44 - alias pg 'ps auwwx | grep -i -e ^USER -e ' 45 - alias refetch 'cvs -q up -PACd' 46 - alias rvm ~/bin/rvm.tcsh 47 - alias telnet 'telnet -K' 48 - alias tin 'tin -arQ' 49 - alias u 'cvs -q up -PAd' 50 - 51 - # for openbsd ports 52 - alias remake 'cd ../../; rm w-*/.build*; make; cd -' 53 - 54 - if ("$OSTYPE" == "darwin") then 55 - # mac os'isms 56 - alias ldd 'otool -L' 57 - alias sha1 'openssl dgst -sha1' 58 - 59 - # pre-lion uses dscacheutil 60 - alias dnsflush 'dscacheutil -flushcache; sudo killall -HUP mDNSResponder' 61 - 62 - # update dotfiles 63 - alias update_dotfiles 'curl https://raw.github.com/jcs/dotfiles/master/move_in.sh | sh -x -' 64 - 65 - else if ("$OSTYPE" == "OpenBSD") then 66 - setenv PKG_PATH ftp://mirror.planetunix.net/pub/OpenBSD/snapshots/packages/`arch -s`/ 67 - alias pkg_replace 'sudo pkg_add -r -F installed' 68 - alias watchbw 'netstat -w1 -b -I' 69 - 70 - alias update_dotfiles 'ftp -Vo - https://raw.github.com/jcs/dotfiles/master/move_in.sh | sh -' 71 - endif 72 - 73 - # where am i 74 - alias publicip 'curl http://ifconfig.me' 75 - 76 - # when i say vi i mean vim (if it's installed) 77 - if (-x "`which vim`") then 78 - alias vi 'vim' 79 - alias view 'vim -R' 80 - setenv EDITOR `which vim` 81 - else 82 - setenv EDITOR /usr/bin/vi 83 - endif 84 - 85 - # keybindings 86 - bindkey ^[[1~ beginning-of-line # home key 87 - bindkey ^[[4~ end-of-line # end key 88 - bindkey ^T load-average # siginfo 89 - bindkey ^W backward-delete-word # just a word, thanks 90 - 91 - # i never need to look in these 92 - set fignore="CVS" 93 - 94 - # super duper tab completion 95 - set noglob 96 - # jobs 97 - complete {fg,bg,stop} c/%/j/ p/1/"(%)"// 98 - 99 - # settings 100 - complete {,un}alias 'p/1/a/' 'p/2/c/' 101 - complete bindkey 'C/*/b/' 102 - complete env 'c/*=/f/' 'p/1/e/=/' 'p/2/c/' 103 - complete {,un}limit c/-/"(h)"/ n/*/l/ 104 - complete {,un}setenv 'p/1/e/' 'c/*:/f/' 105 - complete {,un}set 'c/*=/f/' 'p/1/s/=' 'n/=/f/' 106 - 107 - # only cd to dirs 108 - complete cd p/1/d/ 109 - 110 - # show bins 111 - complete {man,which,where,whereis} 'C/*/c/' 112 - 113 - # let me tab complete ssh hosts 114 - set hosts="" 115 - foreach f ($HOME/.hosts /usr/local/etc/csh.hosts $HOME/.rhosts /etc/hosts.equiv) 116 - if ( -r $f ) then 117 - set hosts = ($hosts `grep -v "+" $f | grep -E -v "^#" | tr -s " " " " | cut -f 1`) 118 - endif 119 - end 120 - if ( -r $HOME/.ssh/known_hosts ) then 121 - set f=`cat $HOME/.ssh/known_hosts | cut -f 1 -d \ ` >& /dev/null 122 - set f=`cat $HOME/.ssh/known_hosts | cut -f 1 -d \ | sed -e 's/,/ /g'` >& /dev/null 123 - set hosts=($hosts $f) 124 - endif 125 - unset f 126 - complete ssh p/1/\$hosts/ c/-/"(l n)"/ n/-l/u/ N/-l/c/ n/-/c/ p/2/c/ p/*/f/ 127 - complete {ping,telnet,traceroute} n/*/\$hosts/ 128 - 129 - # some commit git sub-commands 130 - set gitc="checkout commit diff log merge pull push remote stash" 131 - complete git "p/1/($gitc)/" 132 - unset gitc 133 - unset noglob 134 - set correct=all 135 - 136 - # options 137 - set autocorrect # fix typos 138 - set autolist # don't make me hit ctrl+d 139 - set autologout=0 # maybe i'm just taking a nap 140 - set correct=none # don't assume anything 141 - set history=500 # just in case 142 - unset ignoreeof # when i control+d, i want to logout 143 - set listjobs=long # shoe me pids 144 - set notify # curious george 145 - set noclobber # halp me 146 - set printexitvalue # i want to know if something went wrong 147 - set prompt='%n@%m:%~%# ' # yeah 148 - set promptchars='>#' # mac os uses % instead of >, suk 149 - set rmstar # recycle bin? 150 - set watch=(0 any any) # i see all 151 - set who="%B%n%b %a %l at %@" # format a bit 152 - 153 - # etc 154 - limit coredumpsize 0 # don't know why you'd want anything else 155 - umask 022 # be nice 156 - 157 - # load any local aliases and machine-specific things 158 - if (-f ~/.tcshrc.local) then 159 - source ~/.tcshrc.local 160 - endif 161 - 162 - if ("$OSTYPE" != "linux") then 163 - # siginfo 164 - stty status '^T' 165 - endif