cfg/zsh/.zshrc

44 lines
714 B
Bash
Raw Normal View History

2022-10-16 09:18:23 +01:00
# ZSH - rc
# Copyright 2022 Inference
# License: BSD 3-Clause Clear
2022-11-19 17:11:11 +00:00
# 0.2.0.3
2022-10-16 10:41:25 +01:00
2022-10-16 09:18:23 +01:00
# Prompt.
PROMPT=%n@%M:%#" "
# Options.
setopt extendedglob KSH_ARRAYS nomatch
unsetopt autocd AUTO_REMOVE_SLASH beep
# Keybinds.
bindkey -e
# zstyle.
zstyle :compinstall filename '~/.zshrc'
zstyle ':completion:*' menu select
autoload -Uz compinit
compinit
# History.
HISTFILE=~/.zsh-history
HISTSIZE=1024
SAVEHIST=1024
2022-11-19 17:11:11 +00:00
# XDG_RUNTIME_DIR.
if test -z "${XDG_RUNTIME_DIR}"; then
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
if ! test -d "${XDG_RUNTIME_DIR}"; then
mkdir "${XDG_RUNTIME_DIR}"
chmod 0700 "${XDG_RUNTIME_DIR}"
fi
fi
2022-10-16 09:18:23 +01:00
# Aliases.
if [[ -f ~/.zsh-aliases ]]; then
. ~/.zsh-aliases
fi