-
Notifications
You must be signed in to change notification settings - Fork 3
/
zshrc.example
59 lines (49 loc) · 2.34 KB
/
zshrc.example
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# By default Zit installs all modules on $HOME for compatibility purposes.
# However, to maintain everything organized it is better to set a dedicated
# directory for Zit modules.
export ZIT_MODULES_PATH="${HOME}/.zit.d"
# If Zit is not found, clone it
if [[ ! -d "${ZIT_MODULES_PATH}/zit" ]]; then
git clone "https://github.com/thiagokokada/zit" "${ZIT_MODULES_PATH}/zit"
fi
# Source Zit file
source "${ZIT_MODULES_PATH}/zit/zit.zsh"
# Let Zit manage Zit upgrades
zit-in "https://github.com/thiagokokada/zit" "zit"
# Install Zim Framework, loads some modules
zit-in "https://github.com/Eriner/zim" "zim"
zit-lo "zim" "modules/directory/init.zsh"
zit-lo "zim" "modules/environment/init.zsh"
zit-lo "zim" "modules/git/init.zsh"
zit-lo "zim" "modules/history/init.zsh"
zit-lo "zim" "modules/input/init.zsh"
zit-lo "zim" "modules/utility/init.zsh"
zit-lo "zim" "modules/ssh/init.zsh"
zit-lo "zim" "modules/completion/init.zsh"
zit-lo "zim" "modules/syntax-highlighting/init.zsh"
zit-lo "zim" "modules/history-substring-search/init.zsh"
zit-lo "zim" "modules/autosuggestions/init.zsh"
# Install Pure theme, loads its dependency (async.zsh) and itself
zit-in "https://github.com/sindresorhus/pure" "pure"
zit-lo "pure" "async.zsh"
zit-lo "pure" "pure.zsh"
# Install and loads zsh-autoenv
zit-il "https://github.com/Tarrasch/zsh-autoenv""zsh-autoenv" "autoenv.zsh"
# Install fasd (this is a script not a ZSH module) and puts it in PATH
zit-in "https://github.com/clvv/fasd" "fasd"
export PATH="${ZIT_MODULES_PATH}/fasd:${PATH}"
# Install doom-emacs in $HOME/.emacs.d (since this is the expect location).
# Also, disables upgrades since they're going to be managed by
# "~/.emacs.d/bin/doom upgrade" command instead
ZIT_MODULES_PATH="${HOME}" ZIT_DISABLE_UPGRADE=1 \
zit-in "https://github.com/hlissner/doom-emacs#develop" ".emacs.d"
# Install tmux plugins in $HOME/.tmux/plugins.
ZIT_MODULES_PATH="${HOME}/.tmux/plugins" \
zit-in "https://github.com/seebi/tmux-colors-solarized" "tmux-colors-solarized" \
zit-in "https://github.com/tmux-plugins/tmux-pain-control" "tmux-pain-control" \
zit-in "https://github.com/tmux-plugins/tmux-prefix-highlight" "tmux-prefix-highlight" \
zit-in "https://github.com/tmux-plugins/tmux-sensible" "tmux-sensible"
# script to compile ZSH files and speed-up loading
# should be called last
zit-lo "zit" "extras/compile-zsh-files.zsh"
# vim: ft=zsh