added zoxide config

This commit is contained in:
2026-03-15 01:18:43 -07:00
parent 1f34f24fbf
commit 6b58365ce1

View File

@@ -25,9 +25,9 @@ cp ./zoxide /usr/bin
rm ./zoxide rm ./zoxide
echo "Zoxide installed successfully." echo "Zoxide installed successfully."
if ! grep -q 'zoxide init bash' ~/.bashrc; then if ! grep -q 'zoxide init bash' ~/.bashrc; then
echo -e '\n# Initialize zoxide' >> ~/.bashrc echo -e '\n# Initialize zoxide and remap cd' >> ~/.bashrc
echo 'eval "$(zoxide init bash)"' >> ~/.bashrc echo 'eval "$(zoxide init bash --cmd cd)"' >> ~/.bashrc
echo "Zoxide setup added to ~/.bashrc." echo "Zoxide setup (with cd remap) added to ~/.bashrc."
else else
echo "Zoxide is already configured in ~/.bashrc." echo "Zoxide is already configured in ~/.bashrc."
fi fi