mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Adding /usr/bin/subl as one of Linux paths
In some Linux distributions Sublime Text 3 is installed to /usr/bin/subl.
This commit is contained in:
parent
c79e5a97a9
commit
f7a1e40313
1 changed files with 3 additions and 1 deletions
|
|
@ -12,8 +12,10 @@ _sublime_darwin_paths=(
|
||||||
if [[ $('uname') == 'Linux' ]]; then
|
if [[ $('uname') == 'Linux' ]]; then
|
||||||
if [ -f '/usr/bin/sublime_text' ]; then
|
if [ -f '/usr/bin/sublime_text' ]; then
|
||||||
st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
|
st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
|
||||||
else
|
elif [ -f '/usr/bin/sublime-text' ]; then
|
||||||
st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & }
|
st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & }
|
||||||
|
else
|
||||||
|
st_run() { nohup /usr/bin/subl $@ > /dev/null & }
|
||||||
fi
|
fi
|
||||||
alias st=st_run
|
alias st=st_run
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue