From 947d163b38940f64541a46cabfa884778fe69817 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 11 Nov 2021 18:41:16 +0300 Subject: fish: migration --- .config/fish/functions/fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/fish/functions') diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish index 24e6e71..eb90abb 100644 --- a/.config/fish/functions/fish_prompt.fish +++ b/.config/fish/functions/fish_prompt.fish @@ -16,7 +16,7 @@ function fish_prompt set marker "$marker_color# " end - set -l cwd $cyan (string join / (string split -rn -m3 / (prompt_pwd) | tail -n3)) + set -l cwd $cyan (string join / (string split -rn -m3 / (prompt_pwd))[-3..-1]) echo -n -s $marker ' '$cwd $normal ' ' end -- cgit v1.2.3-70-g09d2