Commit Graph

88 Commits

Author SHA1 Message Date
Dheison Gomes
11ab9e17ea plugins/sudo: Add toggle support (#434) 2023-04-10 09:27:04 +09:00
Koichi Murase
02df6627ae Merge pull request #186 from DTan13/plugins/battery 2023-04-08 15:05:40 -07:00
Koichi Murase
8be2e7f13e battery.plugin: Refactor 2023-04-09 00:27:34 +09:00
Dhananjay Tanpure
9875246872 plugins/battery: Get battery capacity by /sys/class/power_supply
Reference:- https://www.kernel.org/doc/html/latest/admin-guide/abi-testing.html?#abi-sys-class-power-supply-supply-name-capacity

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-04-09 00:25:51 +09:00
Dhananjay Tanpure
ca95a7f8a1 plugins/battery: Get adapter status by /sys/class/power_supply
Reference:- https://www.kernel.org/doc/html/latest/admin-guide/abi-testing.html?#abi-sys-class-power-supply-supply-name-online

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-04-09 00:25:32 +09:00
Koichi Murase
4ad3482985 plugins/sudo: Add keybindings following OMZ 2023-04-09 00:07:34 +09:00
Victor Munoz
47852f487f plugins: Add plugin "sudo" 2023-04-09 00:04:00 +09:00
Koichi Murase
1fb516dfe2 plugins/git: Prefix "command" to git aliases 2023-04-05 10:52:30 +09:00
Tal Lederman
a35e10c498 feat(git.plugin): adding alias to remove a local branch 2023-02-26 06:31:13 -08:00
Koichi Murase
59f6ef145b global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
nino Cangialosi
496ba61749 plugins: Add "gcloud" plugin (#386)
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-02-05 22:24:25 +09:00
thetombla
60332ed8fb plugins/xterm: Fix xterm plugin to make it work (#378)
* fixes in xterm plugin to make it work
* add missing operator and default xterm title
2022-12-11 11:15:34 +09:00
Andrea Ghensi
16da2bdc54 plugins/nvm: Fix docs, clean up code, and add license
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-12-05 07:29:55 +09:00
Andrea Ghensi
fadaaa1263 plugins/nvm: Add nvmrc autoload option
Fixes https://github.com/ohmybash/oh-my-bash/pull/371
2022-12-05 07:29:34 +09:00
nmarghetti
6fd237c363 tools/install,etc: Add quote around path variables to handle case with space in $HOME or $OSH 2022-10-07 19:47:03 +09:00
Koichi Murase
9ac2a92906 plugins/xterm: Refactor
* plugins/xterm: Add header line as an OMB plugin
* plugins/xterm: Add link to the upstream version
* plugins/xterm: Add the list of the configuration variables
* plugins/xterm: Do not rely on the function "cite"
* plugins/xterm: Add dependency to bash-preexec
* plugins/xterm: Use "function func" to avoid aliasing
* plugins/xterm: Namespacing function names
* plugins/xterm: Namespacing configuration variables
* plugins/xterm (_omb_plugin_xterm_set_title): Avoid expanding escapes in directory names, etc.
* plugins/xterm: Always enable precmd/preexec because the plugin should be enabled by the users' decision
* plugins/xterm: Do no unneccessarily add braces around ${var}
* plugins/xterm: Do no uneccessarily quote words
* plugins/xterm: Add README
2022-10-07 19:35:58 +09:00
Koichi Murase
4026ab6380 plugins/bash-preexec: Add loader
* plugins/bash-preexec: Add loader
* plugins/bash-preexec/README: Fix description
2022-10-02 11:21:06 +09:00
import
1c4685895d plugins: import "xterm" from Bash-it 2022-10-02 11:18:34 +09:00
aueoiae
80a2551f06 themes: Add "absimple" 2022-10-02 11:18:34 +09:00
Koichi Murase
2202aeeb04 Refactor "{type => _omb_util_command_exists}" 2022-08-23 18:09:50 +09:00
M
de66a70f91 Refactor "{ => _omb_util_}command_exists"
https://github.com/ohmybash/oh-my-bash/pull/239#issuecomment-1007886245

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-08-23 18:09:50 +09:00
Koichi Murase
8c4b4a0824 plugins/vagrant: Ajdust styles 2022-07-14 06:04:13 +09:00
Enzo Arroyo
7f5d85f031 Feature to connect over vagrant servers
Fix in Ansible plugin description
2022-07-13 22:34:15 +02:00
Koichi Murase
4866624f79 plugins/vagrant: Add style changes 2022-07-08 05:29:33 +09:00
Enzo Arroyo
94e5f0f13a plugins: Add vagrant plugin for OMB 2022-07-08 05:29:33 +09:00
Koichi Murase
cb3d338a0e plugins/tmux-autoattach: Add memorandum about the background of option "-s0" 2022-06-20 13:58:31 +09:00
Phillip Ledger
fb978ce75e plugins/tmux-autoattach: Automatically attach to session 0 by default
this corrects the plugin not connecting back to the session by default
2022-06-20 13:50:50 +09:00
Koichi Murase
827277253a lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
Koichi Murase
d76093a3df plugins/bashmarks: Use global color variables 2022-02-01 01:42:52 +09:00
Koichi Murase
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
Koichi Murase
7ed389eafd themes: Use new color variables 2022-02-01 01:42:50 +09:00
Koichi Murase
c3bcc5c6d2 refactor: Normalize shebang of scripts to source 2022-01-15 19:00:35 +09:00
Koichi Murase
3d2b35a3eb refactor: Replace invalid shebang lines 2022-01-15 15:46:11 +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
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
fe585cd14f plugins/fasd: refactor 2021-12-28 09:27:42 +09:00
Erwin Jansen
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
Koichi Murase
56c72b87fa lib/utils: refactor "{type => _omb_util_command}_exists" 2021-12-28 08:33:07 +09:00
Koichi Murase
3f162a3466 plugins/sdkman: Add cosmetic changes 2021-12-24 23:01:09 +09:00
Andre Greeff
1eea9542ea Fix: stop SDKMAN! plugin initialisation breaking NVM 2021-12-24 23:00:50 +09:00
Koichi Murase
dde7ea6395 plugins/{goenv,pyenv}: Add cosmetic changes 2021-12-24 22:03:05 +09:00
chopnico
fdc66ccc59 Update plugins/tmux-autoattach/README.md
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-24 22:03:05 +09:00
Wes Key
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
Wes Key
fd7fadb2fb remove environment variable 2021-12-24 22:03:05 +09:00