-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
59 lines (48 loc) · 1.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
# The following lines were added by compinstall
zstyle :compinstall filename '/home/user/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
SAVEHIST=10000000
bindkey -e
# End of lines configured by zsh-newuser-install
# Pure zsh
fpath=( "$HOME/.zfunc" $fpath )
autoload -U promptinit; promptinit
prompt pure
fpath=( "$HOME/.zfunc" $fpath )
# fzf :)
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
setopt AUTO_CD
# Colors
eval "`dircolors`"
alias ls='ls --color=auto'
alias ll='ls --color=auto -lshaF'
alias grep='grep --color=auto'
# History
HISTCONTROL=ignoredups:erasedups
HISTSIZE=100000
HISTFILESIZE=100000
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
# Environment
EDITOR=vim
GOPATH="$HOME/.go"
PATH="$PATH:/home/user/.bin"
SHELL="/usr/bin/zsh"
# fasd :)
eval "$(fasd --init auto)"
alias j='fasd_cd -i'
# the fuck
eval $(thefuck --alias)
# fish-like
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# bindkey
bindkey "^?" backward-delete-char
bindkey "^[[1;5C" emacs-forward-word
bindkey "^[[1;5D" emacs-backward-word
bindkey "^[[2~" overwrite-mode
bindkey "^[[3~" delete-char
bindkey "^[[F" end-of-line
bindkey "^[[H" beginning-of-line