summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <56338480+adastx@users.noreply.github.com>2022-05-17 14:40:14 +0200
committerAdam <56338480+adastx@users.noreply.github.com>2022-05-17 14:40:14 +0200
commit8f9027be40cfe82ef4f065210e59339e667a06c5 (patch)
tree38f34e2780d6d05a09d8b74ad8e861b6eee43fc5
parent9edc89d27937b603b619eaa0c47c4bd3e8ffe0e9 (diff)
zshrc: show user, host and pwd in window title
-rw-r--r--.config/zsh/.zshrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index 7f373fc..a54bd48 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -18,6 +18,8 @@ export EDITOR=vim
export VISUAL=vim
export PAGER="less -i -j.5 -R --use-color -Dd+y -Du+c"
+precmd () {print -Pn "\e]0;%n@%m:%~\a"}
+
alias sudo='doas'
alias sudoedit='doasedit'