Difference between revisions of "Bashrc"

From Mark Furneaux's Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} '''.bashrc''' is a configuration file used by bash to configure the user's shell. ==Aliases== These are some of my favorite aliases:<br> *alias fuck='sudo $(his...")
 
Line 9: Line 9:
 
*alias izfs='sudo zpool iostat -v'
 
*alias izfs='sudo zpool iostat -v'
 
*alias sagud='sudo apt-get update && sudo apt-get dist-upgrade'
 
*alias sagud='sudo apt-get update && sudo apt-get dist-upgrade'
 +
 +
==History By Date==
 +
HISTFILE="${HOME}/.history/$(date -u +%Y/%m/%d.%H.%M.%S)_${HOSTNAME_SHORT}_$$"

Revision as of 15:39, 3 September 2015

.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 tank'
  • alias izfs='sudo zpool iostat -v'
  • alias sagud='sudo apt-get update && sudo apt-get dist-upgrade'

History By Date

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