mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
Fix issues with grep and spectrum
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# is x grep argument available?
|
||||
grep-flag-available() {
|
||||
grep_flag_available() {
|
||||
echo | grep $1 "" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
|
||||
+8
-8
@@ -17,11 +17,11 @@ case $HIST_STAMPS in
|
||||
*) alias history='fc -l 1' ;;
|
||||
esac
|
||||
|
||||
#setopt append_history
|
||||
#setopt extended_history
|
||||
#setopt hist_expire_dups_first
|
||||
#setopt hist_ignore_dups # ignore duplication command history list
|
||||
#setopt hist_ignore_space
|
||||
#setopt hist_verify
|
||||
#setopt inc_append_history
|
||||
#setopt share_history # share command history data
|
||||
#shopt append_history
|
||||
#shopt extended_history
|
||||
#shopt hist_expire_dups_first
|
||||
#shopt hist_ignore_dups # ignore duplication command history list
|
||||
#shopt hist_ignore_space
|
||||
#shopt hist_verify
|
||||
#shopt inc_append_history
|
||||
#shopt share_history # share command history data
|
||||
|
||||
+1
-1
@@ -23,4 +23,4 @@ if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
|
||||
fi
|
||||
|
||||
# recognize comments
|
||||
#setopt interactivecomments
|
||||
shopt interactivecomments
|
||||
|
||||
+6
-6
@@ -6,12 +6,12 @@
|
||||
typeset -Ag FX FG BG
|
||||
|
||||
FX=(
|
||||
reset "%{^[[00m%}"
|
||||
bold "%{^[[01m%}" no-bold "%{^[[22m%}"
|
||||
italic "%{^[[03m%}" no-italic "%{^[[23m%}"
|
||||
underline "%{^[[04m%}" no-underline "%{^[[24m%}"
|
||||
blink "%{^[[05m%}" no-blink "%{^[[25m%}"
|
||||
reverse "%{^[[07m%}" no-reverse "%{^[[27m%}"
|
||||
[reset]="%{^[[00m%}"
|
||||
[bold]="%{^[[01m%}" [no-bold]="%{^[[22m%}"
|
||||
[italic]="%{^[[03m%}" [no-italic]="%{^[[23m%}"
|
||||
[underline]="%{^[[04m%}" [no-underline]="%{^[[24m%}"
|
||||
[blink]="%{^[[05m%}" [no-blink]="%{^[[25m%}"
|
||||
[reverse]="%{^[[07m%}" [no-reverse]="%{^[[27m%}"
|
||||
)
|
||||
|
||||
for color in {000..255}; do
|
||||
|
||||
Reference in New Issue
Block a user