Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### some options ###
- setopt autocd
- setopt autolist
- setopt correctall
- setopt nobeep
- setopt notify
- ### completions ###
- autoload -U compinit
- compinit
- zstyle ':completion::complete:*' use-cache 1
- # case-insensitive (uppercase from lowercase) completion
- zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
- # process completion
- zstyle ':completion:*:processes' command 'ps -au$USER'
- zstyle ':completion:*:*:kill:*:processes' list-colors "=(#b) #([0-9]#)*=36=31"
- # completions too
- zstyle ':completion:*' completer _expand _complete _ignored
- zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
- zstyle ':completion:*' menu select=2
- zstyle ':completion:*' select-prompt '%SScrolling active: current selection at %p%s'
- zstyle ':completion:*:descriptions' format '%U%F{yellow}%d%f%u'
- ### prompt ###
- autoload -U promptinit
- promptinit
- prompt gentoo
- autoload -U colors
- colors
- ### history stuff ###
- export HISTSIZE=2000
- export HISTFILE="$HOME/.zsh_history"
- export SAVEHIST=$HISTSIZE
- setopt hist_ignore_all_dups
- setopt hist_ignore_space
- ### aliases ###
- alias l='ls -la'
- alias ls='ls --color=auto'
- alias grep='grep --color=auto'
- ### key bindings ###
- bindkey '\e[A' history-search-backward
- bindkey '\e[B' history-search-forward
- bindkey '\e[H' beginning-of-line # Home (xorg)
- bindkey '\e[1~' beginning-of-line # Home (console)
- bindkey '\e[4~' end-of-line # End (console)
- bindkey '\e[F' end-of-line # End (xorg)
- bindkey '\e[2~' overwrite-mode # Ins
- bindkey '\e[3~' delete-char # Delete
- bindkey '\eOH' beginning-of-line
- bindkey '\eOF' end-of-line
- ### dir colors ###
- eval $(dircolors)
Advertisement
Add Comment
Please, Sign In to add comment