From b7e18cb0563e78aff4a2f6c43ebf4b32767b5862 Mon Sep 17 00:00:00 2001 From: David Celis Date: Tue, 11 Jun 2013 15:08:24 -0700 Subject: [PATCH] Escape $PWD into a file:// protocol for OSX in the title Signed-off-by: David Celis --- config/fish/functions/fish_title.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/fish/functions/fish_title.fish b/config/fish/functions/fish_title.fish index 07cf4f5..c2070b6 100644 --- a/config/fish/functions/fish_title.fish +++ b/config/fish/functions/fish_title.fish @@ -1,3 +1,4 @@ function fish_title - echo $_ + set -l pwd (echo -n $PWD | sed 's/ /%20/g') + printf '\a\033]7;file://localhost/%s' $pwd end -- 2.51.2