164 Commits

Author SHA1 Message Date
b05f53558b oh-my-bash: Quote parameter expansions properly 2022-01-08 15:34:05 +09:00
31f095f3ac oh-my-bash: Show warning and fail for non-interactive shells
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-01-08 15:34:05 +09:00
e84ace339b lib/utils: Rename logging functions 2022-01-08 15:31:43 +09:00
a463fb5aec Merge pull request #232 from prehensilecode/grep-alias 2022-01-08 14:17:19 +09:00
2c20b7bdb6 oh-my-bash: Fix varname "OSH_{CUSOM => CUSTOM}"
Co-authored-by: Rex Roof <github@rexroof.com>
2022-01-05 23:14:40 +09:00
556b43fdbb Merge pull request #276 from akinomyoga/support-unattended-install
tools/install: Support `--unattended` option
2022-01-05 19:37:56 +09:00
e6a15f25cc tools/install: Support a new option "--unattended" 2022-01-05 19:34:16 +09:00
47dc24d749 oh-my-bash: Disable word splitting for plugin/alias/completion names 2022-01-05 19:29:58 +09:00
028d253739 oh-my-bash: Fix the search path for plugins and aliases 2022-01-05 16:11:18 +09:00
674654a77e Merge pull request #236 from JamesMConroy/install
Refactored install.sh
2022-01-05 02:07:46 +09:00
636f48dfc4 install: Refactor install.sh
Now the script uses logging functions.
2022-01-05 02:06:48 +09:00
b3b20d6035 Merge pull request #274 from akinomyoga/omb-package
oh-my-bash: Add a function for dependency resolution and refactor
2022-01-05 01:49:52 +09:00
9b240245bb lib/grep: Refactor variable and function names to avoid conflicts 2022-01-02 00:25:30 +09:00
cb3599a312 lib/grep: Avoid alias expansions on the first argument of grep (Fix #229) 2022-01-02 00:18:39 +09:00
7844f96ed6 oh-my-bash: Manage dependencies by "_omb_module_require" 2022-01-01 07:40:35 +09:00
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