# Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=1000 SAVEHIST=1000 setopt autocd beep extendedglob nomatch notify nobgnice bsd_echo bindkey -v # End of lines configured by zsh-newuser-install # The following lines were added by compinstall zstyle :compinstall filename "$HOME/.zshrc" eval `dircolors` autoload -Uz colors compinit promptinit colors compinit promptinit zstyle ':completion:*' completer _complete _expand _list zstyle ':completion:*' expand suffix zstyle ':completion:*' file-sort name zstyle ':completion:*' ignore-parents parent pwd zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character to insert%s' zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' zstyle ':completion:*' max-errors 1 zstyle ':completion:*' menu select=2 zstyle ':completion:*' original true zstyle ':completion:*' preserve-prefix '//[^/]##/' zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s' # End of lines added by compinstall bindkey '[1~' beginning-of-line bindkey 'OH' beginning-of-line bindkey '[5~' beginning-of-line bindkey '[3~' delete-char bindkey '[4~' end-of-line bindkey 'OF' end-of-line bindkey '[6~' end-of-line setopt PROMPT_SUBST PS1='%n@%m:${PWD/$HOME/"~"}%# ' alias ls='ls --color=auto' # para avisar al salir: setopt ignoreeof list-choices-or-exit(){ if [ "$BUFFER" ] then zle list-choices "$@" return elif [ 0 -eq `jobs | wc -l` ] then exit fi zle -M "zsh: you have running jobs." } zle -N list-choices-or-exit list-choices-or-exit bindkey "" list-choices-or-exit # para que funcione el kill tab: zstyle ':completion:*:*:kill:*:processes' list-colors "=(#b) #([0-9]#)*=36=31" export RPROMPT="[%t]" [ -r ~/.zshlocalrc ] && . ~/.zshlocalrc