-
Notifications
You must be signed in to change notification settings - Fork 1
/
zshrc
48 lines (42 loc) · 890 Bytes
/
zshrc
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
#!/bin/zsh
# --- Oh My Zsh ---
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="kolo"
plugins=(
aws
cargo
docker
docker-compose
# gem
git
git-extras
# npm
osx
pip
python
web-search # perform web searches ('google pictures of cats')
# zsh-autosuggestions
zsh-completions
# zsh-nvm # takes crazy long
# zsh-syntax-highlighting
)
autoload -U compinit && compinit
source $ZSH/oh-my-zsh.sh
# --- the real business ---
# TODO: Find a way to make this dynamic
source "$HOME/.common.sh"
# --- fzf ---
[ -f ~/.fzf.zsh ] && . ~/.fzf.zsh
[ -f /usr/share/fzf/key-bindings.zsh ] && . /usr/share/fzf/key-bindings.zsh
# --- direnv ---
if hash direnv 2>/dev/null; then
eval "$(direnv hook zsh)"
fi
# --- hub ---
if command -v hub > /dev/null; then
eval "$(hub alias -s zsh)"
fi
# starship prompt
if command -v starship > /dev/null; then
eval "$(starship init zsh)"
fi