mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
sublime plugin: make "local" work by wrapping in anon function
This commit is contained in:
parent
599831b85a
commit
1209fb76ad
1 changed files with 7 additions and 3 deletions
|
|
@ -1,7 +1,9 @@
|
||||||
# Sublime Text 2 Aliases
|
# Sublime Text Aliases
|
||||||
|
|
||||||
|
() {
|
||||||
|
|
||||||
if [[ $('uname') == 'Linux' ]]; then
|
if [[ $('uname') == 'Linux' ]]; then
|
||||||
local _sublime_linux_paths > /dev/null 2>&1
|
local _sublime_linux_paths _sublime_path
|
||||||
_sublime_linux_paths=(
|
_sublime_linux_paths=(
|
||||||
"$HOME/bin/sublime_text"
|
"$HOME/bin/sublime_text"
|
||||||
"/opt/sublime_text/sublime_text"
|
"/opt/sublime_text/sublime_text"
|
||||||
|
|
@ -23,7 +25,7 @@ if [[ $('uname') == 'Linux' ]]; then
|
||||||
done
|
done
|
||||||
|
|
||||||
elif [[ "$OSTYPE" = darwin* ]]; then
|
elif [[ "$OSTYPE" = darwin* ]]; then
|
||||||
local _sublime_darwin_paths > /dev/null 2>&1
|
local _sublime_darwin_paths _sublime_path
|
||||||
_sublime_darwin_paths=(
|
_sublime_darwin_paths=(
|
||||||
"/usr/local/bin/subl"
|
"/usr/local/bin/subl"
|
||||||
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
||||||
|
|
@ -44,3 +46,5 @@ elif [[ "$OSTYPE" = darwin* ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias stt='st .'
|
alias stt='st .'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue