mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-01-01 17:22:52 +08:00
6f859c5837
Detects the platform using "uname", and sets the alias accordingly. If you are using Linux, this assumes that you have created a symbolic link to /usr/bin/sublime_text.
9 lines
229 B
Bash
9 lines
229 B
Bash
# Sublime Text 2 Aliases
|
|
#unamestr = 'uname'
|
|
if [[ uname == 'Linux' ]]; then
|
|
alias st='open -a /usr/bin/sublime_text'
|
|
elif [[ uname == 'Darwin' ]]; then
|
|
alias st='open -a "/Applications/Sublime Text 2.app'
|
|
fi
|
|
alias stt='st .'
|