summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 513cd59..0102b86 100644
--- a/.bashrc
+++ b/.bashrc
@@ -26,6 +26,17 @@ if ! shopt -oq posix; then
fi
fi
+function xtitle() {
+ case $TERM in
+ xterm*|rxvt*|Eterm|eterm|alacritty)
+ echo -ne "\e]0;$1\007"
+ ;;
+ screen)
+ echo -ne "\e_$1\e\\"
+ ;;
+ esac
+}
+
function starship_set_win_title() {
local cwd="${PWD/$HOME/\~}"
cwd="${cwd##[/~]*/}/"