Skip to content

Instantly share code, notes, and snippets.

@yotamoron
yotamoron / refocus
Last active December 26, 2015 01:49
A tiny script to refocus on a terminal once a command has finished running. You will need xdotool installed.
#!/bin/bash
WINDOW_NAME=`xdotool getwindowname $WINDOWID`
shopt -s expand_aliases
source ~/.aliases
eval $@