mirror of https://github.com/ohmyzsh/ohmyzsh.git
Compare commits
4 Commits
6058d869f1
...
2633bcd7ea
Author | SHA1 | Date |
---|---|---|
J0J0 Todos | 2633bcd7ea | |
Thomas | cae2e45193 | |
Carlo Sala | 276e540eed | |
J0J0 Todos | 0cec811a3c |
|
@ -1,6 +1,7 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
function omz {
|
||||
setopt localoptions noksharrays
|
||||
[[ $# -gt 0 ]] || {
|
||||
_omz::help
|
||||
return 1
|
||||
|
|
|
@ -15,9 +15,9 @@ To enable it for every single command, set zstyle in your `~/.zshrc`.
|
|||
# ~/.zshrc
|
||||
|
||||
zstyle ':omz:plugins:alias-finder' autoload yes # disabled by default
|
||||
zstyle ':omz:plugins:alias-finder' longer yes # disabled by default
|
||||
zstyle ':omz:plugins:alias-finder' exact yes # disabled by default
|
||||
zstyle ':omz:plugins:alias-finder' cheaper yes # disabled by default
|
||||
zstyle ':omz:plugins:alias-finder' longer yes # enabled by default
|
||||
zstyle ':omz:plugins:alias-finder' exact yes # enabled by default
|
||||
zstyle ':omz:plugins:alias-finder' cheaper yes # enabled by default
|
||||
```
|
||||
|
||||
As you can see, options are also available with zstyle.
|
||||
|
@ -63,6 +63,6 @@ Running the shortest `gs` shell alias that it found:
|
|||
|
||||
- Use `--longer` or `-l` to include aliases where the source is longer than the input (in other words, the source could contain the whole input).
|
||||
- Use `--exact` or `-e` to avoid aliases where the source is shorter than the input (in other words, the source must be the same with the input).
|
||||
- Use `--cheaper` or `-c` to avoid aliases where the destination is longer than the input (in other words, the destination must be the shorter than the input).
|
||||
- Use `--cheaper` or `-c` to avoid aliases where the destination is longer than the input (in other words, the destination must be shorter than the input).
|
||||
|
||||
|
||||
|
|
|
@ -22,5 +22,5 @@ fi
|
|||
rustup completions zsh >| "$ZSH_CACHE_DIR/completions/_rustup" &|
|
||||
cat >| "$ZSH_CACHE_DIR/completions/_cargo" <<'EOF'
|
||||
#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
|
||||
|
|
Loading…
Reference in New Issue