Skip to content

Instantly share code, notes, and snippets.

# history stuff
export HISTSIZE=10000000
# create the historydir if it doesn't exist
if [[ ! -d ${HOME}/.bash_history.d/ ]]
then
mkdir -p ${HOME}/.bash_history.d/
fi
# one history file per year
export HISTFILE=${HOME}/.bash_history.d/${HOSTNAME}.$(date +%Y)
@goozbach
goozbach / gist:1507318
Created December 21, 2011 19:26 — forked from sontek/snowjob.sh
Make your terminal snow
#!/bin/bash
LINES=$(tput lines)
COLUMNS=$(tput cols)
declare -A snowflakes
declare -A lastflakes
clear
@goozbach
goozbach / gist:1241507
Created September 26, 2011 02:38 — forked from travisbhartwell/gist:1239973
Yay Fun Hack
#!/bin/bash
# Don't allow unset variables
set -o nounset
# Exit if any command gives an error
set -o errexit
# Constants
LOG_DIR=$HOME/tmp
.DS_Store
lib
bin
include
.Python
*.pyc
.coverage
man
pip-log.txt
src