diff options
author | tv <tv@krebsco.de> | 2018-01-16 19:24:42 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-01-16 19:24:42 +0100 |
commit | bf8c5af0a881e5077bdaedc6a6cf696bf8a9221a (patch) | |
tree | 09d62a408971a8032853159283741ba104b4bd84 /tv/2configs | |
parent | 8bdfb259525db56a7c70f45545ee1c7fb17cbe03 (diff) |
tv vim: mkdirs -> need-dirs
Diffstat (limited to 'tv/2configs')
-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 59619f9..6598393 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 |