mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
merge
This commit is contained in:
parent
a8c56f5231
commit
8274156fae
296 changed files with 6279 additions and 3141 deletions
|
|
@ -153,7 +153,7 @@ wd ..
|
|||
wd ...
|
||||
```
|
||||
|
||||
This is a wrapper for the zsh's `dirs` function.
|
||||
This is a wrapper for the zsh's `dirs` function.
|
||||
_You might need to add `setopt AUTO_PUSHD` to your `.zshrc` if you are not using [oh-my-zsh](https://github.com/ohmyzsh/ohmyzsh)._
|
||||
|
||||
* Remove warp point:
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ function _wd() {
|
|||
# complete sub directories from the warp point
|
||||
_path_files -W "(${points[$target]})" -/ && ret=0
|
||||
fi
|
||||
|
||||
|
||||
# don't complete anything if warp point is not valid
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -396,7 +396,7 @@ fi
|
|||
# disable extendedglob for the complete wd execution time
|
||||
setopt | grep -q extendedglob
|
||||
wd_extglob_is_set=$?
|
||||
[[ $wd_extglob_is_set ]] && setopt noextendedglob
|
||||
(( ! $wd_extglob_is_set )) && setopt noextendedglob
|
||||
|
||||
# load warp points
|
||||
typeset -A points
|
||||
|
|
@ -484,7 +484,7 @@ fi
|
|||
# if not, next time warp will pick up variables from this run
|
||||
# remember, there's no sub shell
|
||||
|
||||
[[ $wd_extglob_is_set ]] && setopt extendedglob
|
||||
(( ! $wd_extglob_is_set )) && setopt extendedglob
|
||||
|
||||
unset wd_extglob_is_set
|
||||
unset wd_warp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue