all repos — nixfiles @ 061b7a0149c62f53a75f7f0e8ad63836acf4e334

System and user configuration, managed by nix and home-manager

Move zsh install commands to readme

Alan Pearce
commit

061b7a0149c62f53a75f7f0e8ad63836acf4e334

parent

f8ec71a117760f22e2573f1a6d072547d6410f21

2 files changed, 17 insertions(+), 29 deletions(-)

jump to
M README.orgREADME.org
@@ -27,3 +27,20 @@
#+BEGIN_SRC sh :exports code stow -D emacs #+END_SRC + +*** Z Shell + +My zsh configuration uses [[https://zplug.sh/][zplug]], so that will need to be installed: + +#+BEGIN_SRC sh :exports code +git clone git://github.com/zplug/zplug ~/projects/zplug/ +#+END_SRC + +To install the packages: + +#+BEGIN_SRC sh :exports code +zsh -ic "zplug install" +#+END_SRC + +Note that this will log some errors about a pipe, but that's okay. +zplug is meant to be used in a real interactive shell.
D hooks/post-up/zsh
@@ -1,29 +0,0 @@
-#!/usr/bin/env zsh -ZDOTDIR="${XDG_CONFIG_HOME:=~/.config}/zsh" - -pushd $ZDOTDIR -for f in z*(-.) -do - if [[ -e .$f ]] - then - if [[ ! -h .$f ]] - then - echo ".$f already exists as a regular file, ignoring" - fi - else - ln -s $f .$f - fi -done -popd - -if [[ ! -d ~/.cache/zsh ]] -then - mkdir -p ~/.cache/zsh -fi - -if [[ -z $commands[zplug] && ! -d ~/projects/zplug/ ]] -then - git clone git://github.com/zplug/zplug ~/projects/zplug/ -fi - -zsh -ic "zplug install"