creating a terminal tag

attribution: taken from https://gist.github.com/burtlo/7014987