From: Adam A.G. Shamblin Date: Sat, 10 Dec 2016 18:36:35 +0000 (-0700) Subject: Add aliases for pbcopy/paste. Moving back to Linux, like the convenience. X-Git-Url: https://git.vexinglabs.com/?a=commitdiff_plain;h=df2cbd6bf09be8acacc05ee1a2b245da87b6ee4f;p=dotfiles.git Add aliases for pbcopy/paste. Moving back to Linux, like the convenience. --- diff --git a/dotbash_profile b/dotbash_profile index 0a60b65..1741aa6 100644 --- a/dotbash_profile +++ b/dotbash_profile @@ -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