Fix issues with grep and spectrum

This commit is contained in:
Toan Nguyen
2017-03-20 20:18:10 +07:00
parent ea1c9371e1
commit a9f9eaf51f
4 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -23,4 +23,4 @@ if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then
fi
# recognize comments
#setopt interactivecomments
shopt interactivecomments
+6 -6
View File
@@ -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