Skip to content

Instantly share code, notes, and snippets.

View CaseOf's full-sized avatar

Case_Of CaseOf

View GitHub Profile
@ckabalan
ckabalan / best_bash_history.sh
Last active November 7, 2024 12:13
The Best Bash History Settings Ever
# /etc/profile.d/best_bash_history.sh
# Save 5,000 lines of history in memory
HISTSIZE=10000
# Save 2,000,000 lines of history to disk (will have to grep ~/.bash_history for full listing)
HISTFILESIZE=2000000
# Append to history instead of overwrite
shopt -s histappend
# Ignore redundant or space commands
HISTCONTROL=ignoreboth
# Ignore more