From df2cbd6bf09be8acacc05ee1a2b245da87b6ee4f Mon Sep 17 00:00:00 2001 From: "Adam A.G. Shamblin" Date: Sat, 10 Dec 2016 11:36:35 -0700 Subject: [PATCH] Add aliases for pbcopy/paste. Moving back to Linux, like the convenience. --- dotbash_profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5