spacepaste

  1.  
  2. $ cat .zshrc
  3. export LANG="ca_ES.UTF-8"
  4. # historial
  5. HISTFILE=~/.histfile
  6. HISTSIZE=5000
  7. SAVEHIST=$HISTSIZE
  8. # To prevent history from recording duplicated entries and synchronize the shell history between terminals
  9. setopt hist_ignore_dups share_history inc_append_history extended_history
  10. setopt autocd
  11. # to enable Portage completions and Gentoo prompt
  12. autoload -U compinit promptinit
  13. compinit
  14. promptinit; prompt gentoo
  15. # command correction
  16. setopt correctall
  17. zstyle ':completion:*:sudo:*' environ PATH="$SUDO_PATH:$PATH"
  18. zstyle ':completion:*' menu select=20
  19. # persistent rehash or how to find new executables in the $PATH automatically
  20. zstyle ':completion:*' rehash true
  21. # to enable cache for the completions
  22. zstyle ':completion::complete:*' use-cache 1
  23. $ cat .zprofile
  24. # Auto startx
  25. if [ -z "$DISPLAY" ] && [ "$(fgconsole)" -eq 1 ]; then
  26. startx
  27. fi
  28. if [[ $EUID != 0 ]] && (($+commands[sudo])) ; then
  29. typeset -xT SUDO_PATH sudo_path
  30. typeset -U sudo_path
  31. sudo_path=({,/usr/local,/usr}/sbin(N-/))
  32. fi
  33.