Skip to content

Instantly share code, notes, and snippets.

@jerm
Created July 10, 2017 02:58
Show Gist options
  • Save jerm/35557bba7711f66261eaaf6f4600bb25 to your computer and use it in GitHub Desktop.
Save jerm/35557bba7711f66261eaaf6f4600bb25 to your computer and use it in GitHub Desktop.
# Install autoenv (or similar)
# add an export ITERM_TAB_LABEL='thisproject' line in .env in each project
# add a noproject version in your homedir
# add this to .profile
# profit!
export ITERM_TAB_LABEL="Set Me"
set_tab_label() { echo "$ITERM_TAB_LABEL"; }
PS1="$PS1\[\033k\033\134\033k\h\033\134\]\[\e]0;\`set_tab_label\`\a\]"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment