mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 15:20:08 +00:00
Fix shwordsplit bug when a basedir contains spaces
The `shwordsplit` option affects all variables and we only need to split the `$EDITOR` variable. Because of that, using `${=spec}` is a much better alternative. More info at http://zsh.sourceforge.net/Doc/Release/Expansion.html#index-SH_005fWORD_005fSPLIT_002c-toggle
This commit is contained in:
parent
7d298a3059
commit
bec53135e4
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,6 @@ alias pjo="pj open"
|
|||
|
||||
pj () {
|
||||
emulate -L zsh
|
||||
setopt shwordsplit
|
||||
|
||||
cmd="cd"
|
||||
project=$1
|
||||
|
@ -10,7 +9,7 @@ pj () {
|
|||
if [[ "open" == "$project" ]]; then
|
||||
shift
|
||||
project=$*
|
||||
cmd=$EDITOR
|
||||
cmd=${=EDITOR}
|
||||
else
|
||||
project=$*
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue