Aggiunto supporto CentOS (da testare).
This commit is contained in:
parent
1e1e9b55bc
commit
6c83df9db4
3
.zshrc
3
.zshrc
@ -33,6 +33,9 @@ elif uname -a | grep -qi '\(arch\|manjaro\)'; then
|
|||||||
if [ -e /usr/share/zsh/manjaro-zsh-prompt ]; then
|
if [ -e /usr/share/zsh/manjaro-zsh-prompt ]; then
|
||||||
source /usr/share/zsh/manjaro-zsh-prompt
|
source /usr/share/zsh/manjaro-zsh-prompt
|
||||||
fi
|
fi
|
||||||
|
elif [ -f /etc/redhat-release ] && grep -qi centos /etc/redhat-release; then
|
||||||
|
# CentOS 7: non c'è un sacco di roba. Mi limito ad abilitare le opzioni native
|
||||||
|
source $DOTFILES/zsh/centos.base.zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
|
42
zsh/centos.base.zsh
Normal file
42
zsh/centos.base.zsh
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# Setting up prompt
|
||||||
|
autoload -Uz promptinit
|
||||||
|
promptinit
|
||||||
|
prompt redhat
|
||||||
|
|
||||||
|
zstyle ':vcs_info:*' enable git svn
|
||||||
|
setopt prompt_subst # Prompting
|
||||||
|
setopt correct # Auto correct mistakes
|
||||||
|
setopt extendedglob # allows regexp with *
|
||||||
|
setopt nocaseglob # Case insensitive globbing
|
||||||
|
setopt rcexpandparam # array expansion with parameters
|
||||||
|
setopt nocheckjobs # No warn about running processes on exiting
|
||||||
|
setopt nobeep
|
||||||
|
setopt appendhistory
|
||||||
|
setopt histignorealldups
|
||||||
|
setopt autocd
|
||||||
|
setopt inc_append_history
|
||||||
|
setopt histignorespace # Ignore putting in history commands beginning with a space
|
||||||
|
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Zaz}' # Case insensitive completion
|
||||||
|
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" # Color completion
|
||||||
|
zstyle ':completion:*' rehash true # automatically updates new paths
|
||||||
|
# Speed completion
|
||||||
|
zstyle ':completion:*' accept-exact '*(N)'
|
||||||
|
zstyle ':completion:*' use-cache on
|
||||||
|
zstyle ':completion:*' cache-path ~/.zsh/cache
|
||||||
|
|
||||||
|
# History
|
||||||
|
HISTFILE=~/.zhistory
|
||||||
|
HISTSIZE=10000
|
||||||
|
SAVEHIST=10000
|
||||||
|
WORDCHARS=${WORDCHARS//\/[&.;]}
|
||||||
|
|
||||||
|
# Color man pages
|
||||||
|
export LESS_TERMCAP_mb=$'\E[01;32m'
|
||||||
|
export LESS_TERMCAP_md=$'\E[01;32m'
|
||||||
|
export LESS_TERMCAP_me=$'\E[0m'
|
||||||
|
export LESS_TERMCAP_se=$'\E[0m'
|
||||||
|
export LESS_TERMCAP_so=$'\E[01;47;34m'
|
||||||
|
export LESS_TERMCAP_ue=$'\E[0m'
|
||||||
|
export LESS_TERMCAP_us=$'\E[01;36m'
|
||||||
|
export LESS=-R
|
Loading…
Reference in New Issue
Block a user