commit 29e4fabe64d5332b8a5f423b53b89e45f65e73ac
parent 115f33302bf01129625bedaf04c33836cc863d9b
Author: Milutin Popovic <milutin@popovic.xyz>
Date: Sun, 4 Jan 2026 15:54:02 +0000
nix setup
Diffstat:
3 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/.config/nvim/lua/plugins/telescope.lua b/.config/nvim/lua/plugins/telescope.lua
@@ -69,6 +69,7 @@ return {
os.getenv("XDG_CONFIG_HOME") .. "/X11",
os.getenv("XDG_LOCAL_HOME") .. "/src",
os.getenv("XDG_LOCAL_HOME") .. "/bin",
+ os.getenv("XDG_DOTFILES"),
},
hidden = true,
})
@@ -90,6 +91,7 @@ return {
os.getenv("XDG_CONFIG_HOME") .. "/X11",
os.getenv("XDG_LOCAL_HOME") .. "/src",
os.getenv("XDG_LOCAL_HOME") .. "/bin",
+ os.getenv("XDG_DOTFILES"),
},
hidden = true,
})
diff --git a/.config/shell/profile b/.config/shell/profile
@@ -18,6 +18,7 @@ export XDG_STATE_HOME="$HOME/.local/state"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_PUBLICSHARE_DIR="$HOME/Cloud"
export XDG_DOWNLOAD_DIR="$HOME/Downloads"
+export XDG_DOTFILES="$HOME/dots"
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
@@ -12,14 +12,17 @@ fi
HISTFILE=~/.cache/zsh/.histfile
setopt inc_append_history
+eval "$(direnv hook zsh)"
+
color="blue";
if [[ $USER == "root" ]]; then
color="red";
fi
brackets="";
-if [ ${IN_NIX_SHELL+1} ]; then
+if [ ${IN_NIX_SHELL+1} || ${DIRENV_DIR_FILE+1} ]; then
brackets="[]"
fi
+
PS1=" %B${brackets:0:1} %F{${color}}%B%m%F{white}%B ${brackets:1:2}: %2~%F{white} >%b "
source "${XDG_CONFIG_HOME:-$HOME/.config}/shell/bindings"