fork/home-manager
git clone https://git.julia.blue/fork/home-manager
af715ed8
master
1{ config , pkgs , ...} : 2 3{ 4programs . zsh = { 5enable = true ; 6zplug = { 7enable = true ; 8zplugHome = pkgs . emptyDirectory ; 9plugins = [ 10{ 11name = "plugins/git" ; 12tags = [ "from:oh-my-zsh" ]; 13} 14{ 15name = "lib/clipboard" ; 16tags = [ "from:oh-my-zsh" ''if:"[[ $OSTYPE == *darwin* ]]"'' ]; 17} 18]; 19}; 20}; 21 22test . stubs = { 23zplug = { }; 24zsh = { }; 25}; 26 27nmt . script = '' 28assertFileContains home-files/.zshrc \ 29'source @zplug@/share/zplug/init.zsh' 30 31assertFileContains home-files/.zshrc \ 32'zplug "plugins/git", from:oh-my-zsh' 33 34assertFileContains home-files/.zshrc \ 35'zplug "lib/clipboard", from:oh-my-zsh, if:"[[ $OSTYPE == *darwin* ]]"' 36 37assertFileContains home-files/.zshrc \ 38'if ! zplug check; then 39zplug install 40fi' 41 42assertFileRegex home-files/.zshrc \ 43'^zplug load$' 44 45assertFileContains home-files/.zshrc \ 46'export ZPLUG_HOME= ${ config . programs . zsh . zplug . zplugHome } ' 47'' ; 48}