mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-20 03:02:29 +01:00
Merge 61ce221bc2 into 86a272ef81
This commit is contained in:
commit
d0128b0274
1 changed files with 10 additions and 8 deletions
|
|
@ -5,16 +5,18 @@ if [[ $('uname') == 'Linux' ]]; then
|
|||
_sublime_linux_paths=(
|
||||
"$HOME/bin/sublime_text"
|
||||
"/opt/sublime_text/sublime_text"
|
||||
"/usr/bin/sublime_text"
|
||||
"/usr/local/bin/sublime_text"
|
||||
"/usr/local/bin/sublime-text"
|
||||
"/usr/bin/sublime_text"
|
||||
"/usr/bin/sublime-text"
|
||||
)
|
||||
for _sublime_path in $_sublime_linux_paths; do
|
||||
if [[ -a $_sublime_path ]]; then
|
||||
st_run() { $_sublime_path $@ >/dev/null 2>&1 &| }
|
||||
alias st=st_run
|
||||
break
|
||||
fi
|
||||
done
|
||||
for _sublime_path in $_sublime_linux_paths; do
|
||||
if [[ -a $_sublime_path ]]; then
|
||||
st_run() { nohup $_sublime_path $@ > /dev/null 2>&1 &| }
|
||||
alias st=st_run
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
elif [[ $('uname') == 'Darwin' ]]; then
|
||||
local _sublime_darwin_paths > /dev/null 2>&1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue