-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
39 lines (33 loc) · 1.18 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
autoload -U colors && colors
PS1="%B%F{yellow}%~ %(?.%F{blue}%#.%F{red}%#) %f%b"
export EDITOR="/usr/bin/vim"
# History in cache directory:
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.cache/zsh/history
# Basic auto/tab complete:
autoload -U compinit
zstyle ':completion:*' menu select
# case insensitive
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
zmodload zsh/complist
compinit
_comp_options+=(globdots) # Include hidden files.
# autocomplete . and .. (special dirs)
zstyle ':completion:*' special-dirs true
# Use ctrl-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
# aliases
alias ls="ls -FNh --color=auto --group-directories-first"
alias o="xdg-open"
alias starwars="telnet towel.blinkenlights.nl"
alias tree="tree -FC --dirsfirst -I .git"
alias vimrc="vim ~/.vimrc"
alias mcm="make clean && make"
# Highlight section titles in manual pages.
export LESS_TERMCAP_md="${yellow}";
# Load zsh-syntax-highlighting; should be last.
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null