Skip to content

Instantly share code, notes, and snippets.

@harish2704
Created January 18, 2020 13:44
Embed
What would you like to do?
Create a new bash session and save/load all the command history in current directory
#!/usr/bin/env bash
export HISTFILE=$PWD/.bash_history
bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment