blob: e4a4072412b8ef0bce48b38beadbc0f36453f4dc (
plain)
1
2
3
4
5
|
# Runs whenever a command is ran
function precmd () {
builtin print -Pn "\e]0;${USER}@${HOST} %~\a" # Update window title
builtin print -Pn "\e]7;file://${PWD}\a" # Update terminal emulators's cwd
}
|