-
- $ cat .zshrc
- export LANG="ca_ES.UTF-8"
-
-
- # historial
- HISTFILE=~/.histfile
- HISTSIZE=5000
- SAVEHIST=$HISTSIZE
-
- # To prevent history from recording duplicated entries and synchronize the shell history between terminals
- setopt hist_ignore_dups share_history inc_append_history extended_history
-
- setopt autocd
-
- # to enable Portage completions and Gentoo prompt
- autoload -U compinit promptinit
- compinit
- promptinit; prompt gentoo
-
- # command correction
- setopt correctall
-
- zstyle ':completion:*:sudo:*' environ PATH="$SUDO_PATH:$PATH"
-
- zstyle ':completion:*' menu select=20
-
- # persistent rehash or how to find new executables in the $PATH automatically
- zstyle ':completion:*' rehash true
-
- # to enable cache for the completions
- zstyle ':completion::complete:*' use-cache 1
-
-
-
-
- $ cat .zprofile
- # Auto startx
- if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then
- startx
- fi
-
- if [[ $EUID != 0 ]] && (($+commands[sudo])) ; then
- typeset -xT SUDO_PATH sudo_path
- typeset -U sudo_path
- sudo_path=({,/usr/local,/usr}/sbin(N-/))
- fi
-