my dotz
0

Configure Feed

Select the types of activity you want to include in your feed.

require arg for edit

+7 -8
+7 -8
bin/pa
··· 181 181 die "Can't access password directory" 182 182 183 183 [ -f ~/.age/key.txt ] || pw_gen 184 + pubkey=$(sed -n 's/.*\(age\)/\1/p' ~/.age/key.txt) 184 185 185 - glob "$1" '[acds]*' && [ -z "$2" ] && 186 + glob "$1" '[acdes]*' && [ -z "$2" ] && 186 187 die "Missing [name] argument" 187 188 188 189 glob "$1" '[cds]*' && [ ! -f "$2.age" ] && ··· 200 201 glob "$2" '*/*' && { mkdir -p "${2%/*}" || 201 202 die "Couldn't create category '${2%/*}'"; } 202 203 203 - pubkey=$(sed -n 's/.*\(age\)/\1/p' ~/.age/key.txt) 204 - 205 204 # Restrict permissions of any new files to 206 205 # only the current user. 207 206 umask 077 ··· 211 210 [ -t 1 ] && trap 'stty echo icanon' INT EXIT 212 211 213 212 case $1 in 214 - a*) pw_add "$2" ;; 215 - d*) pw_del "$2" ;; 216 - e*) pw_edit "$2" ;; 217 - s*) pw_show "$2" ;; 218 - l*) pw_list ;; 213 + a*) pw_add "$2" ;; 214 + d*) pw_del "$2" ;; 215 + e*) pw_edit "$2" ;; 216 + s*) pw_show "$2" ;; 217 + l*) pw_list ;; 219 218 *) usage 220 219 esac 221 220 }