[zsh] Fix some coding amateur hour in the *_path functions

This commit is contained in:
Eryn Wells 2023-03-30 10:44:00 -07:00
parent dd7de9628e
commit 21ebcac9d5
3 changed files with 8 additions and 8 deletions

View file

@ -9,11 +9,11 @@ init_path() {
case $opt in
"v") should_be_verbose=1;;
"+v") should_be_verbose=0;;
*) >&2 echo "$0: unknown option '$opt'" ;;
*) ;;
esac
done
local verbose_flag
local verbose_flag=''
if (( $should_be_verbose )); then
verbose_flag='-v'
fi