mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
Save/Resore IFS value
This commit is contained in:
parent
2a7bb8adb3
commit
6489fffb8d
1 changed files with 3 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ elif [[ "$OSTYPE" == cygwin ]]; then
|
||||||
"$cygprogfiles_x86/Sublime Text 2/sublime_text.exe"
|
"$cygprogfiles_x86/Sublime Text 2/sublime_text.exe"
|
||||||
"$cygprogfiles_x86/Sublime Text 3/sublime_text.exe"
|
"$cygprogfiles_x86/Sublime Text 3/sublime_text.exe"
|
||||||
)
|
)
|
||||||
|
local OLDIFS="$IFS"
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
for _sublime_path in $_sublime_cygwin_paths; do
|
for _sublime_path in $_sublime_cygwin_paths; do
|
||||||
if [[ -a $_sublime_path ]]; then
|
if [[ -a $_sublime_path ]]; then
|
||||||
|
|
@ -65,6 +65,8 @@ elif [[ "$OSTYPE" == cygwin ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
IFS=$OLDIFS
|
||||||
|
unset OLDIFS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias stt='st .'
|
alias stt='st .'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue