This repository has been archived on 2023-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
2020-09-01 22:16:47 +00:00

38 lines
1.0 KiB
Bash

# General options
setopt autocd
setopt nobgnice # Run bg jobs at normal priority
setopt nonotify # Don't notify when bg jobs complete
setopt nobeep
# History config
HISTFILE="${XDG_CACHE_HOME:-${HOME}/.cache}/zsh/history"
HISTSIZE=10000
SAVEHIST=10000
[[ !( -f "${HISTFILE}" ) ]] && mkdir -p $(dirname ${HISTFILE})
setopt HIST_IGNORE_DUPS
# Completion
autoload -Uz compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
_comp_options+=(globdots) # Include hidden files
# Colors
autoload -U colors && colors
# Prompt
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# Aliases
source "${XDG_CONFIG_HOME:-${HOME}/.config}/.aliasrc"
# Autosuggest
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh 2>/dev/null
# Highlighting
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
# History substring search
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.plugin.zsh