summaryrefslogtreecommitdiff
path: root/home/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'home/zsh')
-rw-r--r--home/zsh/default.nix1
-rw-r--r--home/zsh/zprofile3
-rw-r--r--home/zsh/zshrc4
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