addet some sources
This commit is contained in:
parent
8f4cf77fcc
commit
2475615606
4 changed files with 509 additions and 335 deletions
26
.bash/.plugins.sh
Normal file
26
.bash/.plugins.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue