From e519419d2a2cb55eb2e01240690c538b8ad5271b Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 30 Dec 2021 01:02:55 +0100 Subject: [PATCH] Alcune correzioni spiate da manjaro. --- .zshrc | 45 ++++++++++++++++++++++++++++++++---- zsh/aliases/base.aliases.zsh | 5 ++++ 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/.zshrc b/.zshrc index 7fc5c5f..d3e7f51 100644 --- a/.zshrc +++ b/.zshrc @@ -8,11 +8,46 @@ export FPATH=$DOTFILES/zsh/functions:$FPATH # Enables base completion autoload -Uz compaudit compinit vcs_info compinit -zstyle ':vcs_info:*' enable git svn -precmd() { - vcs_info -} -setopt prompt_subst +#zstyle ':vcs_info:*' enable git svn +#precmd() { +# vcs_info +#} +#setopt prompt_subst +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 # zsh packages from system if uname -a | grep -qi 'debian'; then diff --git a/zsh/aliases/base.aliases.zsh b/zsh/aliases/base.aliases.zsh index 5f1f958..01f5a19 100644 --- a/zsh/aliases/base.aliases.zsh +++ b/zsh/aliases/base.aliases.zsh @@ -1,4 +1,9 @@ # vim:sts=2:sw=2:ft=zsh +# Fiddling with ls colors +export LS_OPTIONS='--color=auto' +eval "$(dircolors -b)" +alias ls='ls $LS_OPTIONS' + # Aliases alias grep="grep --colour=auto" alias egrep="egrep --colour=auto"