summaryrefslogtreecommitdiff
path: root/zsh/functions/preexec_term_title
diff options
context:
space:
mode:
authorXian Wang <dev@xianwang.io>2022-03-23 10:12:52 -0400
committerXian Wang <dev@xianwang.io>2022-03-23 10:12:52 -0400
commit99b6971f62cdb02d52c3c4f15f84c97dccaeb344 (patch)
tree58c94010cd51514b9e515573b3fb8b51ef51adc6 /zsh/functions/preexec_term_title
parentbebf6d947abf4637e1239cd902572cd24945e7cc (diff)
downloaddotfiles-99b6971f62cdb02d52c3c4f15f84c97dccaeb344.tar.gz
dotfiles-99b6971f62cdb02d52c3c4f15f84c97dccaeb344.tar.bz2
dotfiles-99b6971f62cdb02d52c3c4f15f84c97dccaeb344.zip
zsh: update rcs and functions
Diffstat (limited to 'zsh/functions/preexec_term_title')
-rw-r--r--zsh/functions/preexec_term_title3
1 files changed, 3 insertions, 0 deletions
diff --git a/zsh/functions/preexec_term_title b/zsh/functions/preexec_term_title
new file mode 100644
index 0000000..d551094
--- /dev/null
+++ b/zsh/functions/preexec_term_title
@@ -0,0 +1,3 @@
+emulate -L zsh
+local -a cmd; cmd=(${(z)1})
+term_title "$cmd"