mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-11 08:20:09 +00:00
54f1990511
updated run sublime on linux with parameters
14 lines
410 B
Bash
Executable file
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 .'
|