qnd:bash_configuration

This is an old revision of the document!


Bash Configuration

Some handy bash configuration for .bashrc

#
# This setting allows a command to be recalled from history, but not immediately executed.
# This allows the command to be modified before being executed.
#
shopt -s histverify
export HISTIGNORE="history*:[ \tbf]g*:hh:jobs:fc"
export HISTCONTROL=ignoreboth:erasedups
 
#
# Bind the keyboard combination Alt + h to displaying the command history.
#
bind '"\eh":" history | sort -nr | less\n"'
bind '"\ew":" jobs\n"'
#
# Disable flow control, so Ctrl + s can be used for forward searches in history to go with reverse searches (Ctrl + r)
#
stty -ixon
 
alias ls='ls -haltr --color | less -R'
alias grep='grep -i'
alias hh='history | sort -nr | less'
alias hg='history | grep'
alias nn='nano'
  • qnd/bash_configuration.1646428902.txt.gz
  • Last modified: 2022/03/04 21:21
  • by mgupton