Koichi Murase
0d9a9fd73a
lib/history: remove redundant export for HISTIGNORE ( #501 )
...
There does not seem to be no specific reason that we export HISTIGNORE
[1]. These lines were introduced in commit 53fb8037
but only
HISTIGNORE had `export'.
[1] https://github.com/ohmybash/oh-my-bash/discussions/500#discussioncomment-7676355
2023-12-11 07:00:35 +09:00
Koichi Murase
9b244fe81e
lib/omb-deprecate: Fix "_omb_deprecate_declare" outputting varname
...
Reported-By: Matt Faucher (@mattfaucher on GitHub)
1dfbd39fd6 (commitcomment-130420417)
2023-10-20 07:56:30 +09:00
Koichi Murase
1dfbd39fd6
lib/git: Refactor "POST_1_7_2_GIT => _omb_git_post_1_7_2"
2023-10-14 17:20:57 +09:00
Koichi Murase
f089d15d23
lib/git: Fix coding styles
2023-10-14 16:44:45 +09:00
Koichi Murase
948ffe786f
lib/git: Change indentation
2023-10-14 16:44:45 +09:00
Koichi Murase
027d86ef94
lib/git(git_prompt_status): Avoid zsh constructs
2023-10-14 16:44:45 +09:00
Koichi Murase
96fe141c02
lib/utils: Add "_omb_util_split"
2023-10-14 16:44:45 +09:00
Koichi Murase
c93f897794
global(git): Call git for prompt through an interface function
2023-10-14 16:44:45 +09:00
Koichi Murase
6db4c4792b
lib/git: Comment out an overwritten function
2023-10-14 16:44:45 +09:00
Koichi Murase
3da4bf6431
completions/{ssh,rake,capistrano}: Do not rewrite COMP_WORDBREAKS
...
Fix https://github.com/ohmybash/oh-my-bash/issues/471
2023-10-01 04:51:02 +09:00
Koichi Murase
24bd7e71ad
lib/directories (cd): do not use pushd/DIRSTACK by default
...
https://github.com/ohmybash/oh-my-bash/pull/450
2023-09-25 01:10:02 +09:00
Andrei Bulgakov
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
Joe MacDonald
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
Koichi Murase
dd7807fcd2
Merge pull request #432 from fox-forks/quoting
...
fix: Quoting
2023-05-13 23:42:32 -07:00
Edwin Kofler
0c07172c02
fix: Fix quoting
...
Co-authored-by: Koichi Muarse <myoga.murase@gmail.com >
2023-04-16 18:23:22 +09:00
Koichi Murase
475a563280
feat(lib/utils): Add "_omb_util_split"
2023-04-16 18:23:15 +09:00
Edwin Kofler
5cd1f0eb16
style: Remove trailing whitespace and add missing final newlines
2023-04-16 17:43:09 +09:00
Koichi Murase
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
Koichi Murase
e99fac816a
Merge pull request #132 from ngaro/fixls
...
lib/theme-and-appearance: Fix broken ls-colors
2023-04-09 14:24:39 -07:00
David Dreggors
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
Nikolas Garofil
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
Koichi Murase
681daf84e7
lib/util: Add "_omb_util_alias_delayed"
2023-04-09 23:21:56 +09:00
Koichi Murase
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
Chai Feng
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
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 Thomas
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 Richter
1187cb1f16
lib/history: Fix broken link in comments ( #425 )
2023-04-04 20:15:10 +09:00
Marc Richter
0fd6cab041
lib/history: Removed redundant shopt command (histappend) ( #426 )
2023-04-04 20:14:44 +09:00
Marc Richter
78da2ce84d
Removing redundant HISTIGNORE patterns
2023-04-04 04:13:43 -07:00
hiagofranco
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 <myoga.murase@gmail.com >
2023-04-04 20:12:42 +09:00
Edwin Kofler
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 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