Skip to content

Instantly share code, notes, and snippets.

@iamkristian
Created April 20, 2011 10:30
Show Gist options
  • Save iamkristian/930953 to your computer and use it in GitHub Desktop.
Save iamkristian/930953 to your computer and use it in GitHub Desktop.
Name your terminal windows
#!/bin/bash
function nameit() {
name=""
for arg in $@; do
name="${name} ${arg}";
done
echo -e '\e]0;'${name}'\07'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment