From 3913586f678437d6de80bc96c8eea0e1e69a51ac Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Wed, 5 Jul 2023 17:05:39 -0300 Subject: Updated tide --- .config/fish/functions/_tide_item_git.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.config/fish/functions/_tide_item_git.fish') diff --git a/.config/fish/functions/_tide_item_git.fish b/.config/fish/functions/_tide_item_git.fish index 9fca6d0e..43d46cb1 100644 --- a/.config/fish/functions/_tide_item_git.fish +++ b/.config/fish/functions/_tide_item_git.fish @@ -1,10 +1,10 @@ function _tide_item_git - if git branch --show-current 2>/dev/null | string replace -r "(.{$tide_git_truncation_length}).+" '$1…' | read -l location + if git branch --show-current 2>/dev/null | string replace -r ".+(.{$tide_git_truncation_length})" '…$1' | read -l location git rev-parse --git-dir --is-inside-git-dir | read -fL gdir in_gdir set location $_tide_location_color$location else if test $pipestatus[1] != 0 return - else if git tag --points-at HEAD | string replace -r "(.{$tide_git_truncation_length}).+" '$1…' | read location + else if git tag --points-at HEAD | string replace -r ".+(.{$tide_git_truncation_length})" '…$1' | read location git rev-parse --git-dir --is-inside-git-dir | read -fL gdir in_gdir set location '#'$_tide_location_color$location else -- cgit v1.2.3