From 12ed5b99673a38e864da93a06097efe47bee1e2f Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 6 Dec 2023 01:33:12 +0100 Subject: uni: s/idx/i/ --- .local/bin/uni | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.local/bin') 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" -- cgit v1.2.3