File tree 3 files changed +27
-10
lines changed
3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change 5
5
protocol = https
6
6
[alias]
7
7
co = checkout
8
- promote = !$ZSH /bin/git-promote
9
- wtf = !$ZSH /bin/git-wtf
10
- rank-contributors = !$ZSH /bin/git-rank-contributors
8
+ promote = !$DOTFILES /bin/git-promote
9
+ wtf = !$DOTFILES /bin/git-wtf
10
+ rank-contributors = !$DOTFILES /bin/git-rank-contributors
11
11
count = !git shortlog -sn
12
12
[color]
13
13
diff = auto
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ directory_name() {
55
55
}
56
56
57
57
battery_status () {
58
- $ZSH /bin/battery-status
58
+ $DOTFILES /bin/battery-status
59
59
}
60
60
61
61
export PROMPT=$' \n $(battery_status)in $(directory_name) $(git_dirty)$(need_push)\n › '
Original file line number Diff line number Diff line change 1
- # shortcut to this dotfiles path is $ZSH
2
- export ZSH=$HOME/.dotfiles
1
+ # shortcut to this dotfiles path is $DOTFILES
2
+ export DOTFILES=$HOME/.dotfiles
3
+
4
+ # $ZSH variable is deprecated, use $DOTFILES instead
5
+ export ZSH="$DOTFILES"
3
6
4
7
# your project folder that we can `c [tab]` to
5
8
export PROJECTS=~/Code
14
17
15
18
# all of our zsh files
16
19
typeset -U config_files
17
- config_files=($ZSH /**/*.zsh)
20
+ config_files=($DOTFILES /**/*.zsh)
18
21
19
22
# load the path files
20
23
for file in ${(M)config_files:#*/path.zsh}
28
31
source $file
29
32
done
30
33
31
- # initialize autocomplete here, otherwise functions won't be loaded
32
- autoload -U compinit
33
- compinit
34
+ # Oh My Zsh could be installed somewhere out of dotfiles directory tree, e.g.
35
+ # into ~/.oh-my-zsh; the configuration file created by Oh My Zsh installer
36
+ # should be moved as follows: {.zshrc => $DOTFILES/zsh/oh-my-zshrc}.
37
+ if [[ -f $DOTFILES/zsh/oh-my-zshrc ]]; then
38
+ () {
39
+ local ZSH="$HOME/.oh-my-zsh"
40
+ source $DOTFILES/zsh/oh-my-zshrc
41
+ export OHMYZSH="$ZSH"
42
+ }
43
+ else
44
+ # initialize autocomplete here, otherwise functions won't be loaded
45
+ autoload -U compinit
46
+ compinit
47
+ fi
34
48
35
49
# load every completion after autocomplete loads
36
50
for file in ${(M)config_files:#*/completion.zsh}
39
53
done
40
54
41
55
unset config_files
56
+
57
+ # Notify existing users that they should migrate to another variable.
58
+ export ZSH='$ZSH is deprecated, use either $DOTFILES or $OHMYZSH instead.'
You can’t perform that action at this time.
0 commit comments