Commit Graph

9 Commits (master)

Author SHA1 Message Date
David Farrell 00062bfcb6
chore: Use grep -E / grep -F instead of egrep / fgrep (#2164)
Ensures that the -E or -F option, when used, is the first option
* i.e. grep -oE => grep -E -o

Updates _bash-it-grep to invoke grep with just the provided arguments
* This function was (and still is) unused, but decided this new functionality was actually more useful

Introduces _bash-it-fgrep to invoke grep -F

Removes type -P egrep from the _bash-it-*grep functions

For usages that were already going to be modified, use -F if appropriate
* Does not touch grep usages that may have benefited from -F, but were not otherwise considered for this PR

Adds shellcheck header to modified .bash files that didn't already have it
2022-10-13 10:34:57 -07:00
Noah Gorny dff892e0a3 themes: Adapt themes to new scm_prompt api 2021-05-16 19:17:02 +03:00
Yuhao Wu af96da5d11 Fix bug: themes break global $PROMPT_COMMAND variable
Safely append functions to $PROMPT_COMMAND instead of setting it.
2016-07-07 17:13:00 +09:00
rjorgenson e305e48bee fixed some syntax problems
updated bash_it base install and theme stopped working
needed some syntax changes to show colors properly
cleaned up color disambiguation a bit
2011-11-12 01:10:24 -07:00
rjorgenson 35e1fe00e2 fixed a bug with colors in second line of prompt 2011-07-08 06:26:22 -07:00
rjorgenson 0b218c4eb2 fixed todo count bug
todo module would still show up if todo.txt was installed but not
used with a blank value. Added a sanity check to make sure we actally
get a number back from todo.txt and do nothing if we dont
2011-06-29 01:27:24 -07:00
rjorgenson 2b4f94a804 more customizations to prompt theme
made colors more modular and easy to change
changed some colors around
added function to dynamically pick the prompt character
changed the prompting character at end of prompt
2011-06-18 04:42:44 -07:00
rjorgenson a59d785883 added todo.txt-cli count to prompt and cleaned up some color code
not sure if I like the placement of the todo count, but keeping it for now
2011-06-17 23:28:57 -07:00
rjorgenson e8a4e35454 initial port of zork prompt theme to my own
more customization to come later
2011-06-17 06:13:55 -07:00