mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +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 3/sublime_text.exe"
|
||||
)
|
||||
|
||||
local OLDIFS="$IFS"
|
||||
IFS=$'\n'
|
||||
for _sublime_path in $_sublime_cygwin_paths; do
|
||||
if [[ -a $_sublime_path ]]; then
|
||||
|
|
@ -65,6 +65,8 @@ elif [[ "$OSTYPE" == cygwin ]]; then
|
|||
break
|
||||
fi
|
||||
done
|
||||
IFS=$OLDIFS
|
||||
unset OLDIFS
|
||||
fi
|
||||
|
||||
alias stt='st .'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue