diff options
author | lassulus <lassulus@lassul.us> | 2018-01-16 21:28:37 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2018-01-16 21:28:37 +0100 |
commit | 661eae8fc80b94f727f4178dca67b990c6ddc984 (patch) | |
tree | d7e9f7da930292a4a45d625adaeb43df3030495c /tv/2configs/vim.nix | |
parent | 6c7210cd10b4b23930a027a8cd1fb166ed5151e6 (diff) | |
parent | 7ec791bafe172b79743f56b193f0a3160a280def (diff) |
Merge remote-tracking branch 'ni/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 |