From 10497683ddabf318c56b9834e570c1407040b2d6 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 18 Sep 2018 12:08:25 -0700 Subject: Replace '~' with full path to $HOME in $PATH Apparently, the '~' doesn't expand to $HOME on macOS, and presumably on other systems too. --- home.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'home.nix') diff --git a/home.nix b/home.nix index 14af2ee..44c27eb 100644 --- a/home.nix +++ b/home.nix @@ -2,6 +2,7 @@ let solarized-xresources = ./xresources; + homedir = builtins.getEnv "HOME"; in { # Waiting for the accounts feature to land in the 18.03 release branch... @@ -38,7 +39,7 @@ in sessionVariables = { EDITOR = "vim"; LANG = "en_US.UTF-8"; - PATH = "~/bin:~/.cabal/bin:~/.local/bin:$PATH"; + PATH = "${homedir}/bin:${homedir}/.cabal/bin:${homedir}/.local/bin:$PATH"; PAGER = "less"; }; file = { -- cgit v1.2.3