No functional changes.
~/sbin
~/Applications
); do
- [ -d "$d" ] && path=("$d" $path)
+ [[ -d "$d" ]] && path=("$d" $path)
done
# Append additional search paths
/usr/local/games
/usr/games
); do
- [ -d "$d" ] && path=($path "$d")
+ [[ -d "$d" ]] && path=($path "$d")
done
# Set default MANPATH
/usr/share/man
/usr/local/share/man
); do
- [ -d "$d" ] && manpath=($manpath "$d")
+ [[ -d "$d" ]] && manpath=($manpath "$d")
done
fi
typeset -Ux MANPATH
$x11_browsers
elinks w3m links2 links lynx
); do
- if [ -n "$commands[$browser]" ]; then
+ if [[ -n "$commands[$browser]" ]]; then
BROWSER="$commands[$browser]"
break
fi
$x11_editors
vim nano joe vi
); do
- if [ -n "$commands[$editor]" ]; then
+ if [[ -n "$commands[$editor]" ]]; then
EDITOR="$commands[$editor]"
break
fi
iterm2_precmd() {
local STATUS="$?"
- if [ -z "${ITERM2_SHOULD_DECORATE_PROMPT-}" ]; then
+ if [[ -z "${ITERM2_SHOULD_DECORATE_PROMPT-}" ]]; then
# You pressed ^C while entering a command (iterm2_preexec did not run)
iterm2_before_cmd_executes
fi
iterm2_after_cmd_executes "$STATUS"
- if [ -n "$ITERM2_SHOULD_DECORATE_PROMPT" ]; then
+ if [[ -n "$ITERM2_SHOULD_DECORATE_PROMPT" ]]; then
iterm2_decorate_prompt
fi
}