summaryrefslogtreecommitdiff
path: root/.config/zsh/.zshrc
blob: 6991dfa4b73402fdf5cae719665126ca10b65a97 (plain)
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
# This file is based on the configuration written by
# Bruno Bonfils, <asyd@debian-fr.org> 
# Written since summer 2001

# fix ubuntu fpath…
FPATH=/usr/share/zsh/site-functions/:$FPATH
FPATH=$ZDOTDIR/functions/:$FPATH

# colors
eval `dircolors $ZDOTDIR/colors`

autoload -U zutil
autoload -U compinit
autoload -U complist

bindkey "\e[2~" overwrite-mode          # Ins
bindkey "\e[3~" delete-char             # Delete
bindkey '\eOH' beginning-of-line
bindkey '\eOF' end-of-line

bindkey "${terminfo[khome]}" beginning-of-line
bindkey "${terminfo[kend]}" end-of-line

# Activation
compinit
# _comp_options+=(globdots) # Include hidden files in glob

# plugin files
for file in $ZDOTDIR/plugin/*.plugin; do
	source $file
done

# Resource files
for file in $ZDOTDIR/rc/*.rc; do
	source $file
done

source ~/.local/repos/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh