Fix adding java to path for bash

This commit is contained in:
Mylloon 2021-11-11 22:45:07 +01:00
parent 710e210610
commit a8d7412f81

View file

@ -12,7 +12,7 @@ mv jdk* jdk-16
# On le place dans le dossier /usr/share
sudo mv jdk-16 /usr/share
# On l'ajoute à la path pour Bash et Fish
export PATH=/usr/share/jdk-16/bin:$PATH
echo "export PATH=/usr/share/jdk-16/bin:\$PATH" >> $HOME/.bashrc
if [ -x /usr/bin/fish ] ; then
fish -c 'fish_add_path /usr/share/jdk-16/bin'
fi