fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
38cd373ca
master
1function __fish_mkpasswd_methods --description"Complete hashing methods for mkpasswd" 2mkpasswd -m help| tail -n+2 | string replace -r'^(\S+)\s+(\S.*)' '$1\t$2' 3echo -e"help\tList available methods" 4end 5 6complete -c mkpasswd -f 7complete -c mkpasswd -s S -l salt -x -d'Use given string as salt' 8complete -c mkpasswd -s R -l rounds -x -d'Use given number of rounds' 9complete -c mkpasswd -s m -l method -xa"(__fish_mkpasswd_methods)" -d'Compute the password using the given method' 10complete -c mkpasswd -s5 -d'Like --method=md5crypt' 11complete -c mkpasswd -s P -l password-fd -x -d'Read the password from the given file descriptor' 12complete -c mkpasswd -s s -l stdin -d'Read the password from stdin'