summaryrefslogtreecommitdiffstats
path: root/tv/2configs/vim.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-07 07:50:17 +0100
committertv <tv@krebsco.de>2016-02-07 07:50:17 +0100
commit698296eb8c986127e0fb195a51b3adf3f31eeedf (patch)
tree6c2f2f484a2ccda6dec3bf14983fd9559e17da81 /tv/2configs/vim.nix
parentb819d6c452605af66282c14e25907793a4b77c65 (diff)
tv vim: restore original umask
Diffstat (limited to 'tv/2configs/vim.nix')
-rw-r--r--tv/2configs/vim.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix
index 9f702cd4d..8a6299a39 100644
--- a/tv/2configs/vim.nix
+++ b/tv/2configs/vim.nix
@@ -47,9 +47,10 @@ let
vim = pkgs.writeScriptBin "vim" ''
#! ${pkgs.dash}/bin/dash
set -f
+ umask=$(umask)
umask 0077
${concatStringsSep "\n" (map (x: "mkdir -p ${x}") mkdirs)}
- umask 0022
+ umask "$umask"
exec ${pkgs.vim}/bin/vim "$@"
'';