dotfiles

Dash Eclipse's dotfiles
git clone git://ezup.dev/dotfiles.git
Log | Files | Refs | README | LICENSE

commit c8e75f078d3bb300b118a981b6f3a9592627e107
parent ceb138d16427674d66b9b1aa4eecc9621cea17a5
Author: Dash Eclipse <dashezup@disroot.org>
Date:   Wed, 30 Mar 2022 19:35:14 +0000

fix: .zshrc.local: sdict() return instead of exit

Diffstat:
M.zshrc.local | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.zshrc.local b/.zshrc.local @@ -99,7 +99,7 @@ sdict() { if [ -z "$1" ]; then echo "$ALL_DICT" \ | fzf --layout=reverse --info=inline --height="$COUNT_DICT" --prompt='dict > ' \ - | read DB DICT || exit 0 + | read DB DICT || return 0 else echo "$ALL_DICT" | while read database dictionary; do if [ "$1" = "$database" ]; then @@ -108,7 +108,7 @@ sdict() { break fi done - [ -z "$DB" ] && { echo "Invalid dict db: $1"; exit 1; } + [ -z "$DB" ] && { echo "Invalid dict db: $1"; return 1; } fi cut -f1 "/usr/share/dict/${DB}.index" \ | fzf \