fish: Remove git branch from prompt

This was cool but it breaks with the latest version of fish. Instead of
trying to fix this I'd rather use a less hacky solution.
This commit is contained in:
Donovan Glover 2021-07-07 10:14:18 -04:00
parent f125fbde38
commit ca50b7646c
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -1,5 +1,5 @@
# New Start: A modern Arch workflow built with an emphasis on functionality.
# Copyright (C) 2017-2018 Donovan Glover
# Copyright (C) 2017-2021 Donovan Glover
function fish_prompt
@ -10,7 +10,6 @@ function fish_prompt
set_color magenta; echo -n "($PWD)"
else
set pwd (basename $PWD)
set branch (git branch ^/dev/null | sed -n '/\* /s///p')
if [ $PWD = "/home/$USER" ]
set pwd "~"
@ -18,18 +17,6 @@ function fish_prompt
set_color magenta; echo -n "$pwd"
if [ "$branch" ]
set_color normal; echo -n " on "
set_color yellow; echo -n "$branch"
set tag (git describe ^/dev/null | sed 's/-\w*$//')
if [ "$tag" ]
set_color normal; echo -n "/"
set_color cyan; echo -n "$tag"
end
end
set_color normal; echo -n " "
set_color red; echo -n "➤"
set_color green; echo -n "➤"