-
Notifications
You must be signed in to change notification settings - Fork 8
/
zshrc
52 lines (38 loc) · 1.05 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
# History
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt hist_ignore_all_dups
# Vi keybindings
bindkey -v
bindkey -M viins '^r' history-incremental-search-backward
bindkey -M vicmd '^r' history-incremental-search-backward
# Completion
zstyle :compinstall filename '/home/mawww/.zshrc'
autoload -Uz compinit
compinit
zstyle ':completion:*' menu select=2
eval "$(dircolors -b)"
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
setopt extendedglob
unsetopt no_match
# Prompt
autoload -U promptinit
promptinit
setopt prompt_subst
export PS1="%F{green}%n@%m%F{cyan}(%l) %F{blue}%~ %F{grey}
>>> "
# Paths
export PATH="${HOME}/local/bin:${PATH}"
export MANPATH="${HOME}/local/share/man:${MANPATH}"
export LD_LIBRARY_PATH="${HOME}/local/lib:${LD_LIBRARY_PATH}"
export PYTHONPATH="${HOME}/local/lib/python:${PYTHONPATH}"
# Kakoune!
export EDITOR=kak
# Aliases
alias ls="ls --color=auto"
alias -s -- pdf=zathura
alias -s -- git='git clone'
source ~/.zshrc_local
# OPAM configuration
. /home/mawww/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true