mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-08-19 22:48:26 +08:00
Fix plugin-manager integration script reliability
Co-authored-by: mcornella <1441704+mcornella@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1595e00f7c
commit
78c871176f
@@ -59,7 +59,7 @@ case "$manager" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
cat > "$zshrc" <<RC
|
cat > "$zshrc" <<RC
|
||||||
set -euo pipefail
|
set -eo pipefail
|
||||||
|
|
||||||
export HOME="$home_dir"
|
export HOME="$home_dir"
|
||||||
export XDG_CACHE_HOME="$cache_dir"
|
export XDG_CACHE_HOME="$cache_dir"
|
||||||
@@ -89,6 +89,9 @@ cat >> "$zshrc" <<RC
|
|||||||
|
|
||||||
source "\$OMZ_ROOT/lib/functions.zsh"
|
source "\$OMZ_ROOT/lib/functions.zsh"
|
||||||
source "\$OMZ_ROOT/plugins/git/git.plugin.zsh"
|
source "\$OMZ_ROOT/plugins/git/git.plugin.zsh"
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit -i -d "\$ZSH_CACHE_DIR/.zcompdump"
|
||||||
|
|
||||||
source "\$OMZ_ROOT/themes/robbyrussell.zsh-theme"
|
source "\$OMZ_ROOT/themes/robbyrussell.zsh-theme"
|
||||||
|
|
||||||
[[ -d "\$ZSH_CACHE_DIR/completions" ]] || { print -u2 "completions cache directory missing"; return 1; }
|
[[ -d "\$ZSH_CACHE_DIR/completions" ]] || { print -u2 "completions cache directory missing"; return 1; }
|
||||||
|
|||||||
Reference in New Issue
Block a user