Last active
October 11, 2019 01:52
-
-
Save vascoosx/6a07a67f446feee819964920bf741d55 to your computer and use it in GitHub Desktop.
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
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