Add ZSH configurations.

This commit is contained in:
inference 2022-10-16 09:18:23 +01:00
parent cca23c8e32
commit 5d9a8ddcc8
2 changed files with 53 additions and 0 deletions

21
zsh/.zsh-aliases Normal file
View File

@ -0,0 +1,21 @@
# ZSH - Aliases
# Copyright 2022 Inference
# License: BSD 3-Clause Clear
# Navigation.
alias ..='cd ..'
alias cl='clear'
alias l='ls -CF --color=auto'
alias la='ls -A --color=auto'
alias ll='ls -l --color=auto'
alias ls='ls -F --color=auto'
alias tr='tree -C'
# File management.
alias clp='wl-copy'
alias cp='cp -i'
alias md='mkdir'
alias mv='mv -i'
alias rm='rm -i'

32
zsh/.zshrc Normal file
View File

@ -0,0 +1,32 @@
# ZSH - rc
# Copyright 2022 Inference
# License: BSD 3-Clause Clear
# 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
# Aliases.
if [[ -f ~/.zsh-aliases ]]; then
. ~/.zsh-aliases
fi