bashrc

From Mark Furneaux's Wiki
Revision as of 13:36, 5 June 2017 by Mark Furneaux (Talk | contribs)

Jump to: navigation, search

.bashrc is a configuration file used by bash to configure the user's shell.

Aliases

These are some of my favorite aliases:

  • alias fuck='sudo $(history -p \!\!)'
  • alias xx='exit'
  • alias szfs='sudo zpool status'
  • alias izfs='sudo zpool iostat -v'
  • alias sagud='sudo apt update && sudo apt full-upgrade'

History By Date

HISTFILE="${HOME}/.history/$(date -u +%Y/%m/%d.%H.%M.%S)_${HOSTNAME_SHORT}_$$"