mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
Merge pull request #1122 from varunkvv/master
sublime pluginn : Added alias for Sublime Text 2 on Linux
This commit is contained in:
commit
0370de582b
1 changed files with 7 additions and 1 deletions
8
plugins/sublime/sublime.plugin.zsh
Normal file → Executable file
8
plugins/sublime/sublime.plugin.zsh
Normal file → Executable file
|
@ -1,3 +1,9 @@
|
|||
# Sublime Text 2 Aliases
|
||||
alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
|
||||
#unamestr = 'uname'
|
||||
|
||||
if [[ $('uname') == 'Linux' ]]; then
|
||||
alias st='/usr/bin/sublime_text&'
|
||||
elif [[ $('uname') == 'Darwin' ]]; then
|
||||
alias st='open -a /Applications/Sublime Text 2.app'
|
||||
fi
|
||||
alias stt='st .'
|
||||
|
|
Loading…
Reference in a new issue