1 # The following lines were added by compinstall
3 zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
4 zstyle ':completion:*' completions 1
5 zstyle ':completion:*' expand suffix
6 zstyle ':completion:*' glob 1
7 zstyle ':completion:*' ignore-parents parent pwd
8 zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
9 zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
10 zstyle ':completion:*' list-suffixes true
11 zstyle ':completion:*' max-errors 1
12 zstyle ':completion:*' menu select=1
13 zstyle ':completion:*' preserve-prefix '//[^/]##/'
14 zstyle ':completion:*' prompt 'Corrections with %e differences:'
15 zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
16 zstyle ':completion:*' substitute 1
17 zstyle :compinstall filename '/home/max/.zshrc'
21 # End of lines added by compinstall
22 # Lines configured by zsh-newuser-install
26 setopt appendhistory autocd extendedglob nomatch
29 # End of lines configured by zsh-newuser-install
36 p="%(?;%F{green};%F{red})[%h]%f "
37 p+="%F{red}%B%n%b%f@%F{red}%B%m%b%f"
39 p+="${NEWLINE}%(!.#.$) "
42 if [ -n "${VIRTUAL_ENV+1}" ]; then
43 home_rel_path=$(echo ${VIRTUAL_ENV} | sed "s;^${HOME};~;")
44 echo -n "(${home_rel_path}) "
48 source ~/.git-prompt.sh
50 __git_ps1 "" "$(virtual_env)${p}" "${NEWLINE}[%s]${NEWLINE}"
54 if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then
55 gpg-connect-agent /bye >/dev/null 2>&1
59 if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
60 export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
64 gpg-connect-agent updatestartuptty /bye > /dev/null
66 bindkey '^R' history-incremental-search-backward
68 if [[ -f ~/.shell_aliases ]]; then
69 source ~/.shell_aliases
72 export WORKON_HOME=~/.virtualenvs
73 source /usr/bin/virtualenvwrapper_lazy.sh
76 src_dir="$(readlink -f ~/src/)/"
77 if [[ $PWD == "$src_dir"* ]]; then
78 if git status &>/dev/null; then
79 venv_name=$(basename $(git rev-parse --show-toplevel))
80 if [[ -n "$VIRTUAL_ENV" ]]; then
81 current_venv_name=$(basename "$VIRTUAL_ENV")
82 if [[ "$current_venv_name" != "$venv_name" ]]; then
87 if workon | grep -q "$venv_name"; then
92 if [[ -n "$VIRTUAL_ENV" ]]; then
97 if [[ -n "$VIRTUAL_ENV" ]]; then