healthier code and always install for .bashrc
This commit is contained in:
parent
d9e9ebbfe9
commit
a15a5f755d
1 changed files with 8 additions and 7 deletions
|
@ -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
|
||||
# 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
|
||||
fi
|
||||
|
||||
# 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
|
||||
|
|
Reference in a new issue