Ajout : fonction addpath dans profile, ajout d'un path

This commit is contained in:
Hippolyte Chauvin 2023-09-01 10:46:59 +02:00
parent 22aff9b2eb
commit ee174a4252

View file

@ -1,7 +1,10 @@
# Add local bin to PATH
local_bin="$HOME/.local/bin"
if [ -d "$local_bin" ]; then
PATH="$local_bin:$PATH"
addpath() {
if [ -d "$1" ]; then
PATH="${1}:${PATH}"
fi
unset local_bin
}
addpath ~/.local/bin
addpath ~/.local/share/qemu/bin