addet some sources

This commit is contained in:
pika 2025-01-07 00:59:15 +01:00
parent 8f4cf77fcc
commit 2475615606
4 changed files with 509 additions and 335 deletions

26
.bash/.plugins.sh Normal file
View file

@ -0,0 +1,26 @@
_plugins() {
local bash_dir="$HOME/.bash/plugins"
if [ -d "$bash_dir" ]; then
echo_info "Plugins will be loadet.."
# ─< plugins to configure (usually just the filename in the plugins list) >───────────────
local plugAutopairs="autopairs.sh"
local sshCompletion="ssh"
# ─< active plugins >─────────────────────────────────────────────────────────────────────
plugins=(
"$plugAutopairs"
"$sshCompletion"
)
# ─< loop through and source the plugins >────────────────────────────────────────────────
for plugin in "${plugins[@]}"; do
if [ -f "${bash_dir}/${plugin}" ]; then
echo_plugin "${bash_dir}/${plugin}"
. "${bash_dir}/${plugin}"
fi
done
fi
}
_plugins