sublime.plugin.zsh 571 B

1234567891011121314151617181920
  1. # Sublime Text 2 Aliases
  2. #unamestr = 'uname'
  3. local _sublime_darwin_subl=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl
  4. if [[ $('uname') == 'Linux' ]]; then
  5. if [ -f '/usr/bin/sublime_text' ]; then
  6. alias st='/usr/bin/sublime_text&'
  7. else
  8. alias st='/usr/bin/sublime-text&'
  9. fi
  10. elif [[ $('uname') == 'Darwin' ]]; then
  11. # Check if Sublime is installed in user's home application directory
  12. if [[ -a $HOME/${_sublime_darwin_subl} ]]; then
  13. alias st='$HOME/${_sublime_darwin_subl}'
  14. else
  15. alias st='${_sublime_darwin_subl}'
  16. fi
  17. fi
  18. alias stt='st .'