blob: 7eb08bb54476ce5ce450947c16156ebe20e392b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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
|