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
#!/usr/bin/bash | |
# Start a gnome-terminal with a named history file | |
# Keeps a separate history for each terminal session in a $HOME/histories/ folder | |
# HISTCONTROL=erasedups:ignoreboth ensures only unique entries | |
# Tested with Ubuntu 20 and 22 only! | |
# To sync to another machine, cp the .histories/ folder across :) | |
# pass the terminal name as arg to this script | |
# usage gt.sh myproj1-server | myproj1-adminui | myproj2-dbadmin | misc | junk1 |