bash: add libpath/pkgconfig to extend LD_LIBRARY_PATH and PKG_CONFIG_PATH

This commit is contained in:
Paul Walker
2024-03-06 15:23:05 +00:00
parent dcfbaa3b0d
commit 651f86fd46
2 changed files with 7 additions and 0 deletions

3
bashrc.d/libpath.bash Normal file
View File

@@ -0,0 +1,3 @@
if [ -d "$HOME/lib" ] ; then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib
fi

4
bashrc.d/pkgconfig.bash Normal file
View File

@@ -0,0 +1,4 @@
if [ -d "$HOME/lib/pkgconfig" ] ; then
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$HOME/lib/pkgconfig"
fi