- Timestamp:
- Sep 11, 2023, 4:59:07 PM (21 months ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/README.md
r18 r20 12 12 * `tree(1)` for printing a list 13 13 * `mandoc(1)` for documentation 14 * `rm(1)` with the `-i` and `-I` switches 14 15 15 16 ## Add-ons 16 17 17 ### kanako\_gen 18 random username and password generator, requires `strings(1)`, 19 `dd(1)` and a sane `tr(1)` (FreeBSD's one behaves differently and 20 in unexpected ways) 21 22 ### kanako\_menu 18 ### kanako-menu 23 19 quick graphical front-end for kanako, works with either of `dmenu(1)` 24 20 or `bemenu(1)`, useful for copying passwords to clipboard. 25 21 26 ### kanako \_totp22 ### kanako-totp 27 23 time-based one time password addon for kanako, requires `oathtool(1)` 28 24 from oath-toolkit. -
trunk/kanako
r19 r20 1 1 #!/bin/sh 2 # $TheSupernovaDuo: kanako,v 2.0 2023/0 8/23 23:33:45yakumo_izuru Exp $2 # $TheSupernovaDuo: kanako,v 2.0 2023/09/11 13:59:00 yakumo_izuru Exp $ 3 3 4 4 readonly kanako_conf_dir="${kanako_conf_dir:-$HOME/.config/kanako}" … … 28 28 edit() { 29 29 ${kanako_encrypt_cmd} ${kanako_decrypt_args} ${1%%.enc}.enc > ${1%%.enc} 30 "${EDITOR }" "${1%%.enc}"30 "${EDITOR:-${EDITOR:-vi}}" "${1%%.enc}" 31 31 ${kanako_encrypt_cmd} ${kanako_encrypt_args} ${1%%.enc} > ${1%%.enc}.enc 32 32 rm "${1%%.enc}" … … 39 39 40 40 tmpfile="$(mktemp)" 41 "${EDITOR }" "${tmpfile}"41 "${EDITOR:-${EDITOR:-vi}}" "${tmpfile}" 42 42 43 43 mkdir -p "$(dirname "$1")"
Note:
See TracChangeset
for help on using the changeset viewer.