mirror of https://github.com/ohmyzsh/ohmyzsh.git
Compare commits
4 Commits
6ff6e2b9af
...
99ab8c3bb8
Author | SHA1 | Date |
---|---|---|
|
99ab8c3bb8 | |
|
cae2e45193 | |
|
276e540eed | |
|
2babe619a3 |
|
@ -1,6 +1,7 @@
|
||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
function omz {
|
function omz {
|
||||||
|
setopt localoptions noksharrays
|
||||||
[[ $# -gt 0 ]] || {
|
[[ $# -gt 0 ]] || {
|
||||||
_omz::help
|
_omz::help
|
||||||
return 1
|
return 1
|
||||||
|
|
|
@ -22,5 +22,5 @@ fi
|
||||||
rustup completions zsh >| "$ZSH_CACHE_DIR/completions/_rustup" &|
|
rustup completions zsh >| "$ZSH_CACHE_DIR/completions/_rustup" &|
|
||||||
cat >| "$ZSH_CACHE_DIR/completions/_cargo" <<'EOF'
|
cat >| "$ZSH_CACHE_DIR/completions/_cargo" <<'EOF'
|
||||||
#compdef cargo
|
#compdef cargo
|
||||||
source "$(rustc +${${(z)$(rustup default)}[1]} --print sysroot)"/share/zsh/site-functions/_cargo
|
source "$(rustup run ${${(z)$(rustup default)}[1]} rustc --print sysroot)"/share/zsh/site-functions/_cargo
|
||||||
EOF
|
EOF
|
||||||
|
|
|
@ -8,10 +8,14 @@ function {
|
||||||
/usr/share/bash-completion/completions/virtualenvwrapper \
|
/usr/share/bash-completion/completions/virtualenvwrapper \
|
||||||
$HOME/.local/bin/virtualenvwrapper.sh
|
$HOME/.local/bin/virtualenvwrapper.sh
|
||||||
do
|
do
|
||||||
if [[ -f "$virtualenvwrapper" ]]; then
|
if [[ -f "$virtualenvwrapper" ]]; then
|
||||||
source "$virtualenvwrapper"
|
if [[ $VIRTUALENVWRAPPER_NO_LAZY -eq 1 ]] && [[ $(echo $virtualenvwrapper | grep lazy) ]]; then
|
||||||
return
|
true
|
||||||
|
else
|
||||||
|
source "$virtualenvwrapper"
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
print "[oh-my-zsh] virtualenvwrapper plugin: Cannot find virtualenvwrapper.sh.\n"\
|
print "[oh-my-zsh] virtualenvwrapper plugin: Cannot find virtualenvwrapper.sh.\n"\
|
||||||
"Please install with \`pip install virtualenvwrapper\`" >&2
|
"Please install with \`pip install virtualenvwrapper\`" >&2
|
||||||
|
|
Loading…
Reference in New Issue