diff options
author | Ben Sima <ben@bsima.me> | 2018-09-18 12:08:25 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-09-21 08:45:18 -0700 |
commit | 10497683ddabf318c56b9834e570c1407040b2d6 (patch) | |
tree | ed460a9f79661dc0046a6f2a89865fbbe59e239d /home.nix | |
parent | 059cd5bb8e4da39e3f5148f3129c1dff2ac2ec37 (diff) |
Replace '~' with full path to $HOME in $PATH
Apparently, the '~' doesn't expand to $HOME on macOS, and presumably on
other systems too.
Diffstat (limited to 'home.nix')
-rw-r--r-- | home.nix | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 = { |