All notable changes to this project will be documented in this file.
The format is inspired by Keep a Changelog 1.0.0.
The versions follow the rules of Semantic Versioning 2.0.0.
- new commands "one dotbot-plugin" (5503a3d)
- use relative path instead of absolute path for enabled file (3218a99)
User can move one.bash folder without problem
- matched multi bin/sub files (eea751a)
- backup: one repo add should use absolute filepath (0fc7ba2)
- backup: must enable plugins first (5e8feff)
- bin: not found file when EXPORTS with GIT_REPO (60827bd)
- add hooks: BEFORE_ENABLE and BEFORE_DISABLE (0687c74)
- add command "one doc" to query documentations (00e770d)
- "one plugin info" not print PRIORITY for plugin.opt.bash (fdcbae7)
And add color for PRIORITY printed
- DEPS must be string (one command), or an array (multi commands) (32c4366)
- Enable module with variables (7bfd50a)
- add "shopt -s extdebug" while ONE_DEBUG=true (d4bf4c8)
- SCRIPT: unbound variable (6206088)
- change CWD to MOD_DATA_DIR for AFTER_DOWNLOAD/RUN_AND_INSERT/RUN_AND_APPEND (dcceecd)
- GIT_BRANCH could be undefined (750b3c5)
- one backup should print repo_name for each mod (2545573)
- create meta.bash for bin/sub.opt.bash when "one bin/sub enable" (3f73c2d)
- GITHUB_RELEASE_FILES not work (bb8be7c)
- GIT_REPO instead of GITHUB_REPO (912b660)
GITHUB_REPO is deprecated and will be removed in v1
- better docs (c2d3bb6)
- one enabled show list with pager (3fdc5c4)
- missing enabled folders (67d1f5a)
- remove useless repo_add_pre() function for one.repo.bash (b8cbcaa)
- cd should not print stderr (fb225c0)
- fix (655698e)
Please run one backup > ./one.backup.bash
before migrating to v0.2.
Check the usage in README.md.
cd $ONE_DIR/enabled
andrm -rf ./*
to remove all enabled files.- Run
one repo add
to add one repos. - Run
./one.backup.bash
to recover previous one.bash modules.
- big change (a6b3ce4)
- add "one search
<WORD>
" (dfa12b9)"one search -a " to search with all added repos.
- support "one bin" (9b01c0b)
Breaking Changes:
Remove "$ONE_REPO/bin" from PATH env variable. Add "$ONE_DIR/enabled/bin" to PATH. User should use "one bin enable NAME" to create symlinks at "$ONE_DIR/enabled/bin".
- support "one repo" && ONE_BASH_* and ONE_SHARE_* config options are deprecated (6990c83)
- See the repo usage via "one repo help"
- User can custom own repo. Add repo from local path or git host.
Breaking Changes:
- ONE_BASH_* and ONE_SHARE_* options are deprecated. User should remove them from your one.config.bash.
- one.bash will not auto install one.share and bash-it.
- Use "one repo add https://github.com/one-bash/one.share" to add one.share repo.
- Use "one repo add https://github.com/one-bash/one-bash-it" to add bash-it repo.
- support "one plugin edit" (ce8b5c7)
- add "one disable-all" (0f9daea)
- add one_MANPATH_append and one_MANPATH_insert functions (a2aa141)
- one dep: new command "one dep status" to show status of deps (7852009)
- COLOR_ENABLED=yes when $TERM match *-color (fffa3c8)
- "one backup" should backup "bins" and "repos" (a6b7a91)
- add color to logs (3ec0acd)
- add usages and completions and fix bugs for one-cmds (7d9a44e)
- For mod.opt.bash, SCRIPT field can be omitted (98655f2)
- colorful output and more details for list/info one mods and repos (3d710de)
- one help repo && remove colorful output (b495519)
- log format (1d29d02)
- better "one bin" (6c902ef)
- "one sub" should be enabled/disabled by users (d94d058)
- log_verb and log_info should print to stderr (4228b11)
- syntax error near unexpected token 'then' (9bf46e7)
⚠️ split "one enabled" command to "one backup" and "one enabled" (1899e6f)Breaking Change:
one enabled list -> one enabled one enabled backup -> one backup
- ONE_LOAD_PRIORITY not work in Linux (13ea0f2)
- enable: if create_mod failed, do not continue (56bc550)
- one link: ONE_ variables not found (2d8819c)
- one link: ONE_CONF: unbound variable (04e4b6e)
Have 1 breaking changes. Check below logs with
⚠️ for mod.opt.bash, add new options "DEP_CMDS" "RUN" (1f5068b)- DEP_CMDS: to check commands in your host when
one <mod> enable
.- The DEP_CMDS is a string which includes one or more command names separated with spaces.
- RUN: to run command when
one <mod> enable
- The stdout and stderr of RUN/INSERT/APPEND will output to
$ONE_DIR/data/$mod_type/$mod/enable.log
whenone <mod> enable
Breaking Change:
- If URL suffixed with ".git", it will be downloaded to
$ONE_DIR/data/$mod_type/$mod/git
- Otherwise, it will be downloaded to
$ONE_DIR/data/$mod_type/$mod/script.bash
- Otherwise, it will be downloaded to
- If you use below mods, you should re-enable them via
one <mod> enable
to fix symbol links.- completions/cheat.opt.bash
- completions/crictl.opt.bash
- completions/ctr.opt.bash
- completions/docker-compose.v1.opt.bash
- completions/docker.opt.bash
- completions/exa.opt.bash
- completions/fzf-tab.opt.bash
- completions/gulp.opt.bash
- completions/helm.opt.bash
- completions/hubble.opt.bash
- completions/minikube.opt.bash
- completions/mvn.opt.bash
- completions/npm.opt.bash
- completions/nvim.opt.bash
- completions/pm2.opt.bash
- completions/procs.opt.bash
- completions/rclone.opt.bash
- completions/yq.opt.bash
- completions/zig.opt.bash
- plugins/ble.opt.bash
- plugins/zoxide.opt.bash
- If you has customized mod.opt.bash, please modify the value of
SCRIPT
option- Before:
SCRIPT=path/script.bash
. Now:SCRIPT=git/path/script.bash
. Thegit/
means the downloaded git repo fromURL
.
- Before:
- DEP_CMDS: to check commands in your host when
- add "one log" and new config option "ONE_LOG_FILE" (9c2723d)
Some one-cmds would print logs to $ONE_LOG_FILE. User can use
one log
to read logs.User can change the path of ONE_LOG_FILE in one.config.bash. It defaults to
$ONE_DIR/tmp/one.log
. - support "one config --edit" to edit config file (5ab9673)
Have 1 breaking changes. Check below logs with
- add one_PATH_append and one_PATH_insert functions (48f8313)
- add command "one
<mod>
info" (175327c) - better command usages and completions (7500d28)
- support
<mod>.opt.bash && "one <mod>
list" prints more details (63678b4) - move backup-enabled to "one enabled backup" && add "one enabled list" (5de6223)
- better module list && support "one
<mod>
which" command (162ca15) - add "one sub which" (e97c4b2)
- one_stdout and one_stderr add prefix "[one.bash]" (7f8b3c5)
And refactor one_debug printf format
- change alias default priority 800 -> 750 (ee408e6)
- update usages && restore-modules should disable all then enable modules (5d397c5)
- change option "-a" to "--all" for "one
<mod_type>
disable" (d998cb0)Because "-a" is not intuitive enough.
- wrong path of ONE_DIR (d9d025a) (#1)
fix #1
- sort the results of "one
<mod>
list" (a107e6d) - add data/user/ to .git && ask to update mod data (568ecd5)
- when ONE_FIG=true and fig command not found, to print error message (4c09ceb)
- support bash-it (9e21750)
- support bash-it complete (c7d50c5)
⚠️ config: ONE_LINKS_CONF receive two parameters: os, arch (d40deb0)BREAKING CHANGE:
The value of OS changed from "MacOS" to "Darwin"
- dep: shell completion of "one dep" should only list git repo (6656b8e)
to skip one-bash-it folder
- dep: create symbol links to bash-it (599ce12)
- help: highlight not found in yellow (a0fe95a)