use bash for all the shells

This commit is contained in:
Anri 2021-11-14 17:16:14 +01:00
parent 2e3914cfc0
commit d9e9ebbfe9

View file

@ -30,22 +30,22 @@ else # if the folder isn't already created (first run?)
if [ -f $HOME/.bashrc ] ; then
echo "" >> $HOME/.bashrc
echo "# Alias for Codium" >> $HOME/.bashrc
echo "alias updateCodium='\$HOME/.vscodium_scripts/updateVSCodium.sh'" >> $HOME/.bashrc
echo "alias code='\$HOME/.vscodium_scripts/VSCodium.AppImage --no-sandbox > /dev/null 2>&1 &;disown'" >> $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 .zshrc if exists
if [ -f $HOME/.zshrc ] ; then
echo "" >> $HOME/.zshrc
echo "# Alias for Codium" >> $HOME/.zshrc
echo "alias updateCodium='\$HOME/.vscodium_scripts/updateVSCodium.sh'" >> $HOME/.zshrc
echo "alias code='\$HOME/.vscodium_scripts/VSCodium.AppImage --no-sandbox > /dev/null 2>&1 &;disown'" >> $HOME/.zshrc
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
echo "# Abbrevations for Codium" >> $HOME/.config/fish/config.fish
echo "abbr updateCodium '\$HOME/.vscodium_scripts/updateVSCodium.sh'" >> $HOME/.config/fish/config.fish
echo "abbr code '\$HOME/.vscodium_scripts/VSCodium.AppImage --no-sandbox > /dev/null 2>&1 &;disown'" >> $HOME/.config/fish/config.fish
echo "abbr updateCodium 'bash \$HOME/.vscodium_scripts/updateVSCodium.sh'" >> $HOME/.config/fish/config.fish
echo "abbr code 'bash \$HOME/.vscodium_scripts/VSCodium.AppImage --no-sandbox > /dev/null 2>&1 &;disown'" >> $HOME/.config/fish/config.fish
fi
fi