]> git.sev.monster Git - dotfiles.git/blame_incremental - .zshrc
delete .hushlogin, added touch to install.sh
[dotfiles.git] / .zshrc
... / ...
CommitLineData
1# modules
2autoload -Uz vcs_info
3zstyle ':vcs_info:*' enable git
4zstyle ':vcs_info:*' get-revision true
5zstyle ':vcs_info:git*' formats "(%F{green}%r/%b%f) %m%u%c "
6precmd() { vcs_info }
7
8# prompt
9setopt prompt_subst
10PROMPT='%F{$VICOL}%n%f@%F{$VICOL}%m%f%(?../%F{red}$?%f)%# '
11RPROMPT='${vcs_info_msg_0_}%F{yellow}%~%f %T'
12
13function zle-line-init zle-keymap-select {
14 VICOL="${${KEYMAP/vicmd/red}/(main|viins)/green}"
15 zle reset-prompt
16}
17zle -N zle-line-init
18zle -N zle-keymap-select
19
20# common aliases
21alias h="history -25"
22alias j="jobs -l"
23alias la="ls -aF"
24alias lf="ls -AF"
25alias ll="ls -lhAF"
26alias pa="sudo ps -Sudax"
27
28# be paranoid
29alias cp='cp -ip'
30alias mv='mv -i'
31alias rm='rm -I'
32
33# venv
34alias activate="source bin/activate"
35
36# ports
37alias pkg-install-make-build-depends="sudo pkg install --automatic \`make build-depends-list | sed 's/\/usr\/ports\// /' | tr -d '\n'\`"
38alias pkg-install-make-run-depends="sudo pkg install --automatic \`make run-depends-list | sed 's/\/usr\/ports\// /' | tr -d '\n'\`"
39
40# keys
41bindkey "^[[7~" beginning-of-line #Home
42bindkey "^[[8~" end-of-line #End
43bindkey "^[[3~" delete-char #Del
44# vt keys
45bindkey "^[[H" beginning-of-line #Home
46bindkey "^[[F" end-of-line #End
47
48autoload -Uz up-line-or-beginning-search down-line-or-beginning-search
49zle -N up-line-or-beginning-search
50zle -N down-line-or-beginning-search
51[[ -n "$key[Up]" ]] && bindkey -- "$key[Up]" up-line-or-beginning-search
52[[ -n "$key[Down]" ]] && bindkey -- "$key[Down]" down-line-or-beginning-search
53
54# The following lines were added by compinstall
55zstyle ':completion:*' auto-description 'specify: %d'
56zstyle ':completion:*' expand suffix
57zstyle ':completion:*' format '# %d'
58zstyle ':completion:*' group-name ''
59zstyle ':completion:*' ignore-parents parent
60zstyle ':completion:*' insert-unambiguous false
61zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
62zstyle ':completion:*' list-prompt '%B%i%b'
63zstyle ':completion:*' list-suffixes true
64zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._-]=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*'
65zstyle ':completion:*' menu select=1
66zstyle ':completion:*' original false
67zstyle ':completion:*' select-prompt '%B%l%b'
68zstyle ':completion:*' verbose true
69zstyle :compinstall filename '/home/ds6/.zshrc'
70
71autoload -Uz compinit
72compinit
73# End of lines added by compinstall
74
75# Lines configured by zsh-newuser-install
76HISTFILE=~/.histfile
77HISTSIZE=100
78SAVEHIST=100
79setopt appendhistory autocd extendedglob
80unsetopt beep
81bindkey -v
82# End of lines configured by zsh-newuser-install
83
84# vim: ts=8:sts=4:sw=4:et:tw=80
This page took 0.026204 seconds and 4 git commands to generate.