406 Commits

Author SHA1 Message Date
a35e10c498 feat(git.plugin): adding alias to remove a local branch 2023-02-26 06:31:13 -08:00
ebd541c987 tools/install: Fix a bug that the template files is moved 2023-02-26 00:40:15 +09:00
81f3983c1c completions: Add completion files for OpenShift/K8s tools (#404)
Including: crc, oc, tkn, helm
2023-02-25 20:06:00 +09:00
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
8531e1ba3c Merge pull request #401 from akinomyoga/agnoster2021
themes/agnoster: Incorporate recent changes of the upstream and refactor
2023-02-22 20:40:39 -08:00
5e22c1a213 Merge pull request #400 from ohmybash/gh372
themes/rr: Add Python virtual environments
2023-02-22 20:39:20 -08:00
99763849a1 tools/uninstall: Make the uninstall script POSIX compliant 2023-02-22 22:15:20 +09:00
773efb25e0 tools/upgrade: Apply the same changes as "tools/install.sh" 2023-02-22 22:12:13 +09:00
46ee30ced3 tools: Make the style of conditional command more consistent 2023-02-22 22:12:13 +09:00
8b8a3b31e0 tools: Apply ShellCheck to files in the tools directory (#402)
* Add `.shellcheckrc`
* Apply ShellCheck to `tools/check_for_upgrade.sh`
* Apply ShellCheck to `tools/uninstall.sh`
* Apply ShellCheck to `tools/install.sh`

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-02-22 21:43:37 +09:00
1fdb9d035c lib/omb-prompt-base: Fix _Omb_prompt_get_condaenv 2023-02-20 22:40:07 +09:00
fb0dfe4400 Merge pull request #387 from AhmadMWaddah/master
themes/axin: Show Virtual Env
2023-02-19 17:32:23 -08:00
f085e5718d themes/agnoster: Refactor the new codes 2023-02-16 16:35:59 +09:00
a6b655b136 themes/agnoster: Change indentation 2023-02-16 16:35:59 +09:00
8c2f1d5049 themes/agnoster: Incorporate recent changes of the upstream
5c79b669bc...1165d1b3f1
2023-02-16 16:35:59 +09:00
3d426eb926 themes/agnoster: Add proper copyright notices 2023-02-16 16:07:59 +09:00
26f48b030d themes/rr: Refactor using OMB_PROMPT_VIRTUALENV_FORMAT 2023-02-16 14:32:59 +09:00
c6b9984014 themes/rr: Change indentation 2023-02-16 14:29:18 +09:00
dd7c825762 themes/rr: Add Python virtual environments
https://github.com/ohmybash/oh-my-bash/issues/372#issuecomment-1325678142
2023-02-16 14:12:28 +09:00
acc2cc81b4 themes/axin: Apply a style to the Python virtual environments in prompt
- themes/axin: Add Python Virtual Environment Name before terminal
  Prompt for developers when Virtual Environment is activated.
- themes/axin: Rebase on top of the master, where Python virtual
  environments are already added in the promopt.  This PR effectively
  just changes the style, which I tentatively copied from
  plugins/sexy.
2023-02-16 14:05:46 +09:00
58ca182422 Merge pull request #180 from saul365/master
lib/shopt: Add support for CASE_SENSITIVE
2023-02-15 17:36:31 -08:00
5c541b0e69 lib/shopt: Refactor "{ => OMB_}CASE_SENSITIVE" 2023-02-16 10:30:59 +09:00
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
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
797da91d75 Merge pull request #335 from juanswan13/patch-1
themes/sirup: Show Python virtual environments
2023-02-15 16:58:46 -08:00
9d52d10a6e Merge pull request #282 from KimBioInfoStudio/kim/add_conda_env_2_themes_agnoster
themes/agnoster: Add condaenv in prompt and refactor
2023-02-15 16:57:30 -08:00
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
6984032275 themes/axin: Support OMB_PROMPT_SHOW_PYTHON_VENV 2023-02-12 17:04:33 +09:00
114d1045a5 themes/sexy: Use OMB prompt colors 2023-02-12 17:04:12 +09:00
55a31c6b96 themes/sexy: Support OMB_PROMPT_SHOW_PYTHON_VENV 2023-02-12 17:02:34 +09:00
6e7a306d3e themes/sexy: Refactor coding styles
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-02-12 16:25:25 +09:00
836c888699 themes/sexy: Add the active conda environment's name to PS1
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-02-12 16:03:00 +09:00
71d9a1b7da themes/sirup: Move segment "python_venv" next to segment "ruby_gem" 2023-02-12 15:42:00 +09:00
b991b94cab themes/sirup: Support OMB_PROMPT_SHOW_PYTHON_VENV 2023-02-12 15:36:06 +09:00
09d7b5a639 themes/sirup: Use an existing utility for python_venv 2023-02-12 15:36:06 +09:00
937cbbb8a5 themes/sirup: Show VirtualEnv
Added the ability to show the current Virtual Env when using Python Virtual Env.
If there's not vitual env, the theme works normal.
2023-02-12 15:36:06 +09:00
2d51ceacb0 themes/absimple: Reuse codes from the "agnoster" theme 2023-02-12 15:13:29 +09:00
ec88f62aa3 themes/agnoster: Refactor prompt_{virtual,conda}env 2023-02-12 14:50:58 +09:00
f52e91e119 themes/agnoster: Support OMB_PROMPT_SHOW_PYTHON_VENV 2023-02-12 14:33:25 +09:00
cf2a130624 themes/agnoster: Add condaenv prompt
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2023-02-12 14:23:46 +09:00
867d1e6336 Merge pull request #394 from Askaiant/python-venv
Add OMB_THEME_SHOW_PYTHON_VENV
2023-02-11 21:19:31 -08:00
096ff01f40 themes/luan: Move python_venv next to ruby_env 2023-02-11 23:10:07 +09:00
0ab6594e92 themes/luan: Disable the python venv by default 2023-02-11 23:10:07 +09:00
d0ea8378a0 themes/luan: Refactor the prompt codes 2023-02-11 23:10:07 +09:00
7a54475d48 themes: Specify default OMB_PROMPT_SHOW_PYTHON_VENV for each theme 2023-02-11 23:10:07 +09:00
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
59f6ef145b global: Switch the function-declarations to avoid unexpected alias expansions 2023-02-10 00:38:56 +09:00
0368b46c61 lib/base: Change indentation 2023-02-10 00:31:17 +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
f6597af711 tools/install: create "~/.bash_profile" if it doesn't exist 2023-02-05 22:14:03 +09:00