Skip to content

Instantly share code, notes, and snippets.

View appsmatics's full-sized avatar
🏠
Working from home

appsmatics appsmatics

🏠
Working from home
  • Appsmatics LLC
  • California
View GitHub Profile
@appsmatics
appsmatics / gt.sh
Last active February 16, 2025 22:21
Gnome Terminal History
#!/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