61 Commits

Author SHA1 Message Date
827277253a lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
d76093a3df plugins/bashmarks: Use global color variables 2022-02-01 01:42:52 +09:00
8eb9fec5ed lib, themes: Resolve conflicting variables
"lib" has used the variables "red", "green", "yellow", "blue", and
"purple" for outputting logs to stdout/stderr.  On the other hand,
"themes" has used the same variables for including escape sequences in
PS1.  These two sets of variables have different values, i.e., the
latter is enclosed by '\[' and '\]' and contains escaped '\e', which
means that there have been variable conflicts.  In this commit, more
specific variables are used in these places to resolve the conflicts.
2022-02-01 01:42:52 +09:00
7ed389eafd themes: Use new color variables 2022-02-01 01:42:50 +09:00
c3bcc5c6d2 refactor: Normalize shebang of scripts to source 2022-01-15 19:00:35 +09:00
3d2b35a3eb refactor: Replace invalid shebang lines 2022-01-15 15:46:11 +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
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
fe585cd14f plugins/fasd: refactor 2021-12-28 09:27:42 +09:00
0b1a6153f9 plugins: Add fasd plugin
Fasd offers quick access to files and directories. It is inspired by
tools like autojump, z and v. Fasd keeps track of files and
directories you have accessed, so that you can quickly reference them
in the command line

This plugin sets up fasd to use safe_command_prompt handling of
oh-my-bash to avoid conflicts with fasd's normal bash prompt handling.

More information about fasd can be found here:
https://github.com/clvv/fasd.
2021-12-28 09:21:17 +09:00
56c72b87fa lib/utils: refactor "{type => _omb_util_command}_exists" 2021-12-28 08:33:07 +09:00
3f162a3466 plugins/sdkman: Add cosmetic changes 2021-12-24 23:01:09 +09:00
1eea9542ea Fix: stop SDKMAN! plugin initialisation breaking NVM 2021-12-24 23:00:50 +09:00
dde7ea6395 plugins/{goenv,pyenv}: Add cosmetic changes 2021-12-24 22:03:05 +09:00
fdc66ccc59 Update plugins/tmux-autoattach/README.md
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-24 22:03:05 +09:00
e327e66c02 removed checks and updated read me
- checks have been removed to in favor of conditional plugin loading
- .gitignore has been updated to ignore .tmp files
- main README has been updated to reflect conditional plugin loading
- tmux-autoattach plugin README has been updated to reflect
  conditional plugin loading options
2021-12-24 22:03:05 +09:00
fd7fadb2fb remove environment variable 2021-12-24 22:03:05 +09:00
21abdef636 Update plugins/tmux-autoattach/README.md
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-24 22:03:05 +09:00
6687a4bb9e Update plugins/tmux-autoattach/tmux-autoattach.plugin.sh
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-24 22:03:05 +09:00
7339f13536 updated README to reflect changes 2021-12-24 22:03:05 +09:00
dc01861a1a updated naming conventions and format based on comments 2021-12-24 22:03:05 +09:00
4f4fd5df8c added a checker for .goenv directory 2021-12-24 22:03:05 +09:00
35184a8e41 added goenv, tmux, and pyenv plugins. 2021-12-24 22:03:05 +09:00
812a8d60ef Use type_exists
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-24 21:12:50 +09:00
6c79f70891 Add plugin for zoxide 2021-12-24 21:12:50 +09:00
ae432c6185 Fix typo in sdkman plugin README 2021-12-24 20:45:35 +09:00
a656286a9b Update sdkman plugin README 2021-12-24 20:45:35 +09:00
fd6e34ea23 Update comments to match plugin 2021-12-24 20:45:35 +09:00
8cfc1403c2 Typo: Fixed 2021-12-24 20:00:20 +09:00
4db7436384 plugins/git: add git pull autostash aliases (#196) 2021-02-03 10:18:53 +07:00
89e5054152 plugins/golang: Add golang plugin for oh-my-bash (#179)
* Add golang plugin for oh-my-bash

* Add target shell
2020-10-23 12:08:05 +07:00
2d64322739 plugins: Multiple plugins implemented (#119)
* Ansible plugin added

* kubectl plugin added

* NPM Plugin added

* brew plugin added

* shebang added
2020-06-22 09:48:35 +07:00
e54736e81e plugins/ansible: Ansible plugin added (#118) 2020-06-11 15:22:07 +07:00
3ebd9b84f4 plugins: added nvm and sdkman (#150)
* feat(plugins): added sdkman plugin

* feat(plugins): added nvm plugin

* fix: fixed the codacy issues
2020-05-11 14:29:06 +07:00
682939454f plugins/git: Add git cherry-pick -s (#91)
Its useful for devs.
2020-02-17 13:59:11 +11:00
7a3a7b01d6 plugins/battery: Attempt to fix https://github.com/ohmybash/oh-my-bash/issues/68 (#104)
Fixes: https://github.com/ohmybash/oh-my-bash/issues/68
2020-02-17 13:46:33 +11:00
098e3ff368 plugins/bashmark: resolves conflict between noclobber and bashmark (#127)
Fixes #50
2020-02-12 16:46:00 +11:00
5b680bf30a Add short form of '-g' option to bashmarks plugin (#41)
Accept just a bookmark name as a short form of the '-g' option.  If just
    one arg is supplied, and it doesn't start with a dash, then it is assumed
    to be a bookmark name and _goto_bookmark is called. [ bm BOOKMARK_NAME ]
  Add a -h option to print usage info with same behavior as supplying no args
  Add echoing an error message if an unrecognized option is given, followed
    by usage info
  Augment usage info to reflect these changes and update README.md
2019-07-26 14:24:53 +07:00
53fb803740 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
2019-01-23 03:05:32 -08:00
dd83284688 Add 'bu' function to CD up faster 2018-07-25 21:47:14 -04:00
b4a5c923f7 Merge pull request #12 from MichaelAnckaert/aws-plugin
First version of AWS plugin
2018-05-26 16:42:42 +07:00
605f57ceaa Merge pull request #13 from MichaelAnckaert/git-plugin-readme
Git plugin readme
2018-05-26 16:42:22 +07:00
9b0cffde50 Merge pull request #14 from MichaelAnckaert/bashmarks-plugin-readme
Added README file for bashmarks plugin
2018-05-08 21:50:29 +07:00
95c51a49ca Fixed issue #11 2018-05-08 14:50:35 +02:00