zsh history adheres to XDG specs

feat/kile-v2
Ricard Illa 2022-08-17 11:29:24 +02:00
parent 153611e27b
commit 5a19666431
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 4 additions and 1 deletions

View File

@ -91,6 +91,7 @@
".local/share/mpd" ".local/share/mpd"
".local/share/webkitgtk" ".local/share/webkitgtk"
".local/state/wireplumber" ".local/state/wireplumber"
".local/state/zsh"
".mozilla" ".mozilla"
".newsboat" ".newsboat"
".password-store" ".password-store"

View File

@ -1,6 +1,7 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ let xdg-state-home = "${config.home.homeDirectory}/.local/state";
in {
programs.starship = { programs.starship = {
enable = true; enable = true;
enableZshIntegration = true; enableZshIntegration = true;
@ -54,6 +55,7 @@
ignoreDups = true; ignoreDups = true;
ignoreSpace = true; ignoreSpace = true;
share = false; share = false;
path = "${xdg-state-home}/zsh/history";
}; };
shellAliases = { shellAliases = {
testpl = ''echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"''; testpl = ''echo "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"'';