diff options
author | Robby Russell <robby@planetargon.com> | 2012-11-25 11:39:45 -0800 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2012-11-25 11:39:45 -0800 |
commit | 6fbe5942383c53fa77373005e9b0d37e2b977cd5 (patch) | |
tree | add803960182a0dec30c63e8ec979916e3e3f07e | |
parent | 03c271224331159b3d396a0a77cf539c2537eabe (diff) | |
parent | 19aefa2bd6168a9d75ce9ccd255ffac20425232e (diff) | |
download | zsh-6fbe5942383c53fa77373005e9b0d37e2b977cd5.tar.gz zsh-6fbe5942383c53fa77373005e9b0d37e2b977cd5.tar.bz2 zsh-6fbe5942383c53fa77373005e9b0d37e2b977cd5.zip |
Merge pull request #1391 from logicmd/master
sublime text not found in Ubuntu
-rwxr-xr-x | plugins/sublime/sublime.plugin.zsh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/sublime/sublime.plugin.zsh b/plugins/sublime/sublime.plugin.zsh index 91b0279c5..171f00ef5 100755 --- a/plugins/sublime/sublime.plugin.zsh +++ b/plugins/sublime/sublime.plugin.zsh @@ -2,7 +2,11 @@ #unamestr = 'uname' if [[ $('uname') == 'Linux' ]]; then - alias st='/usr/bin/sublime_text&' + if [ -f '/usr/bin/sublime_text' ]; then + alias st='/usr/bin/sublime_text&' + else + alias st='/usr/bin/sublime-text&' + fi elif [[ $('uname') == 'Darwin' ]]; then alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' fi |