My configurations for the software I use
at main 687 B view raw
1#!/bin/ksh 2# Search for `complete_command` in the ksh/rksh manual for more information 3 4# pass 5[[ -d $PASSWORD_STORE_DIR ]] && { 6 cd "$PASSWORD_STORE_DIR" || return 7 set -A password_list -- */*.gpg 8 cd "$OLDPWD" || return 9 10 num=0 11 while (( num < ${#password_list[@]} )) 12 do 13 password_list[$num]=${password_list[$num]%.gpg} 14 num=$((num+1)) 15 done 16 17 # Doing `set -A' sets the variable 18 # shellcheck disable=SC2154 19 set -A complete_pass -- "${password_list[@]}" 20 set -A complete_pass_1 -- add cp edit find generate git grep help init insert list ls mv rm \ 21 search show version 22 unset password_list num 23} 24 25# Make something for manpages and other utilities i use?