Skip to content

Commit

Permalink
Enable missing XDG_ ENVs in fish
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jul 15, 2023
1 parent 9880a12 commit b5934c7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .config/fish/conf.d/plugin-foreign-env.fish
2 changes: 1 addition & 1 deletion .config/fish/config.fish
7 changes: 3 additions & 4 deletions .config/home-manager/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
home.username = "kachick";
# TODO: How to cover lima? The default is /home/kachick.local
home.homeDirectory = if pkgs.stdenv.hostPlatform.isDarwin then "/Users/${config.home.username}" else "/home/${config.home.username}";
xdg.configHome = "${config.home.homeDirectory}/.config";
xdg.cacheHome = "${config.home.homeDirectory}/.cache";
xdg.stateHome = "${config.home.homeDirectory}/.local/state";
xdg.dataHome = "${config.home.homeDirectory}/.local/share";

# https://github.com/nix-community/home-manager/blob/master/modules/misc/xdg.nix
xdg.enable = true;

# This value determines the Home Manager release that your
# configuration is compatible with. This helps avoid breakage
Expand Down
1 change: 1 addition & 0 deletions home/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ case $- in
*) return ;;
esac

# Should have home.nix only...?
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_STATE_HOME="$HOME/.local/state"
Expand Down
1 change: 1 addition & 0 deletions home/.zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# https://qiita.com/vintersnow/items/7343b9bf60ea468a4180
# zmodload zsh/zprof && zprof

# Should have home.nix only...?
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:=$HOME/.config}"
# Do NOT manage .zshenv(thisfile) in the dir.
export ZDOTDIR="${ZDOTDIR:=$XDG_CONFIG_HOME/zsh}"
Expand Down

0 comments on commit b5934c7

Please sign in to comment.