From 0500c62e8184b7818cf2ac0fdef9020d4e8013a1 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 21 Oct 2017 18:09:27 +0200 Subject: [PATCH] Customized fish title to work with emacs --- shells/fish/functions/fish_title.fish | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 shells/fish/functions/fish_title.fish diff --git a/shells/fish/functions/fish_title.fish b/shells/fish/functions/fish_title.fish new file mode 100644 index 0000000..f1646ed --- /dev/null +++ b/shells/fish/functions/fish_title.fish @@ -0,0 +1,12 @@ +# Defined in /tmp/fish.au862c/fish_title.fish @ line 2 +function fish_title + if test -z $EMACS + if test $_ = 'fish' + echo (prompt_pwd) + else + echo $_ + end + else + true + end +end