Skip to content

Commit 0b6ecf7

Browse files
committed
add plugin for basher
1 parent 3addebb commit 0b6ecf7

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

clean_files.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ lint_clean_files.sh
2828
themes/90210
2929
themes/powerline
3030

31+
# plugins
32+
#
33+
plugins/available/basher.plugin.bash
34+
3135
# completions
3236
#
3337
completion/available/cargo.completion.bash
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
cite about-plugin
2+
about-plugin 'initializes basher, the shell package manager'
3+
4+
# https://github.com/basherpm/basher
5+
6+
if ! _command_exists basher; then
7+
if [[ -x "$HOME/.basher/bin/basher" ]]; then
8+
pathmunge "$HOME/.basher/bin"
9+
else
10+
_log_warning 'basher not found'
11+
return 0
12+
fi
13+
fi
14+
15+
eval "$(basher init - bash)"

0 commit comments

Comments
 (0)