Skip to content

Instantly share code, notes, and snippets.

@kazjote
Created December 15, 2013 22:08
Show Gist options
  • Save kazjote/7978869 to your computer and use it in GitHub Desktop.
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.
#!/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