comparison .bashrc @ 759:f632a9850bb8

lookie, i can has x platform
author Jeff Hammel <k0scist@gmail.com>
date Wed, 16 Sep 2015 15:09:19 -0700
parents 14eee9200854
children 6af50cab823f
comparison
equal deleted inserted replaced
758:88f19ebb43ea 759:f632a9850bb8
26 26
27 # variables 27 # variables
28 export BROWSER=$(which firefox) 28 export BROWSER=$(which firefox)
29 export CLICOLOR=1 29 export CLICOLOR=1
30 export EDITOR='emacs -nw' 30 export EDITOR='emacs -nw'
31 export JS_EDITLINE=1
32 export JS_EDITLINE=1 31 export JS_EDITLINE=1
33 32
34 # aliases 33 # aliases
35 alias awd="python -c 'import os; print (os.path.realpath(\".\"))'" 34 alias awd="python -c 'import os; print (os.path.realpath(\".\"))'"
36 alias currentpatch='echo `hg root`/.hg/patches/`hg qapp -v | tail -n 1 | cut -f 3 -d " "`' 35 alias currentpatch='echo `hg root`/.hg/patches/`hg qapp -v | tail -n 1 | cut -f 3 -d " "`'
62 PROMPT_COMMAND='echo -ne "\033]0;${SSH_CLIENT/*/$HOSTNAME:}${PWD/~/~}\007"' 61 PROMPT_COMMAND='echo -ne "\033]0;${SSH_CLIENT/*/$HOSTNAME:}${PWD/~/~}\007"'
63 62
64 # PATHs 63 # PATHs
65 export PATH=~/firefox:~/bin:~/bin/mozilla:~/python:$PATH:/usr/sbin:/usr/games/bin:~/virtualenv:~/silvermirror/bin:~/smartopen/bin:~/k0s/bin:~/docs/project/ims/workflow:~/cognet/bin:~/cognet/python 64 export PATH=~/firefox:~/bin:~/bin/mozilla:~/python:$PATH:/usr/sbin:/usr/games/bin:~/virtualenv:~/silvermirror/bin:~/smartopen/bin:~/k0s/bin:~/docs/project/ims/workflow:~/cognet/bin:~/cognet/python
66 export PYTHONPATH=~/python:$PYTHONPATH:~/virtualenv 65 export PYTHONPATH=~/python:$PYTHONPATH:~/virtualenv
66
67 # clipboard
68 if which xclip &> /dev/null
69 then
70 export CLIP_COPY="xclip -i"
71 export CLIP_PASTE="xclip -o"
72 elif which pbcopy &> /dev/null
73 then
74 export CLIP_COPY="pbcopy"
75 export CLIP_PASTE="pbpaste"
76 else
77 export CLIP_COPY="tee"
78 export CLIP_PASTE="true"
79 fi
67 80
68 ### functions 81 ### functions
69 82
70 gplot() { 83 gplot() {
71 84
249 python -c "import os; print (os.path.realpath('$*'))" 262 python -c "import os; print (os.path.realpath('$*'))"
250 } 263 }
251 264
252 fn() { 265 fn() {
253 # put full name on clipboard and echo it 266 # put full name on clipboard and echo it
254 python -c "import os; print (os.path.realpath('$*'))" | xclip -i 267 python -c "import os; print (os.path.realpath('$*'))" | ${CLIP_COPY}
255 xclip -o 268 ${CLIP_PASTE}
256 } 269 }
257 270
258 swap() { 271 swap() {
259 # swap two files 272 # swap two files
260 if [ "$#" != "2" ] 273 if [ "$#" != "2" ]