mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
sublime: Remove unnecessary stdout/sterr redirections
This commit is contained in:
parent
793b3e34f5
commit
4ef638aa9a
1 changed files with 4 additions and 4 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
() {
|
() {
|
||||||
if [[ "$OSTYPE" == 'linux-gnu' ]]; then
|
if [[ "$OSTYPE" == 'linux-gnu' ]]; then
|
||||||
local _sublime_linux_paths > /dev/null 2>&1
|
local _sublime_linux_paths
|
||||||
_sublime_linux_paths=(
|
_sublime_linux_paths=(
|
||||||
"$HOME/bin/sublime_text"
|
"$HOME/bin/sublime_text"
|
||||||
"/opt/sublime_text/sublime_text"
|
"/opt/sublime_text/sublime_text"
|
||||||
|
|
@ -24,7 +24,7 @@ if [[ "$OSTYPE" == 'linux-gnu' ]]; then
|
||||||
done
|
done
|
||||||
|
|
||||||
elif [[ "$OSTYPE" = darwin* ]]; then
|
elif [[ "$OSTYPE" = darwin* ]]; then
|
||||||
local _sublime_darwin_paths > /dev/null 2>&1
|
local _sublime_darwin_paths
|
||||||
_sublime_darwin_paths=(
|
_sublime_darwin_paths=(
|
||||||
"/usr/local/bin/subl"
|
"/usr/local/bin/subl"
|
||||||
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
||||||
|
|
@ -50,7 +50,7 @@ elif [[ "$OSTYPE" == cygwin ]]; then
|
||||||
cygprogfiles_x86=$(cmd /c "echo %ProgramFiles(x86)%")
|
cygprogfiles_x86=$(cmd /c "echo %ProgramFiles(x86)%")
|
||||||
cygprogfiles_x86=${cygprogfiles_x86/[\\r\\n]//}
|
cygprogfiles_x86=${cygprogfiles_x86/[\\r\\n]//}
|
||||||
cygprogfiles_x86=$(cygpath "$cygprogfiles_x86")
|
cygprogfiles_x86=$(cygpath "$cygprogfiles_x86")
|
||||||
local _sublime_cygwin_paths > /dev/null 2>&1
|
local _sublime_cygwin_paths
|
||||||
_sublime_cygwin_paths=(
|
_sublime_cygwin_paths=(
|
||||||
"$cygprogfiles/Sublime Text 2/sublime_text.exe"
|
"$cygprogfiles/Sublime Text 2/sublime_text.exe"
|
||||||
"$cygprogfiles/Sublime Text 3/sublime_text.exe"
|
"$cygprogfiles/Sublime Text 3/sublime_text.exe"
|
||||||
|
|
@ -66,7 +66,7 @@ elif [[ "$OSTYPE" == cygwin ]]; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
IFS=$OLDIFS
|
IFS="$OLDIFS"
|
||||||
unset OLDIFS
|
unset OLDIFS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue