Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #History options:
- HISTFILE=~/.histfile
- HISTSIZE=100000
- SAVEHIST=100000
- setopt hist_ignore_space
- setopt hist_ignore_all_dups
- # Options
- setopt extendedglob
- setopt correctall
- setopt promptsubst
- setopt completealiases
- setopt listambiguous
- # Keybinds
- bindkey -e
- # Completion
- zstyle :compinstall filename '/home/dane/.zshrc'
- autoload -Uz compinit && compinit
- zstyle ':completion:*' use-cache on
- zstyle ':completion:*' cache-path ~/.zsh/cache
- zstyle -e ':completion:*:approximate:*' max-errors 'reply=( $(( ($#PREFIX + $#SUFFIX) / 3 )) )'
- zstyle ':completion:*:descriptions' format "- %d -"
- zstyle ':completion:*:corrections' format "- %d - (errors %e})"
- zstyle ':completion:*:default' list-prompt '%S%M matches%s'
- zstyle ':completion:*' group-name ''
- zstyle ':completion:*:manuals' separate-sections true
- zstyle ':completion:*:manuals.(^1*)' insert-sections true
- zstyle ':completion:*' menu select
- zstyle ':completion:*' verbose yes
- zstyle ':completion:*' accept-exact '*(N)' # Speed up path compl
- eval $(dircolors)
- zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
- # Aliases
- alias rm='rm -i'
- alias cp='cp -i'
- alias mv='mv -i'
- alias ls='ls -F --color=auto'
- alias ll='ls -lhF'
- alias grep='grep --color=auto'
- alias egrep='egrep --color=auto'
- alias fgrep='fgrep --color=auto'
- alias vi='vim'
- alias less='less -S'
- export EDITOR=vim
- export PAGER=less
- # Sensible keybinds
- bindkey "\e[1~" beginning-of-line # Home
- bindkey "\e[4~" end-of-line # End
- bindkey "\e[5~" beginning-of-history # PageUp
- bindkey "\e[6~" end-of-history # PageDown
- bindkey "\e[2~" quoted-insert # Ins
- bindkey "\e[3~" delete-char # Del
- bindkey "\e[5C" forward-word
- bindkey "\eOc" emacs-forward-word
- bindkey "\e[5D" backward-word
- bindkey "\eOd" emacs-backward-word
- bindkey "\e\e[C" forward-word
- bindkey "\e\e[D" backward-word
- bindkey "\e[Z" reverse-menu-complete # Shift+Tab
- # Prompt options
- autoload -U promptinit && promptinit
- autoload -U colors && colors
- export PROMPT="[%{$fg[yellow]%}%*%{$reset_color%} %{$fg[green]%}%n@%m%{$reset_color%} %{$fg[cyan]%}%15<...<%~%<<%{$reset_color%}]%# "
Add Comment
Please, Sign In to add comment