The global variable PATH is set up in /etc/profile.
What we want is to override this PATH variable's value with the new variable at the user level.
User variable configuration file is ~/.bashrc, so edit this file with your favorite editor:
at the end of the file add a line with your new variable declaration:
#my new variable
export MY_NEW_EXECUTABLE_HOME_DIR=/home/user/libs/myNewLib
then override the globally declared PATH variable like this:
export PATH="${PATH}:$MY_NEW_EXECUTABLE_HOME_DIR/bin"
Inscription à :
Publier les commentaires (Atom)
bash script to convert all mp4 in a folder to mkv files with ffmpeg
#!/bin/bash for i in *.mp4; do echo "$i" "${i%%.*}.mkv" ffmpeg -i "$i" -vcodec copy -acodec copy "${...
-
When I installed Manjaro I choose "minimal installation" so only the most basic packages are installed on my system by default. B...
-
Last time this happened, I freaked out, after a couple of hours I was able to get it back to normal by following those steps: install a newe...
-
#!/bin/bash for i in *.mp4; do echo "$i" "${i%%.*}.mkv" ffmpeg -i "$i" -vcodec copy -acodec copy "${...
Aucun commentaire:
Enregistrer un commentaire