zsh: reorganize

This commit is contained in:
Grigory Shipunov 2020-12-03 01:16:54 +01:00
parent 9e9e8afd5a
commit 1b61337582
No known key found for this signature in database
GPG key ID: 77BB6C3E4771EE7C
4 changed files with 59 additions and 21 deletions

22
zsh/zshrc Normal file
View file

@ -0,0 +1,22 @@
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/gshipunov/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Prompt
if [[ -n $SSH_CONNECTION ]]; then
HOST_LBL="%F{red}[%m]%f"
fi
PROMPT="%B%(?..%F{red}[%?]%f)$HOST_LBL%(!.%F{red}[%n]%f.)%F{cyan}%~%(!.%F{red}.%F{green})%# %f%b"
source ./common