diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-12-16 19:28:04 -0500 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2025-12-16 20:01:33 -0500 |
| commit | ce31f8c51b57f29f1055ce92f92fa1bd835e6344 (patch) | |
| tree | 4e0d62682a53cbeef772c6d2bfe5b35134f2cda8 /home/zsh | |
| parent | update commits (diff) | |
| download | dotfiles-nix-ce31f8c51b57f29f1055ce92f92fa1bd835e6344.tar.gz dotfiles-nix-ce31f8c51b57f29f1055ce92f92fa1bd835e6344.tar.bz2 dotfiles-nix-ce31f8c51b57f29f1055ce92f92fa1bd835e6344.zip | |
remove many programs dotfiles from homedir
Diffstat (limited to 'home/zsh')
| -rw-r--r-- | home/zsh/default.nix | 1 | ||||
| -rw-r--r-- | home/zsh/zprofile | 3 | ||||
| -rw-r--r-- | home/zsh/zshrc | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/home/zsh/default.nix b/home/zsh/default.nix index 6af8cf1..f6706af 100644 --- a/home/zsh/default.nix +++ b/home/zsh/default.nix @@ -14,6 +14,7 @@ history.size = 10000; profileExtra = lib.fileContents ./zprofile; initContent = lib.fileContents ./zshrc; + dotDir = "${config.xdg.configHome}/zsh"; }; programs.zoxide = { diff --git a/home/zsh/zprofile b/home/zsh/zprofile index fc0fd72..e159154 100644 --- a/home/zsh/zprofile +++ b/home/zsh/zprofile @@ -3,3 +3,6 @@ if [ -n "$TMUX" ]; then return fi + +# setup homemanager +source /etc/profiles/per-user/"$USER"/etc/profile.d/hm-session-vars.sh diff --git a/home/zsh/zshrc b/home/zsh/zshrc index 196c345..dbcc1cb 100644 --- a/home/zsh/zshrc +++ b/home/zsh/zshrc @@ -10,7 +10,7 @@ export LC_ALL=en_US.UTF-8 # set history HISTSIZE=10000 SAVEHIST=10000 -HISTFILE=~/.histfile +HISTFILE="$XDG_STATE_HOME"/zsh/history # check for non-interactive shell if [[ $- != *i* ]] @@ -29,7 +29,7 @@ bindkey -v tabs autoload compinit -compinit +compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION" autoload -U colors && colors setopt promptsubst |