wip
This commit is contained in:
parent
9c487ce6d2
commit
74357e75d7
2 changed files with 12 additions and 28 deletions
|
@ -1,26 +0,0 @@
|
|||
_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
|
Loading…
Add table
Add a link
Reference in a new issue