mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-18 10:22:00 +00:00
fix(sublime): pass user's env to sst
(#12194)
This commit is contained in:
parent
70bf12402c
commit
2124370900
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ alias st=subl
|
||||||
alias stt='subl .'
|
alias stt='subl .'
|
||||||
|
|
||||||
# Define sst only if sudo exists
|
# Define sst only if sudo exists
|
||||||
(( $+commands[sudo] )) && alias sst='sudo subl'
|
(( $+commands[sudo] )) && alias sst='sudo -EH subl'
|
||||||
|
|
||||||
alias stp=find_project
|
alias stp=find_project
|
||||||
alias stn=create_project
|
alias stn=create_project
|
||||||
|
@ -62,7 +62,7 @@ alias stn=create_project
|
||||||
for _sublime_path in $_sublime_paths; do
|
for _sublime_path in $_sublime_paths; do
|
||||||
if [[ -a $_sublime_path ]]; then
|
if [[ -a $_sublime_path ]]; then
|
||||||
alias subl="'$_sublime_path'"
|
alias subl="'$_sublime_path'"
|
||||||
(( $+commands[sudo] )) && alias sst="sudo '$_sublime_path'"
|
(( $+commands[sudo] )) && alias sst="sudo -EH '$_sublime_path'"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue