Rich Enhanced Shell History - Contextual shell history for zsh and bash
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
resh/bashrc.sh

17 lines
283 B

PATH=$PATH:~/.resh/bin
preexec() {
__RESH_COLLECT=1
__RESH_PWD="$PWD"
__RESH_CMDLINE="$1"
}
precmd() {
__RESH_EXIT_CODE=$?
if [ ! -z ${__RESH_COLLECT+x} ]; then
resh-collect $__RESH_EXIT_CODE "$PWD" "$__RESH_CMDLINE"
fi
unset __RESH_COLLECT
}