From 29387a3426539d189b6e02258723b90f90d8cb9b Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 8 Oct 2018 18:53:13 -0400 Subject: Add a function to set the terminal title --- mkshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mkshrc') diff --git a/mkshrc b/mkshrc index 2aac943..0618b8a 100644 --- a/mkshrc +++ b/mkshrc @@ -313,6 +313,10 @@ setperms() { find "$2" -type d -print0 | xargs -0 chmod "$dir_perms" } +set_title() { + printf $'\033]0;'"%s"$'\007' "$1" +} + timestamp() { date +%m.%d.%y_%H.%M.%S } -- cgit v1.2.3