Ajout : fonction addpath dans profile, ajout d'un path
This commit is contained in:
parent
22aff9b2eb
commit
ee174a4252
1 changed files with 8 additions and 5 deletions
11
home/profile
11
home/profile
|
@ -1,7 +1,10 @@
|
||||||
# Add local bin to PATH
|
# Add local bin to PATH
|
||||||
local_bin="$HOME/.local/bin"
|
addpath() {
|
||||||
if [ -d "$local_bin" ]; then
|
if [ -d "$1" ]; then
|
||||||
PATH="$local_bin:$PATH"
|
PATH="${1}:${PATH}"
|
||||||
fi
|
fi
|
||||||
unset local_bin
|
}
|
||||||
|
|
||||||
|
addpath ~/.local/bin
|
||||||
|
addpath ~/.local/share/qemu/bin
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue