File tree 3 files changed +25
-10
lines changed
3 files changed +25
-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
+ # You can install Oh My Zsh into ~/.oh-my-zsh, out of dotfiles directory tree;
35
+ # you should move its configuration file {.zshrc => $DOTFILES/zsh/oh-my-zshrc}.
36
+ if [[ -f $DOTFILES/zsh/oh-my-zshrc ]]; then
37
+ () {
38
+ local ZSH=""
39
+ source $DOTFILES/zsh/oh-my-zshrc
40
+ }
41
+ else
42
+ # initialize autocomplete here, otherwise functions won't be loaded
43
+ autoload -U compinit
44
+ compinit
45
+ fi
34
46
35
47
# load every completion after autocomplete loads
36
48
for file in ${(M)config_files:#*/completion.zsh}
39
51
done
40
52
41
53
unset config_files
54
+
55
+ # Notify existing users that they should migrate to $DOTFILES variable.
56
+ export ZSH='$ZSH variable is deprecated, use $DOTFILES instead'
You can’t perform that action at this time.
0 commit comments