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...
-
- install xorg-xev: sudo pacman -S xorg-xev - run xev - in the window press the key you want to remap and look in the terminal what's ...
Aucun commentaire:
Enregistrer un commentaire