changeset 565:7b70e5c0d410

fn -> xclip
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 25 Dec 2013 15:31:28 -0800
parents 047a53a8fbad
children e3341b7ce4ef
files .bashrc
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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() {