diff options
author | Alan Pearce | 2019-10-05 05:30:50 +0200 |
---|---|---|
committer | Alan Pearce | 2019-10-05 05:30:50 +0200 |
commit | 644a368c03c92e3a8dd451855bef0465b04619e6 (patch) | |
tree | bfc01e70e23710d158b8197bb2a17c552ee7b399 /user | |
parent | af91a31eb5ccb46e605aa9b6cf1e792590409ef6 (diff) | |
download | nixfiles-644a368c03c92e3a8dd451855bef0465b04619e6.tar.lz nixfiles-644a368c03c92e3a8dd451855bef0465b04619e6.tar.zst nixfiles-644a368c03c92e3a8dd451855bef0465b04619e6.zip |
zsh: import zplugin to home-manager
Diffstat (limited to 'user')
-rw-r--r-- | user/modules/zsh.nix | 11 | ||||
-rwxr-xr-x | user/zsh/.config/zsh/setup.sh | 9 | ||||
-rw-r--r-- | user/zsh/.rm_recycle_home | 0 |
3 files changed, 11 insertions, 9 deletions
diff --git a/user/modules/zsh.nix b/user/modules/zsh.nix index 9ace6f75..89faa1a8 100644 --- a/user/modules/zsh.nix +++ b/user/modules/zsh.nix @@ -17,6 +17,17 @@ source = ../zsh/.config/zsh; }; + home.file.".zplugin/bin" = { + recursive = true; + source = pkgs.fetchFromGitHub { + owner = "zdharma"; + repo = "zplugin"; + rev = "028b1e1d6d3eae204b499c7f815f4eeeb5051517"; + sha256 = "1ynh323905iia3gwi9qghbywp94x306nna1yqk37frj5g7kg90fa"; + }; + onChange = "${pkgs.zsh}/bin/zsh -c 'zcompile $HOME/.zplugin/bin/zplugin.zsh'"; + }; + programs.zsh = { enable = true; diff --git a/user/zsh/.config/zsh/setup.sh b/user/zsh/.config/zsh/setup.sh deleted file mode 100755 index 93bbf808..00000000 --- a/user/zsh/.config/zsh/setup.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env zsh - -mkdir $HOME/.zplugin -git clone https://github.com/psprint/zplugin.git $HOME/.zplugin/bin - -zcompile $HOME/.zplugin/bin/zplugin.zsh - -mkdir -p $HOME/.cache/zsh/ - diff --git a/user/zsh/.rm_recycle_home b/user/zsh/.rm_recycle_home deleted file mode 100644 index e69de29b..00000000 --- a/user/zsh/.rm_recycle_home +++ /dev/null |