aboutsummaryrefslogtreecommitdiff
path: root/mkshrc
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2018-10-08 18:53:13 -0400
committerMitch Riedstra <mitch@riedstra.us>2018-10-08 18:53:13 -0400
commit29387a3426539d189b6e02258723b90f90d8cb9b (patch)
tree4fe1bf073c72938ad7624ff7a5e861388addea41 /mkshrc
parent585967c5ed3fd3b5ae49c303cfada9f96b5b3c51 (diff)
downloaddotfiles-29387a3426539d189b6e02258723b90f90d8cb9b.tar.gz
dotfiles-29387a3426539d189b6e02258723b90f90d8cb9b.tar.xz
Add a function to set the terminal title
Diffstat (limited to 'mkshrc')
-rw-r--r--mkshrc4
1 files changed, 4 insertions, 0 deletions
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
}