199 Commits

Author SHA1 Message Date
c3bcc5c6d2 refactor: Normalize shebang of scripts to source 2022-01-15 19:00:35 +09:00
088eee2abd lib/utils: Correctly restore shopt states in Bash < 4.1 2022-01-15 18:31:49 +09:00
e21cebd52b oh-my-bash: Load "lib/*.bash" 2022-01-15 18:21:06 +09:00
3d2b35a3eb refactor: Replace invalid shebang lines 2022-01-15 15:46:11 +09:00
abff767533 fix: Correct executable bit in permissions 2022-01-15 15:29:41 +09:00
2664096bcd Merge pull request #289 from akinomyoga/fix-kitsune-and-battery
Fix kitsune.theme and battery.plugin
2022-01-15 14:06:28 +09:00
a4f752cd01 themes/kitsune: Fix a bug that information is not updated 2022-01-15 14:03:57 +09:00
6b2d92efbd themes/kitsune: Add a proper dependency 2022-01-15 14:03:57 +09:00
548fbb188c plugins/battery: Fix an error message on no battery systems 2022-01-15 14:03:55 +09:00
1c9af65069 plugins/battery: Remove composure.sh annotations 2022-01-15 14:02:04 +09:00
b1025c0a73 Merge pull request #209 from DaarkMoon/master
Correction for grep regex when upower is used
2022-01-14 07:44:40 +09:00
838be93430 oh-my-bash: Update require_module error messages 2022-01-13 19:35:01 +09:00
22e6f0b6ec templates/bashrc: Fix quoting 2022-01-13 19:27:42 +09:00
97b28a349b templates/bashrc: Load settings only in interactive sessions 2022-01-13 19:27:42 +09:00
e5e3048a06 Revert "oh-my-bash: Show warning and fail for non-interactive shells"
This reverts commit 31f095f3ac7d9a6725b6646c35b131614833067f.
2022-01-12 23:40:46 +09:00
51864b9a09 Merge pull request #286 from akinomyoga/return-to-original-cwd
tools/upgrade: Return to the original working directory after upgrading
2022-01-12 19:45:11 +09:00
bf6960f347 tools/upgrade: Adjust shell quoting 2022-01-12 18:30:28 +09:00
463b9c3b8c tools/upgrade: Return to the original working directory after upgrading
Co-authored-by: Rex Roof <github@rexroof.com>
2022-01-12 18:30:28 +09:00
56f692daf0 themes/base: Fix a typo 2022-01-12 18:28:19 +09:00
35952601ad lib/omb-deprecate: Fix deprecated definitions of "e_*" 2022-01-12 18:28:19 +09:00
36ecc0a21f Merge pull request #284 from akinomyoga/do-not-overwrite-backup-bashrc
Do not overwrite backup bashrc
2022-01-12 17:49:28 +09:00
1543bc9d4a tools/uninstall: Do not overwrite backup bashrcs
Co-authored-by: Alexandre Alessi <alexpfba@gmail.com>
2022-01-08 15:41:07 +09:00
cafb35836e tools/uninstall: Remove "chsh -s /bin/bash"
The code is originated from the uninstallation script for ohmyzsh,
which switches the default shell from Bash to Zsh in its installation.
Oh-my-bash does not change the default shell in its installation, so
there is no need to change it back to /bin/bash in the uninstallation.
2022-01-08 15:41:07 +09:00
738c65dbff plugins/battery: Refactor extraction of percentage without a non-POSIX option 2022-01-08 15:40:06 +09:00
4637e4bd2e plugins/battery: Refactor "upower --show-info" 2022-01-08 15:40:06 +09:00
5cbaa84cc7 plugins/battery: Fix regex for the POSIX compatibility 2022-01-08 15:40:06 +09:00
b07199fac1 Update regular expression to be POSIX compatible 2022-01-08 15:40:06 +09:00
614fa98211 Update grep regex when upower is used to avoid to catch 'discharging' 2022-01-08 15:40:06 +09:00
062a128cb6 plugins/battery: Correct grep regex when upower is used 2022-01-08 15:40:06 +09:00
7d8a848d2c Merge pull request #73 from RXT067:what-the-bash/code_improvements (reconstructed) 2022-01-08 15:37:04 +09:00
8780308a4f themes: Fix wrong usage of command substitutions in conditions 2022-01-08 15:34:05 +09:00
85211c1f76 themes/rjorgenson: Use the POSIX command substitution 2022-01-08 15:34:05 +09:00
a085f452fb themes/agnoster: Use the POSIX command substitutions
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-01-08 15:34:05 +09:00
2027dd42a4 completions/salt: Fix quoting for "compgen -W" and others 2022-01-08 15:34:05 +09:00
eaa147afa6 completions/brew: Protect against pathname expansions and refactor 2022-01-08 15:34:05 +09:00
b05f53558b oh-my-bash: Quote parameter expansions properly 2022-01-08 15:34:05 +09:00
31f095f3ac oh-my-bash: Show warning and fail for non-interactive shells
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-01-08 15:34:05 +09:00
e84ace339b lib/utils: Rename logging functions 2022-01-08 15:31:43 +09:00
a463fb5aec Merge pull request #232 from prehensilecode/grep-alias 2022-01-08 14:17:19 +09:00
2c20b7bdb6 oh-my-bash: Fix varname "OSH_{CUSOM => CUSTOM}"
Co-authored-by: Rex Roof <github@rexroof.com>
2022-01-05 23:14:40 +09:00
556b43fdbb Merge pull request #276 from akinomyoga/support-unattended-install
tools/install: Support `--unattended` option
2022-01-05 19:37:56 +09:00
e6a15f25cc tools/install: Support a new option "--unattended" 2022-01-05 19:34:16 +09:00
47dc24d749 oh-my-bash: Disable word splitting for plugin/alias/completion names 2022-01-05 19:29:58 +09:00
028d253739 oh-my-bash: Fix the search path for plugins and aliases 2022-01-05 16:11:18 +09:00
674654a77e Merge pull request #236 from JamesMConroy/install
Refactored install.sh
2022-01-05 02:07:46 +09:00
636f48dfc4 install: Refactor install.sh
Now the script uses logging functions.
2022-01-05 02:06:48 +09:00
b3b20d6035 Merge pull request #274 from akinomyoga/omb-package
oh-my-bash: Add a function for dependency resolution and refactor
2022-01-05 01:49:52 +09:00
9b240245bb lib/grep: Refactor variable and function names to avoid conflicts 2022-01-02 00:25:30 +09:00
cb3599a312 lib/grep: Avoid alias expansions on the first argument of grep (Fix #229) 2022-01-02 00:18:39 +09:00
7844f96ed6 oh-my-bash: Manage dependencies by "_omb_module_require" 2022-01-01 07:40:35 +09:00