37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
autoload -U colors && colors
|
|
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
|
|
|
|
# Basic tab/autocomplete
|
|
zmodload zsh/complist
|
|
bindkey -M menuselect 'h' vi-backward-char
|
|
bindkey -M menuselect 'k' vi-up-line-or-history
|
|
bindkey -M menuselect 'j' vi-down-line-or-history
|
|
bindkey -M menuselect 'l' vi-forward-char
|
|
autoload -Uz compinit
|
|
zstyle ':completion:*:*:*:*:descriptions' format '%F{green}-- %d --%f'
|
|
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'
|
|
zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
|
|
zstyle ':completion:*' group-name ''
|
|
zstyle ':completion:*' menu select
|
|
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
|
compinit
|
|
|
|
bindkey -e
|
|
|
|
# Keybinds
|
|
key[Control-Left]="${terminfo[kLFT5]}"
|
|
key[Control-Right]="${terminfo[kRIT5]}"
|
|
|
|
[[ -n "${key[Control-Left]}" ]] && bindkey -- "${key[Control-Left]}" backward-word
|
|
[[ -n "${key[Control-Right]}" ]] && bindkey -- "${key[Control-Right]}" forward-word
|
|
|
|
HISTSIZE=10000000
|
|
SAVEHIST=10000000
|
|
HISTFILE="$XDG_CACHE_HOME/zsh/history"
|
|
|
|
export GPG_TTY=$TTY
|
|
|
|
source "$XDG_CONFIG_HOME/shell/aliasrc"
|
|
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|