Commit Graph

71 Commits

Author SHA1 Message Date
Koichi Murase
2202aeeb04 Refactor "{type => _omb_util_command_exists}" 2022-08-23 18:09:50 +09:00
M
de66a70f91 Refactor "{ => _omb_util_}command_exists"
https://github.com/ohmybash/oh-my-bash/pull/239#issuecomment-1007886245

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-08-23 18:09:50 +09:00
M
4fb778c405 Refactor "{{which,command -v} => _omb_util_{binary,command}_exists}"
`which` has been deprecated in Debian (at least, the rolling release
installed on chromebooks via Linux Containers)

https://github.com/ohmybash/oh-my-bash/pull/239#issuecomment-1000974461

Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
2022-08-23 18:09:16 +09:00
Koichi Murase
91b36b48a7 aliases/general (cp,mv,mkdir): check the support for non-POSIX "-v"
https://github.com/ohmybash/oh-my-bash/issues/351
2022-08-23 13:58:49 +09:00
Koichi Murase
4309b4ec4b lib/base,aliases/general: add copyright information 2022-08-23 11:38:26 +09:00
Koichi Murase
e7ca92bde1 lib/grep: Fix the alias names for egrep/fgrep 2022-07-14 22:13:13 +09:00
Koichi Murase
3e441aa00b lib/bourne-shell: Remove duplicate aliases 2022-07-03 13:28:58 +09:00
Koichi Murase
0fe8c0bf0d lib: support OMB_DEFAULT_ALIASES to control the alias overriding 2022-07-03 13:28:58 +09:00
solo
ce1c03f5a0 lib/bourne-shell: Do not override user-defined aliases (Fix #304)
Fixes #304 by checking if the alias already exists before applying it.
2022-07-03 12:48:44 +09:00
Koichi Murase
1272a39800 lib/history: Remove the limit of the history sizes 2022-06-23 11:03:37 +09:00
Koichi Murase
a9859427fd lib/utils (_omb_util_prompt_command_hook): Preserve $? 2022-06-20 14:19:46 +09:00
Koichi Murase
a2944b91d8 lib/spectrum: fix up ed5a250 2022-04-21 20:59:02 +09:00
Koichi Murase
ed5a250baa lib/spectrum: add workaround for global associative arrays in bash-4.0..4.1 2022-04-21 10:14:58 +09:00
mnlwldr
177864fc5c Added the possibility to have an own .bashrc.local 2022-03-25 17:47:00 +09:00
Koichi Murase
a8971e3c7d lib/readlink: Add "_omb_util_readlink" 2022-02-05 21:08:00 +09:00
Koichi Murase
973a8bdf30 lib/{utils,omb-prompt-colors}: Support bright color names 2022-02-01 01:43:34 +09:00
Koichi Murase
827277253a lib/omb-prompt-colors: Rename basic colors 2022-02-01 01:43:32 +09:00
Koichi Murase
411cdd05ce lib/omb-deprecate: Highlight deprecate messages 2022-02-01 01:42:52 +09:00
Koichi Murase
d76093a3df plugins/bashmarks: Use global color variables 2022-02-01 01:42:52 +09:00
Koichi Murase
f9ccb2cb12 lib/spectrum: Fix a bug that "spectrum_{ls,bls}" does not work 2022-02-01 01:42:52 +09:00
Koichi Murase
27f82bbbad lib/spinner: Update example 2022-02-01 01:42:52 +09:00
Koichi Murase
8eb9fec5ed lib, themes: Resolve conflicting variables
"lib" has used the variables "red", "green", "yellow", "blue", and
"purple" for outputting logs to stdout/stderr.  On the other hand,
"themes" has used the same variables for including escape sequences in
PS1.  These two sets of variables have different values, i.e., the
latter is enclosed by '\[' and '\]' and contains escaped '\e', which
means that there have been variable conflicts.  In this commit, more
specific variables are used in these places to resolve the conflicts.
2022-02-01 01:42:52 +09:00
Koichi Murase
7ed389eafd themes: Use new color variables 2022-02-01 01:42:50 +09:00
Koichi Murase
d0e61d2261 lib/omb-prompt-*: Adjust conflicts and dependencies 2022-02-01 01:30:06 +09:00
Koichi Murase
a0db119be6 themes: Move "themes/{colours,base}.theme.sh => lib/omp-prompt-{colors,base}.sh" 2022-02-01 01:30:06 +09:00
Koichi Murase
ee9eb7659e lib/utils, themes: Deprecate color variables 2022-02-01 01:30:06 +09:00
Koichi Murase
7c7e276a6e lib/omb-deprecate: Add functions to declare deprecated variables 2022-02-01 01:30:06 +09:00
Koichi Murase
9788583d4e refactor(omb-deprecate): Rename "_omb_{util_defun_deprecate => deprecate_function}" 2022-02-01 01:30:06 +09:00
Koichi Murase
7dce520857 oh-my-bash: support OMB_VERSION and OMB_VERSINFO 2022-01-19 15:50:18 +09:00
Koichi Murase
59a0beee7c oh-my-bash: Check Bash version on startup 2022-01-19 15:48:54 +09:00
Koichi Murase
ab0ca1eb15 Merge pull request #292 from akinomyoga/upgrade-in-same-shell
Upgrade/Uninstall/Install OMB in the interactive shell process
2022-01-19 09:31:05 +09:00
Koichi Murase
b805006ccf Merge pull request #288 from stroggoslav/fix-lesspipe
Fix exporting LESSOPEN
2022-01-18 14:15:40 +09:00
stroggoslav
4cc47db635 Fix eval lesspipe
Evaluate lesspipe output only when LESSOPEN isn't already defined
unless we are on gentoo distribution then export LESSOPEN directly.

Check lesspipe scriptname (lesspipe/lesspipe.sh)

Issue #46 #69
2022-01-15 17:19:55 +01:00
Koichi Murase
16712a41c5 tools/upgrade: Enable upgrading/(un)installing in the interactive shell process 2022-01-15 19:15:09 +09:00
Koichi Murase
7f420263b2 themes: Make PROMPT_COMMAND usage consistent for reloading OMB 2022-01-15 19:14:30 +09:00
Koichi Murase
c3bcc5c6d2 refactor: Normalize shebang of scripts to source 2022-01-15 19:00:35 +09:00
Koichi Murase
088eee2abd lib/utils: Correctly restore shopt states in Bash < 4.1 2022-01-15 18:31:49 +09:00
Koichi Murase
35952601ad lib/omb-deprecate: Fix deprecated definitions of "e_*" 2022-01-12 18:28:19 +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
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
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
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
56c72b87fa lib/utils: refactor "{type => _omb_util_command}_exists" 2021-12-28 08:33:07 +09:00
Alessandro Caianiello
f22cba2905 lib/utils (type_exists): Include functions when searching for a command 2021-12-28 08:28:55 +09:00