summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-12-06 01:33:12 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-12-06 01:33:12 +0100
commit12ed5b99673a38e864da93a06097efe47bee1e2f (patch)
tree0ad4396bd38e8b7dbda34aece3ab43899b494b09
parent873165b6d8cf817e6f581be489c4aa7deea9b421 (diff)
uni: s/idx/i/
-rwxr-xr-x.local/bin/uni4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/uni b/.local/bin/uni
index a829fd0..bdfb54d 100755
--- a/.local/bin/uni
+++ b/.local/bin/uni
@@ -20,12 +20,12 @@ test $#XDG_DATA_HOME -eq 0 && set XDG_DATA_HOME $HOME/.local/share
set DATA $XDG_DATA_HOME/unicode-data
test -f $DATA || setup
-set idx `{
+set i `{
tee >{cut -d';' -f1 | read -d\n runes} <$DATA
| cut -d';' -f2 $DATA
| osel -i
}
-set rune `printf $runes[$idx]
+set rune `printf $runes[$i]
if test -t 2 {
wl-copy -n "$rune"