about summary refs log tree commit diff stats
path: root/.config/zsh/.zshrc
blob: c3cc28c6bd9f8b92da18f9a656de58da6f7c5dd8 (plain) (blame)
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
autoload -U colors && colors	    # colors
autoload -U compinit && compinit    # basic completion
autoload -U compinit colors zcalc   # theming
setopt PROMPT_SUBST
setopt  autocd autopushd pushdignoredups

# nice history search feature
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search

bindkey "${terminfo[kcuu1]}" up-line-or-beginning-search
bindkey "${terminfo[kcud1]}" down-line-or-beginning-search
bindkey ' ' magic-space

source "$ZDOTDIR/aliases.zsh"

# plugins
source "$ZPLUGINS/git-aliases/git-aliases.zsh"
source "$ZPLUGINS/zsh-vi-mode/zsh-vi-mode.plugin.zsh"
source "$ZPLUGINS/zsh-completions/zsh-completions.plugin.zsh"
source "$ZPLUGINS/zsh-autosuggestions/zsh-autosuggestions.zsh"
source "$ZPLUGINS/zsh-bd/bd.zsh"
source "$ZPLUGINS/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"

eval "$(starship init zsh)"

HISTFILE="$HOME/.local/share/zsh/histfile"
HISTSIZE=110000
SAVEHIST=100000