Created
July 29, 2009 14:30
-
-
Save erikbgithub/158189 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
unset PROMPT_COMMAND | |
function title { | |
echo -en "\033]2;$1\007" | |
} | |
title `ifconfig -a | perl -ne \ | |
'if (m/^\s*inet (?:addr:)?([\d.]+).*?cast/) {print qq($1); exit 0; }'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment