mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 15:20:08 +00:00
Merge pull request #1454 from gAmUssA/patch-4
Update plugins/sublime/sublime.plugin.zsh
This commit is contained in:
commit
9ae128983a
1 changed files with 3 additions and 2 deletions
|
@ -5,10 +5,11 @@ local _sublime_darwin_subl=/Applications/Sublime\ Text\ 2.app/Contents/SharedSup
|
||||||
|
|
||||||
if [[ $('uname') == 'Linux' ]]; then
|
if [[ $('uname') == 'Linux' ]]; then
|
||||||
if [ -f '/usr/bin/sublime_text' ]; then
|
if [ -f '/usr/bin/sublime_text' ]; then
|
||||||
alias st='/usr/bin/sublime_text&'
|
st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
|
||||||
else
|
else
|
||||||
alias st='/usr/bin/sublime-text&'
|
st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & }
|
||||||
fi
|
fi
|
||||||
|
alias st=st_run
|
||||||
elif [[ $('uname') == 'Darwin' ]]; then
|
elif [[ $('uname') == 'Darwin' ]]; then
|
||||||
# Check if Sublime is installed in user's home application directory
|
# Check if Sublime is installed in user's home application directory
|
||||||
if [[ -a $HOME/${_sublime_darwin_subl} ]]; then
|
if [[ -a $HOME/${_sublime_darwin_subl} ]]; then
|
||||||
|
|
Loading…
Reference in a new issue