diff --git a/modules/osx/README.md b/modules/osx/README.md index d8eff0ff..91ecb69b 100644 --- a/modules/osx/README.md +++ b/modules/osx/README.md @@ -23,6 +23,7 @@ Functions - `osx-rm-dir-metadata` deletes .DS\_Store, \_\_MACOSX cruft. - `osx-ls-download-history` displays the Mac OS X download history. - `osx-rm-download-history` deletes the Mac OS X download history. + - `tab-title` sets the tab title (works in both _Terminal_ and [_iTerm_][3]). Authors ------- diff --git a/modules/osx/functions/tab-title b/modules/osx/functions/tab-title new file mode 100644 index 00000000..86c6794d --- /dev/null +++ b/modules/osx/functions/tab-title @@ -0,0 +1,14 @@ +# +# Changes the current tab title +# +# Authors: +# nstCactus +# + + + +function tab-title { + echo -ne "\033]0;"$*"\007" +} + +tab-title "$@"