Skip to content

Instantly share code, notes, and snippets.

View jpicht's full-sized avatar

Julian Picht jpicht

  • Hannover, Germany
View GitHub Profile
# If you, like me, have all of your various source-code-like projects in ~/src/
# this is how to give yourself per-project shell history.
#
# I wish I'd done this years ago.
#
# First, in your .bashrc file, you redefine the cd, pushd and popd builtins to be "do the builtin bit,
# then do one other thing (set_src_history.sh, below) like so:
cd () {