diff options
author | Daniel Schadt <kingdread@gmx.de> | 2016-08-22 23:06:24 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2016-08-22 23:06:24 +0200 |
commit | ea50a8561ef706526952d0a6109ae2dcd7bb6f37 (patch) | |
tree | 3779e6a0ff29207bc23c69a34b7ffb72116cac09 /zsh | |
download | dotfiles-ea50a8561ef706526952d0a6109ae2dcd7bb6f37.tar.gz dotfiles-ea50a8561ef706526952d0a6109ae2dcd7bb6f37.tar.bz2 dotfiles-ea50a8561ef706526952d0a6109ae2dcd7bb6f37.zip |
add basic dotfiles
Dotfiles for zsh, vim and herbstluftwm!
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/.zshrc | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..aeb0f6e --- /dev/null +++ b/zsh/.zshrc @@ -0,0 +1,95 @@ +autoload -U colors && colors + +zstyle ':completion:*' completer _complete _ignored +zstyle ':completion:*' menu select=1 +# use colors for file completion +zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} +# use groups for completion +zstyle ':completion:*:descriptions' format \ + "%{$fg[red]%}completing %B%d%b%{$reset_color%}" +zstyle ':completion:*:matches' group 'yes' +zstyle ':completion:*' group-name '' +# warn if there are no matches +zstyle ':completion:*:warnings' format \ + "%{$fg[red]%}No matches for:%{$reset_color%} %d" +# display all processes for killall/... +zstyle ':completion:*:processes-names' command \ + 'ps c -u ${USER} -o command | uniq' +# group man pages per section +zstyle ':completion:*:manuals' separate-sections true +zstyle ':completion:*:manuals.*' insert-sections true +# verbose output +zstyle ':completion:*' verbose true +# show file types +setopt listtypes +zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s +zstyle :compinstall filename '/home/daniel/.zshrc' + +autoload -Uz compinit +compinit +#HISTOPT=ignoreboth:erasedups +HISTFILE=~/.histfile +HISTSIZE=1000000 +SAVEHIST=1000000 +setopt appendhistory autocd extendedglob hist_ignore_all_dups hist_ignore_space +bindkey -v +PROMPT="[%{$fg[yellow]%}%n%{$reset_color%}@%m] %{$fg[cyan]%} %2~ %#%{$reset_color%} " + +precmd() +{ + print -Pn "\e]0;%n@%m: %~\a" +} + +unsetopt multibyte + +# key bindings +bindkey "\e[1~" beginning-of-line +bindkey "\e[4~" end-of-line +bindkey "\e[5~" beginning-of-history +bindkey "\e[6~" end-of-history +bindkey "\e[3~" delete-char +bindkey "\e[2~" quoted-insert +bindkey "\e[5C" forward-word +bindkey "\eOc" emacs-forward-word +bindkey "\e[5D" backward-word +bindkey "\eOd" emacs-backward-word +bindkey "\ee[C" forward-word +bindkey "\ee[D" backward-word +bindkey "^H" backward-delete-word +# for rxvt +bindkey "\e[8~" end-of-line +bindkey "\e[7~" beginning-of-line +# for non RH/Debian xterm, can't hurt for RH/DEbian xterm +bindkey "\eOH" beginning-of-line +bindkey "\eOF" end-of-line +# for freebsd console +bindkey "\e[H" beginning-of-line +bindkey "\e[F" end-of-line +# completion in the middle of a line +bindkey '^i' expand-or-complete-prefix +# up and down arrows for hist search +bindkey "^[[A" history-search-backward +bindkey "^[[B" history-search-forward +bindkey "^r" history-incremental-search-backward + +alias ls="ls --color=auto" +alias py="python" +alias rb="ruby" +alias hd="hexdump -C" +alias flux="xflux -l 49 -g 9" + +# Python's virtualenvwrapper +export WORKON_HOME="~/Code/PyEnvs" +export EDITOR="vim" +export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" +export TERM=xterm-256color + +#if [[ "$SSH_AGENT_PID" == "" ]]; then +# eval $(<~/.ssh-agent-thing) +#fi + +source /usr/bin/virtualenvwrapper.sh +source /home/daniel/.profile + +# added by travis gem +[ -f /home/daniel/.travis/travis.sh ] && source /home/daniel/.travis/travis.sh |