From 896c311feb10e947c727a888308dbc7eb71d1ec2 Mon Sep 17 00:00:00 2001 From: NPScript Date: Sat, 9 Apr 2022 21:22:20 +0200 Subject: init commit --- .config/zsh/.zshrc | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .config/zsh/.zshrc (limited to '.config/zsh/.zshrc') diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc new file mode 100644 index 0000000..7eb08bb --- /dev/null +++ b/.config/zsh/.zshrc @@ -0,0 +1,45 @@ +# Created by newuser for 5.8 + +autoload -Uz compinit promptinit + +# Completion +compinit +zstyle ':completion::complete:*' gain-privileges 1 +zstyle ':completion:*' menu select + +# Prompt +if [ "$TERM" != "linux" ]; then + fpath=(~/.config/zsh/ $fpath) + autoload -Uz knight + knight +else + PROMPT='%n @ %m %~ %# ' +fi; + +STATUS="Hallo" + +# Keybindings +bindkey -v + +# Aliases +alias ls='ls --color=auto' +alias la='ls -a --color=auto' +alias ll='ls -l --color=auto -h' +setopt COMPLETE_ALIASES + +# History +export HISTSIZE=1000 +export SAVEHIST=1000 +export HISTFILE=~/.zsh_history +setopt INC_APPEND_HISTORY +setopt HIST_IGNORE_DUPS + +# Syntax Highlight +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +source ~/.profile + +# Auto CD +setopt AUTO_CD + +export HISTFILE="$XDG_CACHE_HOME"/zsh/history -- cgit v1.2.3-70-g09d2