improvements
caveats
- shellcheck:
- arguments are accessed via
args
, and in partial snippets shellcheck complains aboutused but not assigned
- solution: in
bashly-settings.yml
usevar_aliases.args: ARGS
- solution: in
- arguments are accessed via
- partial snippets in
src/
are going to be wrapped in a function:- creating functions results in a "function inside a function" situation in the final script
- if you use
local VARNAME
, shellcheck complains about'local' is only valid in functions
- solution: ALWAYS use the
src/*.sh
files to just call a function that is going to be coded in asrc/lib/*.sh
file.
- solution: ALWAYS use the
- validations are purely based on output (something in output means failure)
usage ideas
zxz
https://github.com/meleu/zxz - client for https://0x0.st/
cht
cheatsheet manager
features
- visualize with
bat
orglow
for syntax highlight? fzf
to search files- save in markdown files
- configfile to specify directories
- separate private vs. public cheatsheets
bashly tutorial
- hello world
- todo list
- add
- list
- remove
- done