470 Commits

Author SHA1 Message Date
5b0e804c6b tools/uninstall: Pass -v to unset to avoid ambiguity
`unset -v` is standardized in POSIX.
2023-08-01 17:42:28 +09:00
06b459e81f tools/uninstall: Fix uninstall confirmation in non-Bash 2023-08-01 17:42:28 +09:00
9c9c92bf31 themes/agnoster : Detect and show pyenv information (#458)
- if pyenv is not initialized, fall back to the virtualenv detection
 - when pyenv is set to a version other than "system", show the version number
 - when pyenv is in virtulenv mode, also display the virtualenv's name

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-07-26 17:44:51 +09:00
a75f284ceb aliases/package-manager: Add DNF (dandified yum) aliases (#459) 2023-07-26 08:44:56 +09:00
d2d780bbcf themes/kitsune: Fix variable name for python virtual env (#457) 2023-07-25 05:50:20 +09:00
5605047f48 themes/kitsune: Add python venv 2023-07-24 06:23:11 +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
117e203d38 Add variable to disable consideration repos with untracked files as dirty (#444)
Add `SCM_GIT_DISABLE_UNTRACKED_DIRTY="true"` setting for
`lib/omb-prompt-base.sh`.

Add this variable as well as `SCM_GIT_IGNORE_UNTRACKED` into the
`.bashrc` template.
2023-06-09 06:17:17 +09:00
e91797d914 omb-prompt-base: do not attempt to process git vars outside a git tree (#443)
Signed-off-by: Joe MacDonald <joe.macdonald@siemens.com>
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-05-24 06:35:31 +09:00
dd7807fcd2 Merge pull request #432 from fox-forks/quoting
fix: Quoting
2023-05-13 23:42:32 -07: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
6d62b33e6e themes: Add new theme "powerline-light" (#436)
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-04-21 08:59:43 +09:00
255bacacb5 Merge pull request #433 from hyperupcall/whitespace
style: Remove trailing whitespace and missing final newlines
2023-04-17 05:32:30 -07:00
2960ba971f fix(completions/django): Apply upstream changes
e535da6865
34057730a5
4af88ccbe6
2ee1e1a174
5708327c37
90c59b4e12
2023-04-16 18:24:07 +09:00
3a5b36d614 fix(completions/django): Check Existence of binary 2023-04-16 18:24:00 +09:00
7965543018 style(completions/django): Fix style 2023-04-16 18:23:25 +09:00
0c07172c02 fix: Fix quoting
Co-authored-by: Koichi Muarse <myoga.murase@gmail.com>
2023-04-16 18:23:22 +09:00
475a563280 feat(lib/utils): Add "_omb_util_split" 2023-04-16 18:23:15 +09:00
558cda242d ci: Add disable flags 2023-04-16 17:48:38 +09:00
4f07c58c2c chore: Add .git-blame-ignore-revs 2023-04-16 17:48:38 +09:00
6fe0adcc0a style(tools/uninstall): Correctly restore IFS
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-04-16 17:48:22 +09:00
5cd1f0eb16 style: Remove trailing whitespace and add missing final newlines 2023-04-16 17:43:09 +09:00
3608cd8e4e style: Add formatting rules and action 2023-04-16 17:32:53 +09:00
11ab9e17ea plugins/sudo: Add toggle support (#434) 2023-04-10 09:27:04 +09:00
b5228038b9 Merge pull request #105 from chaifeng/directories-cd-function
lib/directories: Add `cd` function, a clone of Zsh cd builtin command
2023-04-09 14:25:11 -07:00
e99fac816a Merge pull request #132 from ngaro/fixls
lib/theme-and-appearance: Fix broken ls-colors
2023-04-09 14:24:39 -07:00
bea5dc9406 lib, themes: Preserve users' PROMPT_DIRTRIM
These changes in "themes/{agnoster,roderik,vscode}.sh" and "lib/shopt.sh" will
allow a user to set the PROMPT_DIRTRIM variable in their .bashrc and change the
prompt path length.

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-04-09 14:23:23 -07:00
01c9ce00d2 lib/bourne-shell: Switch ls color option based on implementation
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-04-09 23:22:26 +09:00
681daf84e7 lib/util: Add "_omb_util_alias_delayed" 2023-04-09 23:21:56 +09:00
dd20d586da lib/directories (cd): Refactor
* lib/directories (cd): Adjust style of `cd` function
* lib/directories (cd): Use regex to match integers
* lib/directories (cd): Use _omb_util_alias to replace cd
* lib/directories (cd): Update the function description
2023-04-09 22:16:35 +09:00
618aa82460 lib/directories: Add cd function, a clone of Zsh cd builtin command
* Fix, the `~` in the first item of `DIRSTACK` may not be expanded in Cygwin
  Bash
2023-04-09 22:16:12 +09:00
02df6627ae Merge pull request #186 from DTan13/plugins/battery 2023-04-08 15:05:40 -07:00
b15ef2ddb8 Merge pull request #418 from vicmunoz/sudo_plugin
- plugins: Add plugin "sudo"
- plugins/sudo: Add keybindings following OMZ
2023-04-08 15:00:20 -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
0e9f0e7e7c aliases/general: Avoid using bash-4.0 feature |& 2023-04-06 11:46:04 +09:00
08d019bd10 Merge pull request #430 from mihir3445/master
The `agnoster` theme out of the box reports "command not found"
2023-04-05 01:56:45 -07:00
d7993748b0 themes/doubletime: Fix "command not found" error caused by #118 (Fix #429)
This is a regression by PR #118 on GitHub [1].

[1] https://github.com/ohmybash/oh-my-bash/pull/118.
2023-04-05 15:24:35 +09:00
aabc172d7a themes/agnoster: Fix "command not found" error caused by #118 (Fix #429)
This is a regression by PR #118 on GitHub [1].  `git_status_dirty` and
`git_stash_dirty` are functions and not external commands.

[1] https://github.com/ohmybash/oh-my-bash/pull/118
2023-04-05 15:22:33 +09:00
9b8173c984 Merge pull request #181 from rrthomas/fix-git-using-command
base.theme.sh: use “command” to run git and svn everywhere
2023-04-04 18:56:57 -07:00
1fb516dfe2 plugins/git: Prefix "command" to git aliases 2023-04-05 10:52:30 +09:00
1453db64c8 global: Use "command" to run "hg" 2023-04-05 10:35:13 +09:00
897876eae1 global: Use "command" to run "git" and "svn" 2023-04-05 10:35:11 +09:00
d3e6411f54 lib/omb-prompt-base: Use "command" to run git and svn everywhere
This was largely done correctly, but several invocations of “git” were not
done with “command”. This means that they could pick up aliases for git,
such as “hub” or “lab”, which would still work, but (especially with “lab”)
make things really slow.
2023-04-05 10:30:39 +09:00
1187cb1f16 lib/history: Fix broken link in comments (#425) 2023-04-04 20:15:10 +09:00
0fd6cab041 lib/history: Removed redundant shopt command (histappend) (#426) 2023-04-04 20:14:44 +09:00
78da2ce84d Removing redundant HISTIGNORE patterns 2023-04-04 04:13:43 -07:00