Merge pull request #1759 from cornfeedhobo/add-basher-plugin
add plugin for basher
This commit is contained in:
@@ -28,6 +28,10 @@ lint_clean_files.sh
|
||||
themes/90210
|
||||
themes/powerline
|
||||
|
||||
# plugins
|
||||
#
|
||||
plugins/available/basher.plugin.bash
|
||||
|
||||
# completions
|
||||
#
|
||||
completion/available/cargo.completion.bash
|
||||
|
||||
15
plugins/available/basher.plugin.bash
Normal file
15
plugins/available/basher.plugin.bash
Normal file
@@ -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)"
|
||||
Reference in New Issue
Block a user