diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-10-08 18:53:13 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-10-08 18:53:13 -0400 |
| commit | 29387a3426539d189b6e02258723b90f90d8cb9b (patch) | |
| tree | 4fe1bf073c72938ad7624ff7a5e861388addea41 /mkshrc | |
| parent | 585967c5ed3fd3b5ae49c303cfada9f96b5b3c51 (diff) | |
| download | dotfiles-29387a3426539d189b6e02258723b90f90d8cb9b.tar.gz dotfiles-29387a3426539d189b6e02258723b90f90d8cb9b.tar.xz | |
Add a function to set the terminal title
Diffstat (limited to 'mkshrc')
| -rw-r--r-- | mkshrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 } |
