summaryrefslogtreecommitdiff
path: root/plugins/sublime
diff options
context:
space:
mode:
authorGaetan Semet <gaetan@xeberon.net>2013-11-17 00:03:16 +0100
committerGaetan Semet <gaetan@xeberon.net>2013-11-17 00:03:16 +0100
commitae1fe0029c63debfe44dcba52761389c6c876b31 (patch)
tree4c9dd3554943a39ad73ae8bba8a1a4a98517f56c /plugins/sublime
parent90c28b786ae8a8013fc5083e9cf941115152c706 (diff)
downloadzsh-ae1fe0029c63debfe44dcba52761389c6c876b31.tar.gz
zsh-ae1fe0029c63debfe44dcba52761389c6c876b31.tar.bz2
zsh-ae1fe0029c63debfe44dcba52761389c6c876b31.zip
Add support for sublime 3
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
Diffstat (limited to 'plugins/sublime')
-rwxr-xr-xplugins/sublime/sublime.plugin.zsh38
1 files changed, 20 insertions, 18 deletions
diff --git a/plugins/sublime/sublime.plugin.zsh b/plugins/sublime/sublime.plugin.zsh
index 72f56754c..566279183 100755
--- a/plugins/sublime/sublime.plugin.zsh
+++ b/plugins/sublime/sublime.plugin.zsh
@@ -2,30 +2,32 @@
local _sublime_darwin_paths > /dev/null 2>&1
_sublime_darwin_paths=(
- "/usr/local/bin/subl"
- "$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
- "$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
- "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
- "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
+ "/usr/local/bin/subl"
+ "$HOME/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
+ "$HOME/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
+ "$HOME/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
+ "/Applications/Sublime Text 3.app/Contents/SharedSupport/bin/subl"
+ "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"
+ "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
)
if [[ $('uname') == 'Linux' ]]; then
- if [ -f '/usr/bin/sublime_text' ]; then
- st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
- else
- st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & }
- fi
- alias st=st_run
+ if [ -f '/usr/bin/sublime_text' ]; then
+ st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
+ else
+ st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & }
+ fi
+ alias st=st_run
elif [[ $('uname') == 'Darwin' ]]; then
- for _sublime_path in $_sublime_darwin_paths; do
- if [[ -a $_sublime_path ]]; then
- alias subl="'$_sublime_path'"
- alias st=subl
- break
- fi
- done
+ for _sublime_path in $_sublime_darwin_paths; do
+ if [[ -a $_sublime_path ]]; then
+ alias subl="'$_sublime_path'"
+ alias st=subl
+ break
+ fi
+ done
fi
alias stt='st .'