Skip to content

Instantly share code, notes, and snippets.

@sugamasao
Created September 25, 2010 05:47
Show Gist options
  • Select an option

  • Save sugamasao/596528 to your computer and use it in GitHub Desktop.

Select an option

Save sugamasao/596528 to your computer and use it in GitHub Desktop.
.zshrc
# screen で表示する時にタイトルにコマンドを表示する
preexec () {
if [ $TERM = "xterm" ]; then
echo -ne "\ek${1%% *}\e\\"
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment