blob: 30e3f6432ba05f375e5c12b9c4fa1eb40913f4ee (
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
|
# Source aliases and shortcuts
source ~/.config/shell/aliasrc
source ~/.config/shell/shortcutsrc
# History file settings
HISTSIZE=100000000
SAVEHIST=100000000
HISTFILE="$HOME/.cache/zsh/history"
# Shell options
bindkey -v
export KEYTIMEOUT=1
setopt autocd
stty stop undef
setopt histappend
# Prompt
autoload -U colors && colors
PS1="%B%{$fg[black]%}[%b%{$fg[yellow]%}%n%B%{$fg[black]%}-at-%b%{$fg[yellow]%}%M%B%{$fg[black]%}]%b%{$fg[red]%}%1~%{$reset_color%}$ "
# Autocomplete Settings
autoload -U compinit
zstyle ":completion:*" menu select
zmodload zsh/complist
compinit
_comp_options+=(globdots)
# Vim keys in menu select
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
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
|