summaryrefslogtreecommitdiff
path: root/dot
diff options
context:
space:
mode:
Diffstat (limited to 'dot')
-rw-r--r--dot/bashrc64
1 files changed, 0 insertions, 64 deletions
diff --git a/dot/bashrc b/dot/bashrc
index eb4c818..ec08c5c 100644
--- a/dot/bashrc
+++ b/dot/bashrc
@@ -1,7 +1,5 @@
1# ~/.bashrc: executed by bash(1) for non-login shells. 1# ~/.bashrc: executed by bash(1) for non-login shells.
2 2
3. /usr/local/src/haskell-platform/hproj.sh
4
5memoize_retval() 3memoize_retval()
6{ 4{
7 local var="$1" func="$2" 5 local var="$1" func="$2"
@@ -12,39 +10,6 @@ memoize_retval()
12 return ${!var} 10 return ${!var}
13} 11}
14 12
15move_download()
16{
17 rsync --remove-source-files -aP "$@" hydra:/srv/depot/hermes-downloads/
18}
19
20backup_downloads()
21{
22 rsync -aP /home/d/downloads/ hydra:/srv/depot/hermes-downloads/
23}
24
25backup_home()
26{
27 rsync -aP --delete-after --exclude /downloads /home/d/ hydra:/srv/depot/hermes-backup/
28}
29
30### history archival ###
31
32 if [ -n "$PS1" -a -f ~/.bash_history_archive ]; then
33 if cat ~/.bash_history >> ~/.bash_history_archive; then
34 history -r ~/.bash_history
35 :> ~/.bash_history
36 fi
37 fi
38
39### keychain ###
40
41if false && [ -n "$(which keychain)" ]; then
42 keychain --quiet --inherit any
43 if [ -f "$HOME"/.keychain/"$(hostname)"-sh ]; then
44 . "$HOME"/.keychain/"$(hostname)"-sh;
45 fi
46fi
47
48### utility functions ### 13### utility functions ###
49 14
50 quiet() { "$@" >/dev/null 2>&1; } 15 quiet() { "$@" >/dev/null 2>&1; }
@@ -187,25 +152,6 @@ fi
187 lss () { command ls -sCF "$@" | less -RSeX; }; 152 lss () { command ls -sCF "$@" | less -RSeX; };
188 fi 153 fi
189 154
190 nw()
191 {
192 if [ -z "$SSH_AGENT_PID" ]; then
193 eval $(ssh-agent -s)
194 ssh-add
195 fi
196 ssh -A ns1.nextwerk.com
197 }
198
199 bt()
200 {
201 btdownloadheadless "$@" | paragraph-uniq | paragraph-clear
202 }
203
204 mplayer()
205 {
206 MPLAYER_VERBOSE=-9 command mplayer -msglevel avsync=5 "$@" 2>/dev/null;
207 }
208
209 mkcd() 155 mkcd()
210 { 156 {
211 if [ $# -gt 1 ]; then 157 if [ $# -gt 1 ]; then
@@ -276,16 +222,6 @@ alias irc='jfx jerkface.net screen -xRR irc'
276alias code='jfx jerkface.net screen -xRR code' 222alias code='jfx jerkface.net screen -xRR code'
277alias grep='grep --exclude-dir=.svn' 223alias grep='grep --exclude-dir=.svn'
278 224
279pigeondl ()
280{
281 rsync -aP "$@" pigeon:watch.onion/;
282}
283skp ()
284{
285 a=$*
286 w3m -o http_proxy=http://localhost:8123 -o use_proxy=1 http://wtwfzc6ty2s6x4po.onion/"$a"
287}
288skp () { w3m -o http_proxy=http://localhost:8123 -o use_proxy=1 -o use_cookie=1 -o accept_cookie=1 -o show_cookie=0 http://wtwfzc6ty2s6x4po.onion/; }
289dorner () 225dorner ()
290{ 226{
291 DOOMWADDIR=$HOME/src/zdoom/release LD_LIBRARY_PATH=$HOME/src/zdoom/fmodapi42636linux/api/lib/ $HOME/src/zdoom/release/zdoom -file \$HOME/Dorners\ Last\ Stand Skins/DoRnerLastStand.wad 227 DOOMWADDIR=$HOME/src/zdoom/release LD_LIBRARY_PATH=$HOME/src/zdoom/fmodapi42636linux/api/lib/ $HOME/src/zdoom/release/zdoom -file \$HOME/Dorners\ Last\ Stand Skins/DoRnerLastStand.wad