1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 08:20:09 +00:00
ohmyzsh/plugins/sublime/sublime.plugin.zsh
Viktor Gamov 54f1990511 Update plugins/sublime/sublime.plugin.zsh
updated run sublime on linux with parameters
2012-12-02 13:54:24 -05:00

14 lines
410 B
Bash
Executable file

# Sublime Text 2 Aliases
#unamestr = 'uname'
if [[ $('uname') == 'Linux' ]]; then
if [ -f '/usr/bin/sublime_text' ]; then
st_run() { nohup /usr/bin/sublime_text $@ > /dev/null & }
else
st_run() { nohup /usr/bin/sublime-text $@ > /dev/null & }
fi
alias st=st_run
elif [[ $('uname') == 'Darwin' ]]; then
alias st='/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl'
fi
alias stt='st .'