Created
May 9, 2014 17:13
-
-
Save Ephigenia/3274bd121bac83f1ea2c to your computer and use it in GitHub Desktop.
.bashrc-auto-theme-ssh
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
# ~/.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" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.