Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
2.4.0: Bug fixes, more plugins, documentation
Browse files Browse the repository at this point in the history
- Fix a bug where it'd load preload.env even though
  it doesn't exist [major]
- Add more plugins to the list
- Add docs on how to uninstall baz

Signed-off-by: Ari Archer <[email protected]>
  • Loading branch information
Ari Archer committed Oct 16, 2022
1 parent ac08d99 commit c5643d4
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 34 deletions.
19 changes: 19 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
BasedOnStyle: LLVM
IndentWidth: 4
SortIncludes: false
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: true
AlignConsecutiveMacros: true
AlignEscapedNewlines: true
AllowShortCaseLabelsOnASingleLine: true
AllowShortEnumsOnASingleLine: true
AllowShortFunctionsOnASingleLine: true
AllowShortLambdasOnASingleLine: true
BinPackParameters: false
IndentCaseBlocks: true
IndentCaseLabels: true
IndentExternBlock: true
IndentGotoLabels: true
---

11 changes: 11 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
tab_width = 2

31 changes: 16 additions & 15 deletions PLUGINS.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Some baz plugins :)

- [Example plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/baz-example-plugin) [Name:example License:WTFPL]
- [Shortcmd plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/shortcmd-baz-plugin) [Name:shortcmd-baz-plugin License:WTFPL]
- [Coffee theme plugin by @coffee-theme](https://github.com/coffee-theme/coffee.baz-plugin) [Name:coffee.baz-plugin License:WTFPL]
- [Coloured man pages plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/coloured-man-pages-plugin) [Name:coloured-man-pages-plugin License:WTFPL]
- [Better bash plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/better-bash-baz-plugin) [Name:better-bash-baz-plugin License:WTFPL]
- [Ls aliases by @TruncatedDinosour](https://github.com/TruncatedDinosour/ls-aliases-baz-plugin) [Name:ls-aliases-baz-plugin License:WTFPL]
- [Vifzf bindings by @TruncatedDinosour](https://github.com/TruncatedDinosour/vifzf-keybinds-baz-plugin) [Name:vifzf-keybinds-baz-plugin License:WTFPL]
- [Coffee TTY theme plugin by @coffee-theme](https://github.com/coffee-theme/coffee.tty-theme) [Name:coffee.tty-theme License:WTFPL]
- [Venvin virtualenv helper plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/venvin-baz-plugin) [Name:venvin-baz-plugin License:WTFPL]
- [Trash CLI aliases plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/trash-cli-rm-baz) [Name:trash-cli-rm-baz License:WTFPL]
- [YT-dlp aliases plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/yt-dlp-aliases-baz-plugin) [Name:yt-dlp-aliases-baz-plugin License:WTFPL]
- [Bettercmd plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/bettercmd-baz-plugin) [Name:bettercmd-baz-plugin License:WTFPL]
- [Cmdutils plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/cmdutils-baz-plugin) [Name:cmdutils-baz-plugin License:WTFPL]
- [Agnoster theme by @TruncatedDinosour](https://github.com/TruncatedDinosour/agnoster-theme-baz-plugin) [Name:agnoster-theme-baz-plugin License:MIT,MIT]
- [Git aliases by @TruncatedDinosour](https://github.com/TruncatedDinosour/git-aliases-plugin) [Name:git-aliases-plugin License:WTFPL]
- [Example plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/baz-example-plugin) [Name:example License:WTFPL]
- [Shortcmd plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/shortcmd-baz-plugin) [Name:shortcmd-baz-plugin License:WTFPL]
- [Coffee theme plugin by @coffee-theme](https://github.com/coffee-theme/coffee.baz-plugin) [Name:coffee.baz-plugin License:WTFPL]
- [Coloured man pages plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/coloured-man-pages-plugin) [Name:coloured-man-pages-plugin License:WTFPL]
- [Better bash plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/better-bash-baz-plugin) [Name:better-bash-baz-plugin License:WTFPL]
- [Ls aliases by @TruncatedDinosour](https://github.com/TruncatedDinosour/ls-aliases-baz-plugin) [Name:ls-aliases-baz-plugin License:WTFPL]
- [Vifzf bindings by @TruncatedDinosour](https://github.com/TruncatedDinosour/vifzf-keybinds-baz-plugin) [Name:vifzf-keybinds-baz-plugin License:WTFPL]
- [Coffee TTY theme plugin by @coffee-theme](https://github.com/coffee-theme/coffee.tty-theme) [Name:coffee.tty-theme License:WTFPL]
- [Venvin virtualenv helper plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/venvin-baz-plugin) [Name:venvin-baz-plugin License:WTFPL]
- [Trash CLI aliases plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/trash-cli-rm-baz) [Name:trash-cli-rm-baz License:WTFPL]
- [YT-dlp aliases plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/yt-dlp-aliases-baz-plugin) [Name:yt-dlp-aliases-baz-plugin License:WTFPL]
- [Bettercmd plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/bettercmd-baz-plugin) [Name:bettercmd-baz-plugin License:WTFPL]
- [Cmdutils plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/cmdutils-baz-plugin) [Name:cmdutils-baz-plugin License:WTFPL]
- [Agnoster theme by @TruncatedDinosour](https://github.com/TruncatedDinosour/agnoster-theme-baz-plugin) [Name:agnoster-theme-baz-plugin License:MIT,MIT]
- [Git aliases by @TruncatedDinosour](https://github.com/TruncatedDinosour/git-aliases-plugin) [Name:git-aliases-plugin License:WTFPL]
- [Mpvp-report plugin by @TruncatedDinosour](https://github.com/TruncatedDinosour/mpvp-report) [Name:mpvp-report License:gpl3]
42 changes: 25 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
# Credits

- [@DannyBen](https://github.com/DannyBen) -- For creating an awesome tool for completion: https://github.com/DannyBen/completely
- [@DannyBen](https://github.com/DannyBen) -- For creating an awesome tool for completion: https://github.com/DannyBen/completely

# Dependencies

- GNU coreutils
- GNU bash
- Git cli
- Linux
- Rlwrap (optional, but it's nice for special keys)
- Bash-completion (optional, but it's nice for well.. Completion)
- GNU coreutils
- GNU bash
- Git cli
- Linux
- Rlwrap (optional, but it's nice for special keys)
- Bash-completion (optional, but it's nice for well.. Completion)

# Automatic setup

Expand All @@ -28,8 +28,8 @@ $ bash baz_setup.sh

Configuration:

- `__BASH_RUNAS`: The `sudo` program (sudo)
- `PREFIX`: Where to install baz (/usr/bin)
- `__BASH_RUNAS`: The `sudo` program (sudo)
- `PREFIX`: Where to install baz (/usr/bin)

# Plugin indexing

Expand All @@ -45,8 +45,8 @@ $ git clone https://github.com/TruncatedDinosour/baz

1. Install the script anywhere, or even run it standalone

- Running standalone means just running it
- Installing could be done in for example `/usr/local/bin`:
- Running standalone means just running it
- Installing could be done in for example `/usr/local/bin`:

```bash
$ su -c 'install -Dm755 baz /usr/local/bin'
Expand Down Expand Up @@ -81,6 +81,14 @@ This is the main loader for plugins
$ ./scripts/comp.sh
```

# Uninstallation

Uninstall the `baz` 'binary' and then just run:

```
$ rm -rf ~/.local/share/baz
```

# Help page

```bash
Expand All @@ -105,15 +113,15 @@ $ ./scripts/comp.sh

# Other docs

- [Doc folder](/doc)
- [Doc folder](/doc)

# Examples

- [Examples folder](/examples)
- [My example plugin repo](https://github.com/TruncatedDinosour/baz-example-plugin)
- [Examples folder](/examples)
- [My example plugin repo](https://github.com/TruncatedDinosour/baz-example-plugin)

# Debugging

- Set `BAZ_DEBUG` to any value to any value to debug the `baz` cli with tracing
- Set `BAZ_DEBUG_LOAD` to any value to debug the loader
- Add `set -x` before and `set +x` after the loader to enable tracing
- Set `BAZ_DEBUG` to any value to any value to debug the `baz` cli with tracing
- Set `BAZ_DEBUG_LOAD` to any value to debug the loader
- Add `set -x` before and `set +x` after the loader to enable tracing
4 changes: 2 additions & 2 deletions baz
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[ "$BAZ_DEBUG" ] && set -x

export BAZ_VERSION='2.3.1'
export BAZ_VERSION='2.4.0'
export BAZ_DIR="$HOME/.local/share/baz"
export BAZ_CONFDIR="$HOME/.config/baz"
export BAZ_CONF="$BAZ_CONFDIR/config.env"
Expand Down Expand Up @@ -715,7 +715,7 @@ baz_enable() {
main() {
use printf return

[ "$_BAZ_NO_PRE" != true ] && . "$BAZ_PRE"
[ "$_BAZ_NO_PRE" != true ] && [ -f "$BAZ_PRE" ] && . "$BAZ_PRE"

if [ "$BAZ_NORLWRAP" != true ] && command -v rlwrap >/dev/null; then
use mktemp trap rlwrap return
Expand Down

0 comments on commit c5643d4

Please sign in to comment.