From b99973d37cd6dcdf070da9bd2724810445968ef9 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 24 Sep 2014 13:24:27 +0200 Subject: zsh/zshrc: Reorganize slightly --- zsh/.zshrc | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'zsh') diff --git a/zsh/.zshrc b/zsh/.zshrc index 4b83f19..073287d 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -2,8 +2,12 @@ HISTFILE=~/.config/zsh/.zsh_history HISTSIZE=500000 SAVEHIST=500000 -fpath=(~/.local/share/zsh/completion $fpath) -zstyle :compinstall filename "$HOME/.config/zsh/.zshrc" +zstyle :compinstall filename "$ZDOTDIR"/.zshrc + +# Menu completion +zstyle ':completion:*' menu select +zstyle ':completion:*' use-cache on +zstyle ':completion:*' rehash yes autoload -Uz colors \ compinit \ @@ -15,8 +19,6 @@ compinit promptinit colors -zmodload zsh/mapfile - setopt autocd \ complete_aliases \ glob_dots \ @@ -34,20 +36,19 @@ setopt autocd \ prompt_subst \ notify -# Menu completion -zstyle ':completion:*' menu select -zstyle ':completion:*' use-cache on -zstyle ':completion:*' rehash yes - +# "This associative array takes as keys the names of files; the resulting +# value is the content of the file" +zmodload zsh/mapfile -source "$ZDOTDIR"/prompt.zsh -source "$ZDOTDIR"/aliases.zsh source "$ZDOTDIR"/keybindings.zsh - -[[ -f "$ZDOTDIR"/zshrc-"$(hostname -s)" ]] && \ - source "$ZDOTDIR"/zshrc-"$(hostname -s)" +source "$ZDOTDIR"/aliases.zsh # aliases and functions. +source "$ZDOTDIR"/prompt.zsh # sets the prompt if [[ -n "$VTE_VERSION" ]]; then source /etc/profile.d/vte.sh __vte_prompt_command fi + +if [[ -f "$ZDOTDIR"/zshrc-"$SHORTHOST" ]]; then + source "$ZDOTDIR"/zshrc-"$SHORTHOST" +fi -- cgit v1.2.3-70-g09d2