-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
52 lines (39 loc) · 1.46 KB
/
dot_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
49
50
51
52
setopt histignorealldups sharehistory
# Use emacs keybindings
bindkey -e
# Include bashrc config
source $HOME/.bashrc
# Enable powerlevel10k
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Dracula theme for fzf
export FZF_DEFAULT_OPTS='--color=fg:#f8f8f2,bg:#282a36,hl:#bd93f9 --color=fg+:#f8f8f2,bg+:#44475a,hl+:#bd93f9 --color=info:#ffb86c,prompt:#50fa7b,pointer:#ff79c6 --color=marker:#ff79c6,spinner:#ffb86c,header:#6272a4'
# Add zsh-completions
fpath+=$HOME/.oh-my-zsh/custom/plugins/zsh-completions/src
setopt histignorealldups sharehistory
# Use oh-my-zsh
export ZSH=$HOME/.oh-my-zsh
export ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(zsh-syntax-highlighting history-substring-search fzf fnm docker kubectl helm terraform gcloud)
source $ZSH/oh-my-zsh.sh
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=1000
SAVEHIST=1000
HISTFILE=~/.zsh_history
# Bind history substring search
bindkey -M emacs '^P' history-substring-search-up
bindkey -M emacs '^N' history-substring-search-down
# Set up fnm
eval "$(fnm env --use-on-cd)"
# Set up pyenv
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
# Configure powerlevel10k
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Include bash aliases
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Include local operations
[[ ! -f ~/.sh_local ]] || source ~/.sh_local