Consistent indenting for .fish files
This commit is contained in:
parent
ce52fc5aff
commit
d5b9a71d71
18 changed files with 106 additions and 93 deletions
14
config/fish/functions/pws.fish
Normal file
14
config/fish/functions/pws.fish
Normal file
|
@ -0,0 +1,14 @@
|
|||
function pws
|
||||
set -l clipboard
|
||||
if type -q pbcopy
|
||||
set clipboard pbcopy
|
||||
else if type -q xclip
|
||||
set clipboard xclip
|
||||
else
|
||||
echo "No clipboard handler found!"
|
||||
return 1
|
||||
end
|
||||
|
||||
cryptopassphrase -k ~/.scrypt-pwgen-server.key $argv \
|
||||
| tr -d '\n' | $clipboard
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue