This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LINES=$(tput lines) | |
COLUMNS=$(tput cols) | |
declare -A snowflakes | |
declare -A lastflakes | |
clear |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.DS_Store | |
lib | |
bin | |
include | |
.Python | |
*.pyc | |
.coverage | |
man | |
pip-log.txt | |
src |