104 Commits

Author SHA1 Message Date
d2163a6b49 lib/nvm: Update autoloader to keep up with the upstream (#506)
Fixes https://github.com/ohmybash/oh-my-bash/issues/504
2023-12-12 13:36:17 +09:00
e2917d67fb plugins/bashmarks: Fix bashmarks completion (#491)
Make it work for bm without any arguments
2023-11-18 23:16:56 +09:00
53d2ae5171 plugins/bashmarks: Describe the configuration BASHMARK_SDIRS 2023-10-12 19:07:02 +09:00
337a29d224 plugins/bashmarks: Format README 2023-10-12 19:07:02 +09:00
f161382de7 plugins/bashmarks: Refactor function names and variable names 2023-10-12 19:07:02 +09:00
1eacdc7118 plugins/bashmarks: Fix completion for bash 2023-10-12 15:46:28 +09:00
5f57d4c1b2 plugins/bashmarks: Fix coding styles 2023-10-12 15:42:14 +09:00
e39f8a561c plugins/bashmarks: Apply changes from upstream 2023-10-12 15:26:27 +09:00
4eeb20046d plugins/bashmarks: Change indentation 2023-10-12 15:21:51 +09:00
0ff46f6d32 plugins/bashmarks: Fix licensing issue 2023-10-12 15:20:52 +09:00
8b095ff102 plugins/git: Update aliases from OMZ 2023-10-08 20:04:14 +09:00
2a3bb9c722 plugins/git: Add alias gbsc='git branch --show-current' 2023-10-08 18:40:05 +09:00
72b8e67139 feat: Add {completions,plugins}/chezmoi (#477) 2023-09-23 18:00:15 +09:00
8e785b1ba1 plugins/git: Add git worktree aliases (#455)
* feat: added git worktree aliases
* feat: updated alias
* feat: update to use common alias name

---------

Co-authored-by: rbevin777 <rbevin7@gmail.com>
2023-07-20 07:03:44 +09:00
bd7b301f64 feat(git.plugin): adding alias to open predefined difftool
Useful for visual side by side diff VIA external difftool. Here is an example for meld: https://stackoverflow.com/questions/2006032/view-differences-of-branches-with-meld
2023-05-13 23:39:40 -07:00
5cd1f0eb16 style: Remove trailing whitespace and add missing final newlines 2023-04-16 17:43:09 +09:00
11ab9e17ea plugins/sudo: Add toggle support (#434) 2023-04-10 09:27:04 +09:00
02df6627ae Merge pull request #186 from DTan13/plugins/battery 2023-04-08 15:05:40 -07:00
8be2e7f13e battery.plugin: Refactor 2023-04-09 00:27:34 +09:00
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
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
4ad3482985 plugins/sudo: Add keybindings following OMZ 2023-04-09 00:07:34 +09:00
47852f487f plugins: Add plugin "sudo" 2023-04-09 00:04:00 +09:00
1fb516dfe2 plugins/git: Prefix "command" to git aliases 2023-04-05 10:52:30 +09:00
a35e10c498 feat(git.plugin): adding alias to remove a local branch 2023-02-26 06:31:13 -08:00
59f6ef145b global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
496ba61749 plugins: Add "gcloud" plugin (#386)
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-02-05 22:24:25 +09:00
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
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
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
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
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
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
1c4685895d plugins: import "xterm" from Bash-it 2022-10-02 11:18:34 +09:00
80a2551f06 themes: Add "absimple" 2022-10-02 11:18:34 +09:00
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
8c4b4a0824 plugins/vagrant: Ajdust styles 2022-07-14 06:04:13 +09:00
7f5d85f031 Feature to connect over vagrant servers
Fix in Ansible plugin description
2022-07-13 22:34:15 +02:00
4866624f79 plugins/vagrant: Add style changes 2022-07-08 05:29:33 +09:00
94e5f0f13a plugins: Add vagrant plugin for OMB 2022-07-08 05:29:33 +09:00
cb3d338a0e plugins/tmux-autoattach: Add memorandum about the background of option "-s0" 2022-06-20 13:58:31 +09:00
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
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