File use-user-dirs-where-needed.patch of Package ohmyzsh
Index: ohmyzsh/oh-my-zsh.sh
===================================================================
--- ohmyzsh.orig/oh-my-zsh.sh
+++ ohmyzsh/oh-my-zsh.sh
@@ -7,6 +7,9 @@ omz_f() {
# If stdout is not a terminal ignore all formatting
[ -t 1 ] || omz_f() { :; }
+DISABLE_AUTO_UPDATE="true"
+ZSH_CACHE_DIR="${HOME}/.cache/oh-my-zsh/"
+
# Protect against non-zsh execution of Oh My Zsh (use POSIX syntax here)
[ -n "$ZSH_VERSION" ] || {
omz_ptree() {
Index: ohmyzsh/templates/zshrc.zsh-template
===================================================================
--- ohmyzsh.orig/templates/zshrc.zsh-template
+++ ohmyzsh/templates/zshrc.zsh-template
@@ -2,7 +2,7 @@
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
# Path to your Oh My Zsh installation.
-export ZSH="$HOME/.oh-my-zsh"
+export ZSH=/usr/share/ohmyzsh/.oh-my-zsh
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time Oh My Zsh is loaded, in which case,
Index: ohmyzsh/tools/check_for_upgrade.sh
===================================================================
--- ohmyzsh.orig/tools/check_for_upgrade.sh
+++ ohmyzsh/tools/check_for_upgrade.sh
@@ -18,6 +18,7 @@ zstyle -s ':omz:update' mode update_mode
[[ "$DISABLE_UPDATE_PROMPT" != true ]] || update_mode=auto
[[ "$DISABLE_AUTO_UPDATE" != true ]] || update_mode=disabled
}
+update_mode=disabled
# Cancel update if:
# - the automatic update is disabled