106 Commits
Author SHA1 Message Date
Koichi Murase 1453db64c8 global: Use "command" to run "hg" 2023-04-05 10:35:13 +09:00
Koichi Murase 897876eae1 global: Use "command" to run "git" and "svn" 2023-04-05 10:35:11 +09:00
Reuben ThomasandKoichi Murase 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
Marc RichterandGitHub 1187cb1f16 lib/history: Fix broken link in comments (#425) 2023-04-04 20:15:10 +09:00
Marc RichterandGitHub 0fd6cab041 lib/history: Removed redundant shopt command (histappend) (#426) 2023-04-04 20:14:44 +09:00
Marc RichterandKoichi Murase 78da2ce84d Removing redundant HISTIGNORE patterns 2023-04-04 04:13:43 -07:00
3d14c374b9 omb-prompt-base: Add "." to git branch whitelist (#420)
* omb-prompt-base: Add "." to git branch whitelist

Add "." to git branch character whitelist to fix branches
like v6.0 or 5.4.2, as examples.

* Update lib/omb-prompt-base.sh

Co-authored-by: Koichi Murase <[email protected]>
2023-04-04 20:12:42 +09:00
Edwin KoflerandGitHub 80b4974044 fix: Small syntax improvements (#424) 2023-04-02 03:02:29 +09:00
Koichi Murase eb1ea3ee19 lib/utils (_omb_util_glob_expand): Fix shopt restoration failure (fixup f6d6dcc, fix #416)
https://github.com/ohmybash/oh-my-bash/issues/416
2023-03-13 19:00:10 +09:00
Koichi Murase f6d6dccfa1 lib/utils (_omb_util_glob_expand): Avoid variable name conflicts 2023-03-13 00:10:02 +09:00
Koichi Murase aed5238cad lib/shopt: Revert the meaning "OMB_HYPHEN_{IN => }SENSITIVE" 2023-03-03 09:55:20 +09:00
Seth UnderwoodandKoichi Murase d76bd709d0 lib/shopt: Allow CASE_SENSITIVE and HYPHEN_INSENSITIVE to work as documented
Adjusted shopt.sh to use CASE_SENSITIVE and HYPHEN_INSENSITIVE
variables to affect completion.

Note: this changes the old default hyphen insensitive completion
behavior. The user will need to set HYPHEN_INSENSITIVE="true" to have
the old default behavior.
2023-03-03 09:55:20 +09:00
Joe MacDonaldandGitHub 3a26319b9e lib/shopt: tweak OMB_CASE_SENSITIVE handling in shopt (#399)
The CASE_SENSITIVE setting is checked when setting case-insensitive
globbing but not matching (for features such as command / programmable
completion).  Add checks in the appropriate places, preserving the default
(insensitive) behaviour unless explicitly changed.

This will allow case-sensitivity to apply in an intuitive way, treating
paths, filename completions and command completions consistently.

Signed-off-by: Joe MacDonald <[email protected]>
2023-02-24 00:06:09 +09:00
Koichi Murase 1fdb9d035c lib/omb-prompt-base: Fix _Omb_prompt_get_condaenv 2023-02-20 22:40:07 +09:00
Koichi Murase 5c541b0e69 lib/shopt: Refactor "{ => OMB_}CASE_SENSITIVE" 2023-02-16 10:30:59 +09:00
saul365andKoichi Murase 4c7bd86a5e lib/shopt: Add support for CASE_SENSITIVE
Co-authored-by: Koichi Murase <[email protected]>
2023-02-16 10:30:40 +09:00
Koichi MuraseandGitHub 1288ba3c06 Merge pull request #373 from walidabualafia/conda-prompt
themes/sexy: Display Python virtual environments and refactor
2023-02-15 17:00:24 -08:00
Koichi MuraseandGitHub 5d3cd356cc Merge pull request #384 from underwoo/no-notify-send-check
- lib/bourne-shell: Add check for notify-send command prior to setting alert alias
- aliases/misc: Do not assume the absolute path of executables
- aliases/misc: Check the existence of executables for aliases
- aliases/misc: Add source information
2023-02-12 04:23:58 -08:00
Koichi Murase 114d1045a5 themes/sexy: Use OMB prompt colors 2023-02-12 17:04:12 +09:00
Koichi Murase 55a31c6b96 themes/sexy: Support OMB_PROMPT_SHOW_PYTHON_VENV 2023-02-12 17:02:34 +09:00
Koichi Murase 7a54475d48 themes: Specify default OMB_PROMPT_SHOW_PYTHON_VENV for each theme 2023-02-11 23:10:07 +09:00
AskaiantandKoichi Murase e3ecc9738c themes/luan: Define python venv as optional
Co-authored-by: Koichi Murase <[email protected]>
2023-02-11 23:06:43 +09:00
Koichi Murase 59f6ef145b global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
Koichi Murase 0368b46c61 lib/base: Change indentation 2023-02-10 00:31:17 +09:00
Seth UnderwoodandKoichi Murase ce6e26ddee lib/bourne-shell: Add check for notify-send command prior to setting alert alias 2023-01-07 13:18:55 +09:00
nmarghettiandKoichi Murase 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 MuraseandGitHub 6cf681027f Merge pull request #215 from ruslan-sem/patch-1
lib/functions: Update "alias_value"
2022-10-07 19:27:04 +09:00
Koichi Murase 158a906c57 lib/functions (alias_value): Fix small issues and support bash-3 2022-09-29 19:58:41 +09:00
Ruslan SamoylenkoandKoichi Murase 074c311073 lib/functions: Update alias_value
Fix function alias_value()
2022-09-29 19:58:32 +09:00
Koichi Murase d830c75431 lib/history (HIST_STAMPS): do not enclose within [...] by default 2022-09-29 19:35:34 +09:00
Koichi Murase 5a7a9e3c65 lib/history (HIST_STAMPS): Adjust format 2022-09-29 19:28:19 +09:00
jvitorinojandKoichi Murase 6c9ff6c538 lib/history (HIST_STAMPS): Remove unecessaries subshells
Co-authored-by: Koichi Murase <[email protected]>
2022-09-29 19:28:19 +09:00
Joao VitorinoandKoichi Murase 8a96cc45c6 lib/history (HIST_STAMPS): Make it work and add color 2022-09-29 19:27:57 +09:00
Koichi Murase 20cbf8d226 lib/grep, etc: avoid obsolete egrep/fgrep
https://github.com/Bash-it/bash-it/issues/2163
2022-09-29 18:25:11 +09:00
CharadonandKoichi Murase ea20d4cd81 lib/omb-prompt-base: Fix unbound variable error
The variable `git_status_flags` was not declared in the function
`git_prompt_vars`, so if `set -u` was set in bashrc, it would give
unbound variable error constantly with `set -u`.

Co-authored-by: Koichi Murase <[email protected]>
2022-09-29 18:12:22 +09:00
Koichi Murase 2202aeeb04 Refactor "{type => _omb_util_command_exists}" 2022-08-23 18:09:50 +09:00
MandKoichi Murase de66a70f91 Refactor "{ => _omb_util_}command_exists"
https://github.com/ohmybash/oh-my-bash/pull/239#issuecomment-1007886245

Co-authored-by: Koichi Murase <[email protected]>
2022-08-23 18:09:50 +09:00
MandKoichi Murase 4fb778c405 Refactor "{{which,command -v} => _omb_util_{binary,command}_exists}"
`which` has been deprecated in Debian (at least, the rolling release
installed on chromebooks via Linux Containers)

https://github.com/ohmybash/oh-my-bash/pull/239#issuecomment-1000974461

Co-authored-by: Koichi Murase <[email protected]>
2022-08-23 18:09:16 +09:00
Koichi Murase 91b36b48a7 aliases/general (cp,mv,mkdir): check the support for non-POSIX "-v"
https://github.com/ohmybash/oh-my-bash/issues/351
2022-08-23 13:58:49 +09:00
Koichi Murase 4309b4ec4b lib/base,aliases/general: add copyright information 2022-08-23 11:38:26 +09:00
Koichi Murase e7ca92bde1 lib/grep: Fix the alias names for egrep/fgrep 2022-07-14 22:13:13 +09:00
Koichi Murase 3e441aa00b lib/bourne-shell: Remove duplicate aliases 2022-07-03 13:28:58 +09:00
Koichi Murase 0fe8c0bf0d lib: support OMB_DEFAULT_ALIASES to control the alias overriding 2022-07-03 13:28:58 +09:00
soloandKoichi Murase ce1c03f5a0 lib/bourne-shell: Do not override user-defined aliases (Fix #304)
Fixes #304 by checking if the alias already exists before applying it.
2022-07-03 12:48:44 +09:00
Koichi Murase 1272a39800 lib/history: Remove the limit of the history sizes 2022-06-23 11:03:37 +09:00
Koichi Murase a9859427fd lib/utils (_omb_util_prompt_command_hook): Preserve $? 2022-06-20 14:19:46 +09:00
Koichi Murase a2944b91d8 lib/spectrum: fix up ed5a250 2022-04-21 20:59:02 +09:00
Koichi Murase ed5a250baa lib/spectrum: add workaround for global associative arrays in bash-4.0..4.1 2022-04-21 10:14:58 +09:00
mnlwldrandKoichi Murase 177864fc5c Added the possibility to have an own .bashrc.local 2022-03-25 17:47:00 +09:00
Koichi Murase a8971e3c7d lib/readlink: Add "_omb_util_readlink" 2022-02-05 21:08:00 +09:00