fix: improve bashrc sourcing and zoxide initialization; add home-manager installation check

This commit is contained in:
2024-10-31 19:03:59 +01:00
parent 4125562f7a
commit dc50b4bcd0
3 changed files with 31 additions and 4 deletions

View File

@ -17,6 +17,10 @@ if [ ! -x "$(command -v sed)" ]; then
return
fi
if [ ! -f ~/.bashrc ]; then
touch ~/.bashrc
fi
sed -i -e '$a\'$'\n''export PATH=$PATH:$HOME/.local/bin' ~/.bashrc
sed -i -e '$a\'$'\n''export PATH=$PATH:~/dotfiles/bin' ~/.bashrc