fix bash users

This commit is contained in:
Anri 2021-11-18 12:05:40 +01:00
parent b1fb07c03c
commit d0727bb242

View file

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