From f27da6e325cf298fe5a46c57585a12c9e718fa71 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Wed, 21 Oct 2015 21:35:40 -0700 Subject: Initial commit. --- .zshrc | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .zshrc (limited to '.zshrc') diff --git a/.zshrc b/.zshrc new file mode 100644 index 0000000..a80cd7c --- /dev/null +++ b/.zshrc @@ -0,0 +1,56 @@ +#!/bin/zsh + +autoload -U compinit +compinit + +zstyle ':completion:*:descriptions' format '%U%B%d%b%u' +zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b' + +unsetopt correctall +unsetopt equals + +autoload -U promptinit +promptinit + +prompt gentoo + +export HISTSIZE=5000 +export HISTFILE="$HOME/.history" +export SAVEHIST=$HISTSIZE +setopt hist_ignore_all_dups +setopt hist_ignore_space + +# Breaks "eix ^asdf" +# setopt extendedglob + +bindkey "^[[H" beginning-of-line +bindkey "^[[1~" beginning-of-line +bindkey "^[OH" beginning-of-line +bindkey "^[[F" end-of-line +bindkey "^[[4~" end-of-line +bindkey "^[OF" end-of-line +bindkey ' ' magic-space # also do history expansion on space +bindkey '^R' history-incremental-search-backward + +bindkey "^[[1;5C" forward-word +bindkey "^[[1;5D" backward-word + +bindkey '^[[Z' reverse-menu-complete + +# Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~ +bindkey '^?' backward-delete-char +bindkey "^[[3~" delete-char +bindkey "^[3;5~" delete-char +bindkey "\e[3~" delete-char + +export PATH=:$PATH:~/bin + +if [ -f "${HOME}/.gpg-agent-info" ]; then + . "${HOME}/.gpg-agent-info" + export GPG_AGENT_INFO + export SSH_AUTH_SOCK +fi +export GPG_TTY=$(tty) + +. /etc/profile.d/autojump.sh +. /etc/profile.d/vte-2.91.sh -- cgit v1.2.3