-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathln_zshrc
More file actions
executable file
·66 lines (54 loc) · 1.43 KB
/
ln_zshrc
File metadata and controls
executable file
·66 lines (54 loc) · 1.43 KB
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
60
61
62
63
64
65
66
# Lines configured by zsh-newuser-install
setopt autocd
setopt sh_word_split
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
#zstyle :compinstall filename '.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
export ZSH_TMUX_AUTOSTART=true
# load zgen
source "${HOME}/.zgen/zgen.zsh"
# add user executable directory
if [[ -d ~/bin ]]; then
export PATH=$PATH:~/bin
fi
# if the init scipt doesn't exist
if ! zgen saved; then
echo "Creating a zgen save"
zgen oh-my-zsh
# plugins
zgen oh-my-zsh
zgen oh-my-zsh plugins/aws
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/sudo
zgen oh-my-zsh plugins/command-not-found
zgen oh-my-zsh plugins/docker
zgen oh-my-zsh plugins/docker-compose
zgen oh-my-zsh plugins/common-aliases
zgen oh-my-zsh plugins/cp
zgen oh-my-zsh plugins/extract
zgen oh-my-zsh plugins/tmux
zgen oh-my-zsh plugins/git-flow
zgen oh-my-zsh themes/agnoster
#Other plugins
zgen load zsh-users/zsh-syntax-highlighting
zgen load zsh-users/zsh-autosuggestions
# generate the init script from plugins above
zgen save
fi
if [ -d $HOME/.zshrc.d ]; then
for file in $HOME/.zshrc.d/*.zsh; do
source $file
done
fi
if [ -d $HOME/aliases ]; then
for file in $HOME/aliases/* $HOME/aliases/**/*; do
if [ -f $file ]; then
source $file
fi
done
fi
# Local config
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local