summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorkar <kar@13f0.net>2025-01-01 14:17:48 -0500
committerkar <kar@13f0.net>2025-01-01 14:36:53 -0500
commitfc2f7db3b2f5b6f0258e94143ba88378dd58f5c5 (patch)
treed6d3e1394a740e85c431980ba30a1d780e9eabd9 /contrib
parent6d923b6894eb8402a5f1e2e43e4249744ac06064 (diff)
rename angou to kasi
Having a Japanese word as a project name sounds very childish when not I am not Japanese myself. Using a conlang is childish too when I don't know any words in it? I refuse to believe that.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/autocomplete.ksh6
-rw-r--r--contrib/autocomplete.zsh6
-rwxr-xr-xcontrib/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
2set -A complete_angou_1 -- help copy edit view pass generate 2set -A complete_kasi_1 -- help copy edit view pass generate
3set -A complete_angou_2 -- $(find ${ANGOU_DIR:-~/.angou} -type f | sort \ 3set -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
3passwords() { 3passwords() {
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
2ANGOU_DIR="${ANGOU_DIR:-~/.angou}" 2KASI_DIR="${KASI_DIR:-~/.kasi}"
3DMENU="dmenu" 3DMENU="dmenu"
4 4
5cd "$ANGOU_DIR" 5cd "$KASI_DIR"
6file=$(find . -type f -printf '%P\n' | sort | sed 's,^\./,,' | $DMENU) 6file=$(find . -type f -printf '%P\n' | sort | sed 's,^\./,,' | $DMENU)
7 7
8if [ -z "$1" ]; then 8if [ -z "$1" ]; then
9 angou copy "$file" 9 kasi copy "$file"
10elif [ "$1" = "totp" ] 10elif [ "$1" = "totp" ]
11 angou totp "$file" 11 kasi totp "$file"
12else 12else
13 exit 1 13 exit 1
14fi 14fi