blob: 62217dc0de35d8e3863fe387f3bbbce37707accf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--- a/zshrc 2024-06-17 19:14:58.205443310 +0200
+++ b/zshrc 2024-06-17 19:14:55.962092937 +0200
@@ -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
+ZSH=/usr/share/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,
@@ -72,8 +72,6 @@
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
-source $ZSH/oh-my-zsh.sh
-
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
@@ -102,3 +100,10 @@
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
+
+ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
+if [[ ! -d $ZSH_CACHE_DIR ]]; then
+ mkdir $ZSH_CACHE_DIR
+fi
+
+source $ZSH/oh-my-zsh.sh
|