Created
December 15, 2013 22:08
-
-
Save kazjote/7978869 to your computer and use it in GitHub Desktop.
Because of some strange bug on ubuntu 13.10 terminal becomes sometimes unusable after restarting of gnome-shell. This script restarts gnome-shell, gnome-terminal and reattaches tmux session. It is supposed of be run from inside of tmux session.
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
#!/bin/bash | |
gnome-shell --replace & | |
killall gnome-terminal | |
sleep 2 | |
gnome-terminal --hide-menubar --maximize -e "bash -l -c 'unset TMUX; tmux attach'" &>/dev/null & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment