如何为 Ubuntu 的 ZSH 转换以下命令?
DavidPashley的 Bash 命令
trap 'echo -e "\e]0;$BASH_COMMAND\007"' DEBUG
if [ "$SHELL" = '/bin/bash' ]
then
case $TERM in
rxvt|*term)
set -o functrace
trap 'echo -ne "\e]0;$BASH_COMMAND\007"' DEBUG
export PS1="\e]0;$TERM\007$PS1"
;;
esac
fi