aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index eb99159..8b5cfa2 100644
--- a/.bashrc
+++ b/.bashrc
@@ -57,6 +57,10 @@ alias vi=vim
# We want a full-fledged 256-color terminal.
TERM=xterm-256color
+# Setup the prompt command for terminals that don't touch it by themselves
+# (e.g. alacritty).
+PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
+
# Set the LESS and the PAGER environment variables.
export LESS="FSRX"
export PAGER=less