# HG changeset patch # User Jeff Hammel # Date 1388014288 28800 # Node ID 7b70e5c0d4105d9153a6cfc45e44c85a210e4bd5 # Parent 047a53a8fbad08861b6fdd901f17e4338a43cf21 fn -> xclip diff -r 047a53a8fbad -r 7b70e5c0d410 .bashrc --- a/.bashrc Thu Dec 19 18:03:05 2013 -0800 +++ b/.bashrc Wed Dec 25 15:31:28 2013 -0800 @@ -244,9 +244,14 @@ done } +abspath() { + python -c "import os; print (os.path.realpath('$*'))" +} + fn() { - # full name - python -c "import os; print (os.path.realpath('$*'))" + # put full name on clipboard and echo it + python -c "import os; print (os.path.realpath('$*'))" | xclip -i + xclip -o } swap() {