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
|
# adding code command and updateCodium command
|
||||||
# to all the shell installed
|
# to all the shell installed
|
||||||
|
|
||||||
# to .bashrc if exists
|
# to .bashrc (i assume it always exists, anyways if not this script is hard to start
|
||||||
if [ -f $HOME/.bashrc ] ; then
|
# because all the alias/abbr are using bash)
|
||||||
echo "" >> $HOME/.bashrc
|
echo "" >> $HOME/.bashrc
|
||||||
echo "# Alias for Codium" >> $HOME/.bashrc
|
echo "# Alias for Codium" >> $HOME/.bashrc
|
||||||
echo "alias updateCodium='bash \$HOME/.vscodium_scripts/updateVSCodium.sh'" >> $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
|
echo "alias code='bash \$HOME/.vscodium_scripts/VSCodium.AppImage --no-sandbox > /dev/null 2>&1 &;disown'" >> $HOME/.bashrc
|
||||||
fi
|
|
||||||
# to .zshrc if exists
|
# to .zshrc if exists
|
||||||
if [ -f $HOME/.zshrc ] ; then
|
if [ -f $HOME/.zshrc ] ; then
|
||||||
echo "" >> $HOME/.zshrc
|
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 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='bash \$HOME/.vscodium_scripts/VSCodium.AppImage --no-sandbox > /dev/null 2>&1 &;disown'" >> $HOME/.zshrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# to config.fish if exists
|
# to config.fish if exists
|
||||||
if [ -f $HOME/.config/fish/config.fish ] ; then
|
if [ -f $HOME/.config/fish/config.fish ] ; then
|
||||||
echo "" >> $HOME/.config/fish/config.fish
|
echo "" >> $HOME/.config/fish/config.fish
|
||||||
|
|
Reference in a new issue