Skip to content

Instantly share code, notes, and snippets.

@vascoosx
Last active October 11, 2019 01:52
Show Gist options
  • Save vascoosx/6a07a67f446feee819964920bf741d55 to your computer and use it in GitHub Desktop.
Save vascoosx/6a07a67f446feee819964920bf741d55 to your computer and use it in GitHub Desktop.
eval "$(rbenv init -)"
export EDITOR=vim
LOG_COMMAND='if [ "$(id -u)" -ne 0 ]; then echo "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" >> ~/.logs/bash-history-$(date "+%Y-%m-%d").log; fi'
if [ -z "${PROMPT_COMMAND}" ]; then
export PROMPT_COMMAND=${LOG_COMMAND}
else
export PROMPT_COMMAND="${PROMPT_COMMAND}; ${LOG_COMMAND}"
fi
export CLICOLOR=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment