199 Commits

Author SHA1 Message Date
ff9dd81628 oh-my-bash: Remove ineffective "fpath" initialization
"fpath" array is the feature of Zsh, to which there are no equivalent
in Bash.  Also, the current initialization code for "fpath" is broken;
$fpath is not expanded to the array elements but to the 0-th element
in Bash, so that only the last two paths are retained in the "fpath"
array.  Actually, oh-my-bash currently does not have any "fpath"
functions, so we can just safely remove the initialization code for
"fpath".

In case that some external scripts use the existing functions for
"fpath" initialization, we move the functions to
"lib/omb-deprecated.sh".
2022-01-01 07:40:35 +09:00
6c01437e90 Merge pull request #269 from akinomyoga/update-contributing
Update CONTRIBUTING.md
2022-01-01 07:36:06 +09:00
3d3fa613aa Merge pull request #278 from memduhcagridemir/master
Add half-life theme inspired from oh-my-zsh
2022-01-01 07:30:44 +09:00
744489eb5b themes/half-way: Adjust coding styles 2021-12-30 22:01:14 +09:00
c58321b9e6 themes/half-way: Apply review comments 2021-12-30 21:55:06 +09:00
dbc3db03f3 themes: Add "half-life" theme 2021-12-30 21:54:58 +09:00
f647fb4c30 Merge pull request #214 from akinomyoga/fix-install-script
Fix install script for #213
2021-12-29 09:08:53 +09:00
5421f3a342 tools/install: Update the Bash-version check 2021-12-29 09:02:42 +09:00
703e2864d4 tools/install: Use condtional command 2021-12-29 09:02:39 +09:00
c22b97e09a tools/{,un}install: Quote arguments properly 2021-12-29 09:02:36 +09:00
b9b2c58c48 tools/install: Fix Bash version check 2021-12-29 09:02:32 +09:00
39c9598081 tools/install: Add support termcap-based tput 2021-12-29 09:02:29 +09:00
5984c17d14 Merge pull request #217 from jeansebastienh/216-gnumakefile
completions/make: Supporting GNUmakefile and makefile
2021-12-29 02:05:42 +09:00
6d8896c4dc completions/makefile: Adjust quoting 2021-12-29 02:03:30 +09:00
e0abffc8af completions/makefile: Respect POSIX compatibility
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-29 02:03:30 +09:00
f364333dfd completions/makefile: Support GNUmakefile and makefile
Close #216
2021-12-29 02:03:30 +09:00
f00c82341c Merge pull request #23 from pokowaka/fasd (deleted branch restored) 2021-12-28 09:30:00 +09:00
fe585cd14f plugins/fasd: refactor 2021-12-28 09:27:42 +09:00
0b1a6153f9 plugins: Add fasd plugin
Fasd offers quick access to files and directories. It is inspired by
tools like autojump, z and v. Fasd keeps track of files and
directories you have accessed, so that you can quickly reference them
in the command line

This plugin sets up fasd to use safe_command_prompt handling of
oh-my-bash to avoid conflicts with fasd's normal bash prompt handling.

More information about fasd can be found here:
https://github.com/clvv/fasd.
2021-12-28 09:21:17 +09:00
a3b8e5fdbf lib/utils: move and refactor "safe_append_prompt_command => _omb_util_append_prompt_command" 2021-12-28 09:21:17 +09:00
50d024358a lib/utils: Support termcap names for "tput" 2021-12-28 08:53:41 +09:00
d6100b81fc lib/utils: Refactor 2021-12-28 08:53:41 +09:00
d59c91bc35 themes/base: Refactor prompt info for ruby envs 2021-12-28 08:53:41 +09:00
c4ef72505b Merge pull request #171 from gzzsound/type-exists-include-functions
lib/utils: Include functions when searching for a command
2021-12-28 08:35:42 +09:00
56c72b87fa lib/utils: refactor "{type => _omb_util_command}_exists" 2021-12-28 08:33:07 +09:00
f22cba2905 lib/utils (type_exists): Include functions when searching for a command 2021-12-28 08:28:55 +09:00
0a13c13c2e Merge pull request #273 from Honghe/patch-1
Add conda python venv prompt
2021-12-27 23:57:01 +09:00
1401e86e9f themes: Show the "conda" environment with "virtualenv" 2021-12-27 23:53:16 +09:00
77e5874e62 themes/base: Refactor prompt strings for python envs 2021-12-27 23:53:16 +09:00
81535a1e49 themes/cupcase: Remove dup def of "virtualenv_prompt" 2021-12-27 23:53:16 +09:00
cc2e8a87f9 themes/font: Add conda python venv prompt 2021-12-27 23:53:10 +09:00
81fc5dd49d lib/grep.sh: fix expansion of GREP_OPTIONS
Previously, only the first element of the array was expanded, which is
always the empty string, so the setting of GREP_OPTIONS was useless. Expand
the entire array.
2021-12-26 22:01:27 +09:00
7ddf334013 oh-my-bash.sh: fix reading of custom/lib files 2021-12-26 05:56:40 +09:00
f4a24a11de Make it possible to disable clock in font theme 2021-12-25 14:22:57 +09:00
3f162a3466 plugins/sdkman: Add cosmetic changes 2021-12-24 23:01:09 +09:00
1eea9542ea Fix: stop SDKMAN! plugin initialisation breaking NVM 2021-12-24 23:00:50 +09:00
39af832b76 Add '_' to git branch name character whitelist 2021-12-24 22:20:22 +09:00
dde7ea6395 plugins/{goenv,pyenv}: Add cosmetic changes 2021-12-24 22:03:05 +09:00
cd6500d280 statement about conditional plugins loading
- bashrc.osh-template has been updated to explain how to
  conditionally load plugins
2021-12-24 22:03:05 +09:00
fdc66ccc59 Update plugins/tmux-autoattach/README.md
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-24 22:03:05 +09:00
e327e66c02 removed checks and updated read me
- checks have been removed to in favor of conditional plugin loading
- .gitignore has been updated to ignore .tmp files
- main README has been updated to reflect conditional plugin loading
- tmux-autoattach plugin README has been updated to reflect
  conditional plugin loading options
2021-12-24 22:03:05 +09:00
fd7fadb2fb remove environment variable 2021-12-24 22:03:05 +09:00
21abdef636 Update plugins/tmux-autoattach/README.md
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-24 22:03:05 +09:00
6687a4bb9e Update plugins/tmux-autoattach/tmux-autoattach.plugin.sh
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-24 22:03:05 +09:00
7339f13536 updated README to reflect changes 2021-12-24 22:03:05 +09:00
dc01861a1a updated naming conventions and format based on comments 2021-12-24 22:03:05 +09:00
4f4fd5df8c added a checker for .goenv directory 2021-12-24 22:03:05 +09:00
35184a8e41 added goenv, tmux, and pyenv plugins. 2021-12-24 22:03:05 +09:00
812a8d60ef Use type_exists
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-24 21:12:50 +09:00
6c79f70891 Add plugin for zoxide 2021-12-24 21:12:50 +09:00