1
0
Fork 0
mirror of https://github.com/jbowdre/dotfiles.git synced 2025-01-18 06:24:38 +00:00

fish: explicitly set XDG_ variables

This commit is contained in:
John Bowdre 2025-01-09 15:59:47 -06:00
parent 89b2abe469
commit 1ed76cafd1
Signed by: john
SSH key fingerprint: SHA256:cZYnOxaLdo+MhBNMX38ihO/p2Kek6fBykSFoJwHBhUo

View file

@ -1,4 +1,4 @@
{
{ config, ... }: {
programs.fish.interactiveShellInit =
# Launch tmux
''
@ -6,6 +6,13 @@
tmux attach-session -t $(hostname -s) || tmux new-session -s $(hostname -s) -c $HOME
end
'' +
# set XDG directories
''
set -U XDG_CACHE_HOME "${config.home.homeDirectory}/.cache"
set -U XDG_CONFIG_HOME "${config.home.homeDirectory}/.config"
set -U XDG_DATA_HOME "${config.home.homeDirectory}/.local/share"
set -U XDG_STATE_HOME "${config.home.homeDirectory}/.local/state"
'' +
# Open command buffer in vim when alt+e is pressed
''
bind \ee edit_command_buffer