added zoxide config
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user