mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-01 04:30:37 +02:00
Merge b5491fdb1b into 51c10783e1
This commit is contained in:
commit
9f07308bbc
1 changed files with 8 additions and 2 deletions
|
|
@ -1,5 +1,9 @@
|
||||||
|
# Sublime Text Aliases
|
||||||
|
|
||||||
|
() {
|
||||||
|
|
||||||
if [[ $('uname') == 'Linux' ]]; then
|
if [[ $('uname') == 'Linux' ]]; then
|
||||||
local _sublime_linux_paths > /dev/null 2>&1
|
local _sublime_linux_paths _sublime_path
|
||||||
_sublime_linux_paths=(
|
_sublime_linux_paths=(
|
||||||
"$HOME/bin/sublime_text"
|
"$HOME/bin/sublime_text"
|
||||||
"/opt/sublime_text/sublime_text"
|
"/opt/sublime_text/sublime_text"
|
||||||
|
|
@ -21,7 +25,7 @@ if [[ $('uname') == 'Linux' ]]; then
|
||||||
done
|
done
|
||||||
|
|
||||||
elif [[ "$OSTYPE" = darwin* ]]; then
|
elif [[ "$OSTYPE" = darwin* ]]; then
|
||||||
local _sublime_darwin_paths > /dev/null 2>&1
|
local _sublime_darwin_paths _sublime_path
|
||||||
_sublime_darwin_paths=(
|
_sublime_darwin_paths=(
|
||||||
"/usr/local/bin/subl"
|
"/usr/local/bin/subl"
|
||||||
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
|
||||||
|
|
@ -56,3 +60,5 @@ elif [[ "$OSTYPE" = 'cygwin' ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias stt='st .'
|
alias stt='st .'
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue