dotfiles/zsh/.zsh/hooks.zsh
Andrew Davidson 834562fa82
Removing functions to pretty the active command.
Was causing trouble with some in-built string functions
2021-08-21 07:21:00 -07:00

20 lines
390 B
Bash

function precmd {
# vcs_info
# Put the string "hostname::/full/directory/path" in the title bar:
echo -ne "\e]2;$PWD\a"
# Put the parentdir/currentdir in the tab
echo -ne "\e]1;$PWD:h:t/$PWD:t\a"
}
#function set_running_app {
# printf "\e]1; $PWD:t:$(history $HISTCMD | cut -b7- ) \a"
#}
#
#function preexec {
# set_running_app
#}
#
#function postexec {
# set_running_app
#}