From f766b7ba9ee98fe81a0b17581177314c57443818 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 26 Jun 2016 16:34:09 +0200 Subject: Zplug: Allow installing into $HOME --- tag-zplug/config/zsh/zshenv | 6 ++++++ tag-zplug/config/zsh/zshrc | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'tag-zplug/config/zsh') diff --git a/tag-zplug/config/zsh/zshenv b/tag-zplug/config/zsh/zshenv index e69de29b..d5ef76a1 100644 --- a/tag-zplug/config/zsh/zshenv +++ b/tag-zplug/config/zsh/zshenv @@ -0,0 +1,6 @@ +if [[ -f $ZDOTDIR/zshenv.local ]] +then + . $ZDOTDIR/zshenv.local +fi + +ZPLUG_HOME=${ZPLUG_HOME:-~/projects/zplug} \ No newline at end of file diff --git a/tag-zplug/config/zsh/zshrc b/tag-zplug/config/zsh/zshrc index dc55d6d5..5fd52db3 100644 --- a/tag-zplug/config/zsh/zshrc +++ b/tag-zplug/config/zsh/zshrc @@ -1,12 +1,11 @@ # -*- mode: sh; -*- -export ZPLUG_HOME=/usr/local/opt/zplug -source $ZPLUG_HOME/init.zsh +source ${ZPLUG_HOME:-~/projects/zplug}/init.zsh zplug "zsh-users/zsh-completions" zplug "mafredri/zsh-async" zplug "sindresorhus/pure" zplug "Tarrasch/zsh-autoenv", as:plugin -zplug "clvv/fasd", hook-build:"make install" +zplug "clvv/fasd", hook-build:"PREFIX=$HOME make install" zplug "tymm/zsh-directory-history", as:command, use:"dir{hist,log}" zplug "tymm/zsh-directory-history", as:plugin -- cgit 1.4.1