1
1
Fork 0
configs/config/fish/functions/pw.fish
Jonathan Schleifer e66fcd297f fish: Slightly change command and operator color
This is the exact same color in Apple Terminal, but improves legibility
in Gnome Terminal.

Also silences stderr from which.
2020-01-22 21:38:12 +00:00

13 lines
280 B
Fish

function pw
set -l clipboard
if which pbcopy >/dev/null ^&1
set clipboard pbcopy
else if which xclip >/dev/null ^&1
set clipboard xclip
else
echo "No clipboard handler found!"
return 1
end
cryptopassphrase -k ~/.scrypt-pwgen.key $argv | tr -d '\n' | $clipboard
end