Commit Graph

97 Commits

Author SHA1 Message Date
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 Underwood
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 MacDonald
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 <joe.macdonald@siemens.com>
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
saul365
4c7bd86a5e lib/shopt: Add support for CASE_SENSITIVE
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-02-16 10:30:40 +09:00
Koichi Murase
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 Murase
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
Askaiant
e3ecc9738c themes/luan: Define python venv as optional
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
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 Underwood
ce6e26ddee lib/bourne-shell: Add check for notify-send command prior to setting alert alias 2023-01-07 13:18:55 +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
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 Samoylenko
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
jvitorinoj
6c9ff6c538 lib/history (HIST_STAMPS): Remove unecessaries subshells
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-09-29 19:28:19 +09:00
Joao Vitorino
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
Charadon
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 <myoga.murase@gmail.com>
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
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
M
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 <myoga.murase@gmail.com>
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
solo
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
mnlwldr
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
Koichi Murase
973a8bdf30 lib/{utils,omb-prompt-colors}: Support bright color names 2022-02-01 01:43:34 +09:00
Koichi Murase
827277253a lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
Koichi Murase
411cdd05ce lib/omb-deprecate: Highlight deprecate messages 2022-02-01 01:42:52 +09:00
Koichi Murase
d76093a3df plugins/bashmarks: Use global color variables 2022-02-01 01:42:52 +09:00
Koichi Murase
f9ccb2cb12 lib/spectrum: Fix a bug that "spectrum_{ls,bls}" does not work 2022-02-01 01:42:52 +09:00
Koichi Murase
27f82bbbad lib/spinner: Update example 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
d0e61d2261 lib/omb-prompt-*: Adjust conflicts and dependencies 2022-02-01 01:30:06 +09:00