diff options
author | nin <nin@c-base.org> | 2018-01-30 23:06:17 +0100 |
---|---|---|
committer | nin <nin@c-base.org> | 2018-01-30 23:06:17 +0100 |
commit | 6849d7aa4810d5f1f2ec55d852d21812dd1b8002 (patch) | |
tree | b2b236981d6cb2d226fbe239845838a15c22b30e /tv/2configs/vim.nix | |
parent | 80c2e23ec028bfda5c0bad0e3269648d34d298b0 (diff) | |
parent | ffc294575cb59585c3bfb6b85fa45fb69cdf1d41 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'tv/2configs/vim.nix')
-rw-r--r-- | tv/2configs/vim.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 59619f9b5..6598393a2 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -297,7 +297,7 @@ let { viminfo = "$HOME/.cache/vim/info"; }; - mkdirs = let + need-dirs = let dirOf = s: let out = concatStringsSep "/" (init (splitString "/" s)); in assert out != ""; out; alldirs = attrValues dirs ++ map dirOf (attrValues files); @@ -308,7 +308,7 @@ let { paths = [ (pkgs.writeDashBin "vim" '' set -efu - (umask 0077; exec ${pkgs.coreutils}/bin/mkdir -p ${toString mkdirs}) + (umask 0077; exec ${pkgs.coreutils}/bin/mkdir -p ${toString need-dirs}) exec ${pkgs.vim}/bin/vim "$@" '') pkgs.vim |