summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-06-26 16:34:09 +0200
committerAlan Pearce2016-06-26 16:34:09 +0200
commitf766b7ba9ee98fe81a0b17581177314c57443818 (patch)
tree66d87cd4c0c64df4c5f226c760fb0912e56fab55
parent665d0c79f6c3167ca125666cedd85e8c29a47bdc (diff)
downloaddotfiles-f766b7ba9ee98fe81a0b17581177314c57443818.tar.lz
dotfiles-f766b7ba9ee98fe81a0b17581177314c57443818.tar.zst
dotfiles-f766b7ba9ee98fe81a0b17581177314c57443818.zip
Zplug: Allow installing into $HOME
-rw-r--r--host-ap-spotcap.local/config/zsh/zshenv.local1
-rw-r--r--tag-zplug/config/zsh/zshenv6
-rw-r--r--tag-zplug/config/zsh/zshrc5
3 files changed, 9 insertions, 3 deletions
diff --git a/host-ap-spotcap.local/config/zsh/zshenv.local b/host-ap-spotcap.local/config/zsh/zshenv.local
index f6881be..35fe7a3 100644
--- a/host-ap-spotcap.local/config/zsh/zshenv.local
+++ b/host-ap-spotcap.local/config/zsh/zshenv.local
@@ -3,3 +3,4 @@ if [[ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]]
 then
 	. $HOME/.nix-profile/etc/profile.d/nix.sh;
 fi
+export ZPLUG_HOME=/usr/local/opt/zplug
diff --git a/tag-zplug/config/zsh/zshenv b/tag-zplug/config/zsh/zshenv
index e69de29..d5ef76a 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 dc55d6d..5fd52db 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