]> Vexing Labs - dotfiles.git/commitdiff
Add aliases for pbcopy/paste. Moving back to Linux, like the convenience.
authorAdam A.G. Shamblin <adam.shamblin@gmail.com>
Sat, 10 Dec 2016 18:36:35 +0000 (11:36 -0700)
committerAdam A.G. Shamblin <adam.shamblin@gmail.com>
Sat, 10 Dec 2016 18:36:35 +0000 (11:36 -0700)
dotbash_profile

index 0a60b65456954093e1d80cc062e1c55e87522091..1741aa685922ab754626fc24efb93a0e78c5f0cb 100644 (file)
@@ -126,7 +126,11 @@ complete -F _ssh_hosts ssh
 #
 ##################################################
 
-alias preview="open -a Preview"
+if ![[ hash pbcopy 2>/dev/null ]]; then
+    alias pbcopy='xsel --clipboard --input'
+    alias pbpaste='xsel --clipboard --output'
+fi
+
 alias jsoncb="pbpaste | python -mjson.tool | gvim -"
 
 # Setting PATH for Python 3.5