1
1
Fork 0

Consistent indenting for .fish files

This commit is contained in:
Jonathan Schleifer 2020-02-19 21:46:19 +00:00
parent ce52fc5aff
commit d5b9a71d71
18 changed files with 106 additions and 93 deletions

View file

@ -1,5 +1,5 @@
# To work around mpv not liking locales that use , as a decimal separator
function mpv
set -x LC_ALL C
set -lx LC_ALL C
command mpv $argv
end

View file

@ -10,8 +10,7 @@ function prompt_pwd --description 'Print the current working directory'
# Replace $HOME with "~"
set realhome ~
set -l tmp (string replace -r '^'"$realhome"'($|/)' '~$1' $PWD)
set tmp (basename $tmp)
set -l tmp (basename (string replace -r '^'"$realhome"'($|/)' '~$1' $PWD))
test $PWD = "/$tmp"
and set tmp $PWD

View 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