Compare commits

...

5 Commits

Author SHA1 Message Date
Thang Do 8b7aa20743
Merge 185274e75a into cae2e45193 2025-01-10 10:26:55 -08:00
Thomas cae2e45193
fix(rust): call `rustc` through `rustup run` (#12901) 2025-01-10 14:17:49 +01:00
Carlo Sala 276e540eed
fix(cli): ensure `ksharrays` is unset
Closes #12900
2025-01-10 14:11:33 +01:00
Thang Do 185274e75a style(afowler): Change color of the :: characters based on prev command exit code 2025-01-02 14:27:33 +10:30
Thang Do 612f9f59ca style(afowler): Change caret color based on previous command exit code
Blue for success (returns 0 exit code)
Red for failed (return non-zero exit code)
2025-01-01 22:30:38 +10:30
3 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/env zsh
function omz {
setopt localoptions noksharrays
[[ $# -gt 0 ]] || {
_omz::help
return 1

View File

@ -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

View File

@ -1,4 +1,4 @@
PROMPT='%m %B%F{blue}:: %b%F{green}%3~ $(hg_prompt_info)$(git_prompt_info)%B%(!.%F{red}.%F{blue})»%f%b '
PROMPT='%m %B%(?.%F{blue}.%F{red}):: %f%b%F{green}%3~ $(hg_prompt_info)$(git_prompt_info)%B%(?.%F{blue}.%F{red})»%f%b '
RPS1='%(?..%F{red}%? ↵%f)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"