EvanLovely
9/4/2013 - 6:36 PM

Bash Function to search through your Bash Aliases and Functions and display helpful text in the prompt.

Bash Function to search through your Bash Aliases and Functions and display helpful text in the prompt.

# search bash aliases
sba() {
  cat ~/.bash_aliases | grep -i -A 1 "^#.*$*"
  cat ~/.bash_aliases | grep -i -B 1 "^alias.*$*"
  cat ~/.bash_functions | grep -i -A 1 "^#.*$*"
}