Commit Graph

316 Commits

Author SHA1 Message Date
James Conroy
ec42a3c09c themes/rjorgenson: Remove function keyword
Made it more consistent to the rest of the functions in the file
2022-02-01 01:22:23 +09:00
James Conroy
ef9ca87851 themes/rjorgenson: Prefix two vars with OMB_THEME_
This will allow us to expose the variables to end user customizations
2022-02-01 01:22:23 +09:00
James Conroy
fa53beee56 themes/rjorgenson: Set variables as local
- set variables my_* as local
- set the variable line2 as local

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-02-01 01:22:23 +09:00
James Conroy
93286597a7 themes/rjorgenson: Refactor rjorgenson theme to reduce subshells
- Removed several unnecessary branches
- Improved indentation
- No longer pipes grep output into awk
2022-02-01 01:22:23 +09:00
Koichi Murase
cc50c22af7 tools/upgrade: Add an instruction for the users who wants to track the upstream 2022-01-31 19:41:01 +09:00
Koichi Murase
e58334b1df tools/upgrade: Print instructions on upgrading failures 2022-01-31 19:34:44 +09:00
Koichi Murase
9a0b552de3 Merge pull request #295 from akinomyoga/check-bash-version
oh-my-bash: Check Bash version and define `OMB_VERS{ION,INFO}`
2022-01-22 22:04:06 +09:00
Koichi Murase
7dce520857 oh-my-bash: support OMB_VERSION and OMB_VERSINFO 2022-01-19 15:50:18 +09:00
Koichi Murase
59a0beee7c oh-my-bash: Check Bash version on startup 2022-01-19 15:48:54 +09:00
Toan Nguyen
5eaf1a25a4 tools/install: Recommend updating Bash version to 4 or higher
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-01-19 15:48:54 +09:00
Koichi Murase
ab0ca1eb15 Merge pull request #292 from akinomyoga/upgrade-in-same-shell
Upgrade/Uninstall/Install OMB in the interactive shell process
2022-01-19 09:31:05 +09:00
Koichi Murase
8c6b66ca14 themes/powerline: Avoid using non-POSIX uptime 2022-01-18 15:48:04 +09:00
Koichi Murase
1d1b160a8d themes/powerline: Make sudo checks opt-in 2022-01-18 15:48:04 +09:00
Koichi Murase
b805006ccf Merge pull request #288 from stroggoslav/fix-lesspipe
Fix exporting LESSOPEN
2022-01-18 14:15:40 +09:00
stroggoslav
4cc47db635 Fix eval lesspipe
Evaluate lesspipe output only when LESSOPEN isn't already defined
unless we are on gentoo distribution then export LESSOPEN directly.

Check lesspipe scriptname (lesspipe/lesspipe.sh)

Issue #46 #69
2022-01-15 17:19:55 +01:00
Koichi Murase
16712a41c5 tools/upgrade: Enable upgrading/(un)installing in the interactive shell process 2022-01-15 19:15:09 +09:00
Koichi Murase
7f420263b2 themes: Make PROMPT_COMMAND usage consistent for reloading OMB 2022-01-15 19:14:30 +09:00
Koichi Murase
c3bcc5c6d2 refactor: Normalize shebang of scripts to source 2022-01-15 19:00:35 +09:00
Koichi Murase
088eee2abd lib/utils: Correctly restore shopt states in Bash < 4.1 2022-01-15 18:31:49 +09:00
Koichi Murase
e21cebd52b oh-my-bash: Load "lib/*.bash" 2022-01-15 18:21:06 +09:00
Koichi Murase
3d2b35a3eb refactor: Replace invalid shebang lines 2022-01-15 15:46:11 +09:00
Koichi Murase
abff767533 fix: Correct executable bit in permissions 2022-01-15 15:29:41 +09:00
Koichi Murase
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
Koichi Murase
a4f752cd01 themes/kitsune: Fix a bug that information is not updated 2022-01-15 14:03:57 +09:00
Koichi Murase
6b2d92efbd themes/kitsune: Add a proper dependency 2022-01-15 14:03:57 +09:00
Koichi Murase
548fbb188c plugins/battery: Fix an error message on no battery systems 2022-01-15 14:03:55 +09:00
Koichi Murase
1c9af65069 plugins/battery: Remove composure.sh annotations 2022-01-15 14:02:04 +09:00
Koichi Murase
b1025c0a73 Merge pull request #209 from DaarkMoon/master
Correction for grep regex when upower is used
2022-01-14 07:44:40 +09:00
Koichi Murase
838be93430 oh-my-bash: Update require_module error messages 2022-01-13 19:35:01 +09:00
Koichi Murase
22e6f0b6ec templates/bashrc: Fix quoting 2022-01-13 19:27:42 +09:00
Koichi Murase
97b28a349b templates/bashrc: Load settings only in interactive sessions 2022-01-13 19:27:42 +09:00
Koichi Murase
e5e3048a06 Revert "oh-my-bash: Show warning and fail for non-interactive shells"
This reverts commit 31f095f3ac.
2022-01-12 23:40:46 +09:00
Koichi Murase
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
Koichi Murase
bf6960f347 tools/upgrade: Adjust shell quoting 2022-01-12 18:30:28 +09:00
Koichi Murase
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
Koichi Murase
56f692daf0 themes/base: Fix a typo 2022-01-12 18:28:19 +09:00
Koichi Murase
35952601ad lib/omb-deprecate: Fix deprecated definitions of "e_*" 2022-01-12 18:28:19 +09:00
Koichi Murase
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
Koichi Murase
1543bc9d4a tools/uninstall: Do not overwrite backup bashrcs
Co-authored-by: Alexandre Alessi <alexpfba@gmail.com>
2022-01-08 15:41:07 +09:00
Koichi Murase
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
Koichi Murase
738c65dbff plugins/battery: Refactor extraction of percentage without a non-POSIX option 2022-01-08 15:40:06 +09:00
Koichi Murase
4637e4bd2e plugins/battery: Refactor "upower --show-info" 2022-01-08 15:40:06 +09:00
Koichi Murase
5cbaa84cc7 plugins/battery: Fix regex for the POSIX compatibility 2022-01-08 15:40:06 +09:00
DaarkMoon
b07199fac1 Update regular expression to be POSIX compatible 2022-01-08 15:40:06 +09:00
daarkmoon
614fa98211 Update grep regex when upower is used to avoid to catch 'discharging' 2022-01-08 15:40:06 +09:00
DaarkMoon
062a128cb6 plugins/battery: Correct grep regex when upower is used 2022-01-08 15:40:06 +09:00
Koichi Murase
7d8a848d2c Merge pull request #73 from RXT067:what-the-bash/code_improvements (reconstructed) 2022-01-08 15:37:04 +09:00
Koichi Murase
8780308a4f themes: Fix wrong usage of command substitutions in conditions 2022-01-08 15:34:05 +09:00
Jacob Hrbek
85211c1f76 themes/rjorgenson: Use the POSIX command substitution 2022-01-08 15:34:05 +09:00
Jacob Hrbek
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