Created
December 19, 2019 16:33
-
-
Save kalloc/fbf97971c67dba7151ede13787c6a45f to your computer and use it in GitHub Desktop.
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
if [[ "${TMUX}" != "" ]]; then | |
WINDOW=$(tmux display-message -p '#W') | |
FILE=$HOME/.bash_sessions/$(tmux display-message -p '#S') | |
if [[ ${WINDOW} != 'vim' ]];then | |
WINDOW='local' | |
fi | |
export HISTFILE=${FILE}-${WINDOW} | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment