From 895162d608a519e46a2eed906c863e3696222b68 Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Sat, 13 Jul 2024 12:58:24 -0400 Subject: refactor: `.screenrc`-related changes --- .config/fish/functions/fish_title.fish | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .config/fish/functions/fish_title.fish (limited to '.config/fish/functions') diff --git a/.config/fish/functions/fish_title.fish b/.config/fish/functions/fish_title.fish new file mode 100644 index 0000000..f3f0a93 --- /dev/null +++ b/.config/fish/functions/fish_title.fish @@ -0,0 +1,15 @@ +function fish_title + echo $argv[1] (prompt_pwd) + + switch "$TERM" + case 'screen*' + + if set -q SSH_CLIENT + set maybehost (hostname): + else + set maybehost "" + end + + echo -ne "\\ek"$maybehost(status current-command)"\\e\\" > /dev/tty + end +end -- cgit v1.2.3