diff options
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/autocomplete.ksh | 6 | ||||
| -rw-r--r-- | contrib/autocomplete.zsh | 6 | ||||
| -rwxr-xr-x | contrib/kasimenu (renamed from contrib/angoumenu) | 8 |
3 files changed, 10 insertions, 10 deletions
diff --git a/contrib/autocomplete.ksh b/contrib/autocomplete.ksh index 5c91ad8..54d774a 100644 --- a/contrib/autocomplete.ksh +++ b/contrib/autocomplete.ksh | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | #!/bin/ksh | 1 | #!/bin/ksh |
| 2 | set -A complete_angou_1 -- help copy edit view pass generate | 2 | set -A complete_kasi_1 -- help copy edit view pass generate |
| 3 | set -A complete_angou_2 -- $(find ${ANGOU_DIR:-~/.angou} -type f | sort \ | 3 | set -A complete_kasi_2 -- $(find ${KASI_DIR:-~/.kasi} -type f | sort \ |
| 4 | | sed s,${ANGOU_DIR}/,, | sed s,\\.gpg$,,) | 4 | | sed s,${KASI_DIR}/,, | sed s,\\.gpg$,,) |
diff --git a/contrib/autocomplete.zsh b/contrib/autocomplete.zsh index eaafb8c..1a8ea10 100644 --- a/contrib/autocomplete.zsh +++ b/contrib/autocomplete.zsh | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | #compdef angou | 1 | #compdef kasi |
| 2 | 2 | ||
| 3 | passwords() { | 3 | passwords() { |
| 4 | files=("${(f)$(find ${ANGOU_DIR:-$HOME/.angou} -type f -printf '%P\n' | sort)}") | 4 | files=("${(f)$(find ${KASI_DIR:-$HOME/.kasi} -type f -printf '%P\n' | sort)}") |
| 5 | _multi_parts / files | 5 | _multi_parts / files |
| 6 | } | 6 | } |
| 7 | 7 | ||
| 8 | _arguments \ | 8 | _arguments \ |
| 9 | '1:angou commands:(copy edit generate help pass view totp totp_view)' \ | 9 | '1:kasi commands:(copy edit generate help pass view totp totp_view)' \ |
| 10 | '2:passwords:passwords' | 10 | '2:passwords:passwords' |
diff --git a/contrib/angoumenu b/contrib/kasimenu index 85ca2e4..3a42745 100755 --- a/contrib/angoumenu +++ b/contrib/kasimenu | |||
| @@ -1,14 +1,14 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | ANGOU_DIR="${ANGOU_DIR:-~/.angou}" | 2 | KASI_DIR="${KASI_DIR:-~/.kasi}" |
| 3 | DMENU="dmenu" | 3 | DMENU="dmenu" |
| 4 | 4 | ||
| 5 | cd "$ANGOU_DIR" | 5 | cd "$KASI_DIR" |
| 6 | file=$(find . -type f -printf '%P\n' | sort | sed 's,^\./,,' | $DMENU) | 6 | file=$(find . -type f -printf '%P\n' | sort | sed 's,^\./,,' | $DMENU) |
| 7 | 7 | ||
| 8 | if [ -z "$1" ]; then | 8 | if [ -z "$1" ]; then |
| 9 | angou copy "$file" | 9 | kasi copy "$file" |
| 10 | elif [ "$1" = "totp" ] | 10 | elif [ "$1" = "totp" ] |
| 11 | angou totp "$file" | 11 | kasi totp "$file" |
| 12 | else | 12 | else |
| 13 | exit 1 | 13 | exit 1 |
| 14 | fi | 14 | fi |
