healthier code and always install for .bashrc

This commit is contained in:
Anri 2021-11-14 17:19:37 +01:00
parent d9e9ebbfe9
commit a15a5f755d

View file

@ -26,13 +26,13 @@ else # if the folder isn't already created (first run?)
# adding code command and updateCodium command
# to all the shell installed
# to .bashrc if exists
if [ -f $HOME/.bashrc ] ; then
echo "" >> $HOME/.bashrc
echo "# Alias for Codium" >> $HOME/.bashrc
echo "alias updateCodium='bash \$HOME/.vscodium_scripts/updateVSCodium.sh'" >> $HOME/.bashrc
echo "alias code='bash \$HOME/.vscodium_scripts/VSCodium.AppImage --no-sandbox > /dev/null 2>&1 &;disown'" >> $HOME/.bashrc
fi
# to .bashrc (i assume it always exists, anyways if not this script is hard to start
# because all the alias/abbr are using bash)
echo "" >> $HOME/.bashrc
echo "# Alias for Codium" >> $HOME/.bashrc
echo "alias updateCodium='bash \$HOME/.vscodium_scripts/updateVSCodium.sh'" >> $HOME/.bashrc
echo "alias code='bash \$HOME/.vscodium_scripts/VSCodium.AppImage --no-sandbox > /dev/null 2>&1 &;disown'" >> $HOME/.bashrc
# to .zshrc if exists
if [ -f $HOME/.zshrc ] ; then
echo "" >> $HOME/.zshrc
@ -40,6 +40,7 @@ else # if the folder isn't already created (first run?)
echo "alias updateCodium='bash \$HOME/.vscodium_scripts/updateVSCodium.sh'" >> $HOME/.zshrc
echo "alias code='bash \$HOME/.vscodium_scripts/VSCodium.AppImage --no-sandbox > /dev/null 2>&1 &;disown'" >> $HOME/.zshrc
fi
# to config.fish if exists
if [ -f $HOME/.config/fish/config.fish ] ; then
echo "" >> $HOME/.config/fish/config.fish