Load locals bashrc files
This commit is contained in:
@@ -48,3 +48,11 @@ function can_run() {
|
|||||||
command -v "$application" > /dev/null
|
command -v "$application" > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function source_directory() {
|
||||||
|
local mask="$1"
|
||||||
|
for file in $mask; do
|
||||||
|
if [[ -f "$file" ]]; then
|
||||||
|
echo "$file"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|||||||
3
rc/99-local.sh
Normal file
3
rc/99-local.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Load user locals bashrc
|
||||||
|
|
||||||
|
source_directory "$HOME/.bashrc.d/*.sh"
|
||||||
Reference in New Issue
Block a user