Commit Graph

174 Commits

Author SHA1 Message Date
Koichi Murase
35952601ad lib/omb-deprecate: Fix deprecated definitions of "e_*" 2022-01-12 18:28:19 +09:00
Koichi Murase
36ecc0a21f Merge pull request #284 from akinomyoga/do-not-overwrite-backup-bashrc
Do not overwrite backup bashrc
2022-01-12 17:49:28 +09:00
Koichi Murase
1543bc9d4a tools/uninstall: Do not overwrite backup bashrcs
Co-authored-by: Alexandre Alessi <alexpfba@gmail.com>
2022-01-08 15:41:07 +09:00
Koichi Murase
cafb35836e tools/uninstall: Remove "chsh -s /bin/bash"
The code is originated from the uninstallation script for ohmyzsh,
which switches the default shell from Bash to Zsh in its installation.
Oh-my-bash does not change the default shell in its installation, so
there is no need to change it back to /bin/bash in the uninstallation.
2022-01-08 15:41:07 +09:00
Koichi Murase
7d8a848d2c Merge pull request #73 from RXT067:what-the-bash/code_improvements (reconstructed) 2022-01-08 15:37:04 +09:00
Koichi Murase
8780308a4f themes: Fix wrong usage of command substitutions in conditions 2022-01-08 15:34:05 +09:00
Jacob Hrbek
85211c1f76 themes/rjorgenson: Use the POSIX command substitution 2022-01-08 15:34:05 +09:00
Jacob Hrbek
a085f452fb themes/agnoster: Use the POSIX command substitutions
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-01-08 15:34:05 +09:00
Koichi Murase
2027dd42a4 completions/salt: Fix quoting for "compgen -W" and others 2022-01-08 15:34:05 +09:00
Koichi Murase
eaa147afa6 completions/brew: Protect against pathname expansions and refactor 2022-01-08 15:34:05 +09:00
Jacob Hrbek
b05f53558b oh-my-bash: Quote parameter expansions properly 2022-01-08 15:34:05 +09:00
Jacob Hrbek
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
Koichi Murase
e84ace339b lib/utils: Rename logging functions 2022-01-08 15:31:43 +09:00
Koichi Murase
a463fb5aec Merge pull request #232 from prehensilecode/grep-alias 2022-01-08 14:17:19 +09:00
Koichi Murase
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
Koichi Murase
556b43fdbb Merge pull request #276 from akinomyoga/support-unattended-install
tools/install: Support `--unattended` option
2022-01-05 19:37:56 +09:00
Koichi Murase
e6a15f25cc tools/install: Support a new option "--unattended" 2022-01-05 19:34:16 +09:00
Koichi Murase
47dc24d749 oh-my-bash: Disable word splitting for plugin/alias/completion names 2022-01-05 19:29:58 +09:00
Koichi Murase
028d253739 oh-my-bash: Fix the search path for plugins and aliases 2022-01-05 16:11:18 +09:00
Koichi Murase
674654a77e Merge pull request #236 from JamesMConroy/install
Refactored install.sh
2022-01-05 02:07:46 +09:00
James Conroy
636f48dfc4 install: Refactor install.sh
Now the script uses logging functions.
2022-01-05 02:06:48 +09:00
Koichi Murase
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
Koichi Murase
9b240245bb lib/grep: Refactor variable and function names to avoid conflicts 2022-01-02 00:25:30 +09:00
David Chin
cb3599a312 lib/grep: Avoid alias expansions on the first argument of grep (Fix #229) 2022-01-02 00:18:39 +09:00
Koichi Murase
7844f96ed6 oh-my-bash: Manage dependencies by "_omb_module_require" 2022-01-01 07:40:35 +09:00
Koichi Murase
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
Koichi Murase
6c01437e90 Merge pull request #269 from akinomyoga/update-contributing
Update CONTRIBUTING.md
2022-01-01 07:36:06 +09:00
Koichi Murase
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
Koichi Murase
744489eb5b themes/half-way: Adjust coding styles 2021-12-30 22:01:14 +09:00
Memduh Çağrı Demir
c58321b9e6 themes/half-way: Apply review comments 2021-12-30 21:55:06 +09:00
Memduh Çağrı Demir
dbc3db03f3 themes: Add "half-life" theme 2021-12-30 21:54:58 +09:00
Koichi Murase
f647fb4c30 Merge pull request #214 from akinomyoga/fix-install-script
Fix install script for #213
2021-12-29 09:08:53 +09:00
Koichi Murase
5421f3a342 tools/install: Update the Bash-version check 2021-12-29 09:02:42 +09:00
Koichi Murase
703e2864d4 tools/install: Use condtional command 2021-12-29 09:02:39 +09:00
Koichi Murase
c22b97e09a tools/{,un}install: Quote arguments properly 2021-12-29 09:02:36 +09:00
Koichi Murase
b9b2c58c48 tools/install: Fix Bash version check 2021-12-29 09:02:32 +09:00
Koichi Murase
39c9598081 tools/install: Add support termcap-based tput 2021-12-29 09:02:29 +09:00
Koichi Murase
5984c17d14 Merge pull request #217 from jeansebastienh/216-gnumakefile
completions/make: Supporting GNUmakefile and makefile
2021-12-29 02:05:42 +09:00
Koichi Murase
6d8896c4dc completions/makefile: Adjust quoting 2021-12-29 02:03:30 +09:00
Jean-Sébastien Hedde
e0abffc8af completions/makefile: Respect POSIX compatibility
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2021-12-29 02:03:30 +09:00
Jean-Sébastien Hedde
f364333dfd completions/makefile: Support GNUmakefile and makefile
Close #216
2021-12-29 02:03:30 +09:00
Koichi Murase
f00c82341c Merge pull request #23 from pokowaka/fasd (deleted branch restored) 2021-12-28 09:30:00 +09:00
Koichi Murase
fe585cd14f plugins/fasd: refactor 2021-12-28 09:27:42 +09:00
Erwin Jansen
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
Koichi Murase
a3b8e5fdbf lib/utils: move and refactor "safe_append_prompt_command => _omb_util_append_prompt_command" 2021-12-28 09:21:17 +09:00
Koichi Murase
50d024358a lib/utils: Support termcap names for "tput" 2021-12-28 08:53:41 +09:00
Koichi Murase
d6100b81fc lib/utils: Refactor 2021-12-28 08:53:41 +09:00
Koichi Murase
d59c91bc35 themes/base: Refactor prompt info for ruby envs 2021-12-28 08:53:41 +09:00
Koichi Murase
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
Koichi Murase
56c72b87fa lib/utils: refactor "{type => _omb_util_command}_exists" 2021-12-28 08:33:07 +09:00