This file contains 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
# 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() |