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"
 
#
# 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'
alias grep='grep -i'
alias hh='history | sort -nr | less'
alias hg='history | grep'
alias nn='nano'
  • qnd/bash_configuration.1637178785.txt.gz
  • Last modified: 2021/11/17 19:53
  • by mgupton