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
13
home/profile
13
home/profile
|
@ -1,7 +1,10 @@
|
|||
# Add local bin to PATH
|
||||
local_bin="$HOME/.local/bin"
|
||||
if [ -d "$local_bin" ]; then
|
||||
PATH="$local_bin:$PATH"
|
||||
fi
|
||||
unset local_bin
|
||||
addpath() {
|
||||
if [ -d "$1" ]; then
|
||||
PATH="${1}:${PATH}"
|
||||
fi
|
||||
}
|
||||
|
||||
addpath ~/.local/bin
|
||||
addpath ~/.local/share/qemu/bin
|
||||
|
||||
|
|
Loading…
Reference in a new issue