Skip to content

Instantly share code, notes, and snippets.

bjayakumar

Block or report user

Report or block bjayakumar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bash_history_per_dir.sh
# Usage: mycd
# Replacement for builtin 'cd', wh ich keeps a separate bash-history
# for every directory.
: '
shopt -s histappend
alias cd="mycd"
export HISTFILE="$HOME/.dir_bash_history$PWD/bash_history.txt"
function mycd()
You can’t perform that action at this time.