From 1560d7b9bbfea2094fc921b0815ed677dab3642a Mon Sep 17 00:00:00 2001 From: Faro Date: Fri, 22 Aug 2014 11:26:57 +0200 Subject: [PATCH] adding functions to rename os x terminal tab and window titles --- plugins/available/osx.plugin.bash | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugins/available/osx.plugin.bash b/plugins/available/osx.plugin.bash index 5b605ce2..b7465a3f 100644 --- a/plugins/available/osx.plugin.bash +++ b/plugins/available/osx.plugin.bash @@ -16,6 +16,16 @@ function tab() { EOF } +# renames the current os x terminal tab title +function tabname { + printf "\e]1;$1\a" +} + +# renames the current os x terminal window title +function winname { + printf "\e]2;$1\a" +} + # this one switches your os x dock between 2d and 3d # thanks to savier.zwetschge.org function dock-switch() {