mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-20 03:13:33 +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
|
||||
local _sublime_linux_paths > /dev/null 2>&1
|
||||
local _sublime_linux_paths _sublime_path
|
||||
_sublime_linux_paths=(
|
||||
"$HOME/bin/sublime_text"
|
||||
"/opt/sublime_text/sublime_text"
|
||||
|
|
@ -23,7 +25,7 @@ if [[ $('uname') == 'Linux' ]]; then
|
|||
done
|
||||
|
||||
elif [[ "$OSTYPE" = darwin* ]]; then
|
||||
local _sublime_darwin_paths > /dev/null 2>&1
|
||||
local _sublime_darwin_paths _sublime_path
|
||||
_sublime_darwin_paths=(
|
||||
"/usr/local/bin/subl"
|
||||
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
||||
|
|
@ -44,3 +46,5 @@ elif [[ "$OSTYPE" = darwin* ]]; then
|
|||
fi
|
||||
|
||||
alias stt='st .'
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue