Skip to content

Instantly share code, notes, and snippets.

@Ephigenia
Created May 9, 2014 17:13
Show Gist options
  • Save Ephigenia/3274bd121bac83f1ea2c to your computer and use it in GitHub Desktop.
Save Ephigenia/3274bd121bac83f1ea2c to your computer and use it in GitHub Desktop.
.bashrc-auto-theme-ssh
# ~/.bashrc
# changes the current theme of Terminal application to desired one
function tabc {
NAME=$1;
osascript -e "tell application \"Terminal\" to set current settings of front window to settings set \"$NAME\""
}
function ssh {
# insert desired SSH-Theme here
tabc "Red Sands"
/usr/bin/ssh "$@"
# insert name of default theme here
tabc "Monokai"
}
@reneoelke
Copy link

Per Default werden neue Tabs im aktuellen Terminal-Fenster immer mit den Einstellungen des aktuellen Tabs geöffnet. Das würde bedeutet, dass man eventuell alle neuen Tabs immer mit einem falschen Theme öffnet. Dies kann man in den Terminal-Einstellungen mit der Option _Neue Tabs öffnen mit: Standardeinstellungen_ verhindern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment