-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.zshrc
59 lines (43 loc) · 2.26 KB
/
.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
53
54
55
56
57
58
59
# Plugins
source ~/.zplug/init.zsh
# A utility tool powered by fzf for using git interactively.
zplug 'wfxr/forgit'
zplug load --verbose
export ZSH=$HOME/.oh-my-zsh
export FPATH=/usr/share/zsh/site-functions:/usr/share/zsh/functions/Calendar:/usr/share/zsh/functions/Chpwd:/usr/share/zsh/functions/Completion:/usr/share/zsh/functions/Completion/Base:/usr/share/zsh/functions/Completion/Linux:/usr/share/zsh/functions/Completion/Unix:/usr/share/zsh/functions/Completion/X:/usr/share/zsh/functions/Completion/Zsh:/usr/share/zsh/functions/Exceptions:/usr/share/zsh/functions/Math:/usr/share/zsh/functions/MIME:/usr/share/zsh/functions/Misc:/usr/share/zsh/functions/Newuser:/usr/share/zsh/functions/Prompts:/usr/share/zsh/functions/TCP:/usr/share/zsh/functions/VCS_Info:/usr/share/zsh/functions/VCS_Info/Backends:/usr/share/zsh/functions/Zftp:/usr/share/zsh/functions/Zle:$FPATH
fpath+=$HOME/.zsh/pure
ZSH_THEME=""
plugins=(pass)
source "$ZSH/oh-my-zsh.sh"
source "$HOME/.zsh/async/async.zsh"
for file in $ZSH/custom/{exports,aliases,functions,directories,completions,secret}.zsh $ZSH/custom/plugins/*; do
[ -r "$file" ] && [ -f "$file" ] && source "$file"
done
DEFAULT_USER="marcel"
autoload -U promptinit; promptinit
prompt pure
# Show git stash in prompt
zstyle :prompt:pure:git:stash show yes
# Vi mode
bindkey -v
# Up/down search for matches of what's already there
autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey '^P' up-line-or-beginning-search
bindkey '^N' down-line-or-beginning-search
bindkey '^[[A' up-line-or-beginning-search
bindkey '^[[B' down-line-or-beginning-search
# Use vim keys in tab complete menu:
bindkey -M menuselect '^h' vi-backward-char
bindkey -M menuselect '^k' vi-up-line-or-history
bindkey -M menuselect '^l' vi-forward-char
bindkey -M menuselect '^j' vi-down-line-or-history
bindkey -v '^?' backward-delete-char
# Enable FZF stuff in terminal
# Like ctrl-r history search
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# For some reason, defaults not always loaded
[ -f /usr/share/doc/fzf/examples/key-bindings.zsh ] && source /usr/share/doc/fzf/examples/key-bindings.zsh
[ -f $HOME/.local/etc/motd ] && command cat $HOME/.local/etc/motd
fpath=($HOME/.local/bin/ $fpath)