OMB - Major Refactor (#39)

* OMB - Major Refactor

- Aliases and completions now works like plugins (need to enabled in .bashrc)
- Removed the compatible check in spectrum.sh, OMB now works with Bash v3.x like the old days.
- Removed core plugin, added those bash functions into base.sh and load during startup.
- Updated OSH template for new installations
- Added history config and few other stuff from #17

@TODO: Added a shell script to update old version of .bashrc to new one.

* Fixed ShellCheck issues

* Fixed ShellCheck issues
This commit is contained in:
Toan Nguyen
2019-01-23 03:05:32 -08:00
committed by GitHub
parent 6ade77f3bb
commit 53fb803740
70 changed files with 1548 additions and 384 deletions

View File

@@ -119,7 +119,7 @@ e_underline() { printf "${underline}${bold}%s${reset}\n" "$@"
}
e_bold() { printf "${bold}%s${reset}\n" "$@"
}
e_note() { printf "${underline}${bold}${blue}Note:${reset} ${blue}%s${reset}\n" "$@"
e_note() { printf "${underline}${bold}${blue}Note:${reset} ${yellow}%s${reset}\n" "$@"
}
#
@@ -134,9 +134,9 @@ e_note() { printf "${underline}${bold}${blue}Note:${reset} ${blue}%s${reset}\n"
# fi
#
seek_confirmation() {
printf "\n${bold}%s${reset}" "$@"
printf "\\n${bold}%s${reset}" "$@"
read -p " (y/n) " -n 1
printf "\n"
printf "\\n"
}
# Test whether the result of an 'ask' is a confirmation