From 0b6ecf705dabeb5b4b769e37e71d07f26107fd1b Mon Sep 17 00:00:00 2001 From: cornfeedhobo Date: Thu, 31 Dec 2020 17:28:30 -0600 Subject: [PATCH] add plugin for basher --- clean_files.txt | 4 ++++ plugins/available/basher.plugin.bash | 15 +++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 plugins/available/basher.plugin.bash diff --git a/clean_files.txt b/clean_files.txt index da5034d9..6325d8a7 100644 --- a/clean_files.txt +++ b/clean_files.txt @@ -28,6 +28,10 @@ lint_clean_files.sh themes/90210 themes/powerline +# plugins +# +plugins/available/basher.plugin.bash + # completions # completion/available/cargo.completion.bash diff --git a/plugins/available/basher.plugin.bash b/plugins/available/basher.plugin.bash new file mode 100644 index 00000000..d226ffcb --- /dev/null +++ b/plugins/available/basher.plugin.bash @@ -0,0 +1,15 @@ +cite about-plugin +about-plugin 'initializes basher, the shell package manager' + +# https://github.com/basherpm/basher + +if ! _command_exists basher; then + if [[ -x "$HOME/.basher/bin/basher" ]]; then + pathmunge "$HOME/.basher/bin" + else + _log_warning 'basher not found' + return 0 + fi +fi + +eval "$(basher init - bash)"