Mercurial > hg > config
comparison .bashrc @ 565:7b70e5c0d410
fn -> xclip
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 25 Dec 2013 15:31:28 -0800 |
parents | 047a53a8fbad |
children | 38fc390b4e5d |
comparison
equal
deleted
inserted
replaced
564:047a53a8fbad | 565:7b70e5c0d410 |
---|---|
242 done | 242 done |
243 echo "$NEWNAME" | 243 echo "$NEWNAME" |
244 done | 244 done |
245 } | 245 } |
246 | 246 |
247 abspath() { | |
248 python -c "import os; print (os.path.realpath('$*'))" | |
249 } | |
250 | |
247 fn() { | 251 fn() { |
248 # full name | 252 # put full name on clipboard and echo it |
249 python -c "import os; print (os.path.realpath('$*'))" | 253 python -c "import os; print (os.path.realpath('$*'))" | xclip -i |
254 xclip -o | |
250 } | 255 } |
251 | 256 |
252 swap() { | 257 swap() { |
253 # swap two files | 258 # swap two files |
254 if [ "$#" != "2" ] | 259 if [ "$#" != "2" ] |