[zsh] Fix some coding amateur hour in the *_path functions
This commit is contained in:
parent
dd7de9628e
commit
21ebcac9d5
3 changed files with 8 additions and 8 deletions
|
@ -17,12 +17,12 @@ prepend_to_path() {
|
|||
local path_to_add=$@[$OPTIND]
|
||||
|
||||
if [[ -d "$path_to_add" ]]; then
|
||||
if (( $verbose )); then
|
||||
if (( $should_be_verbose )); then
|
||||
echo "Prepending $path_to_add to \$path"
|
||||
fi
|
||||
path=("$path_to_add" $path)
|
||||
else
|
||||
if (( $verbose )); then
|
||||
if (( $should_be_verbose )); then
|
||||
echo "$path_to_add doesn't exist"
|
||||
fi
|
||||
result=0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue