1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-21 15:30:09 +00:00
ohmyzsh/plugins/sublime/sublime.plugin.zsh
Varun Vijayaraghavan 6f859c5837 Add Sublime Text 2 alias for Linux.
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.
2012-05-21 10:42:12 -04:00

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 .'