←back to thread

2039 points Gadiguibou | 4 comments | | HN request time: 0.566s | source
1. whalesalad ◴[] No.36492332[source]
`pbcopy | jq | pbpaste` is a very frequent command that I run to quickly format json in the clipboard.

I use pbcopy and pbpaste probably all day long and always miss it in Linux environments.

replies(3): >>36492388 #>>36493045 #>>36496472 #
2. photonerd ◴[] No.36492388[source]
You should Alias xsel if you’re in an x environment
3. hoherd ◴[] No.36493045[source]
Also `alias pbsort='pbpaste | sort | pbcopy'`
4. ngai_aku ◴[] No.36496472[source]
Slick! I need to figure out how to get something like this for SQL