Runned a shfmt on .zshrc

This commit is contained in:
Marcin Woźniak 2024-01-13 12:48:55 +01:00
parent 39a7bb5233
commit ea8a1cee3a
Signed by: y0rune
GPG Key ID: F204C385F57EB348

8
.zshrc
View File

@ -4,10 +4,10 @@ CONFIG=$HOME/.config
parse_git_branch() { parse_git_branch() {
command=$(git branch \ command=$(git branch \
2> /dev/null \ 2>/dev/null |
| sed -n -e 's/^\* \(.*\)/\1/p' \ sed -n -e 's/^\* \(.*\)/\1/p' |
| awk 'NF{print $NF}' \ awk 'NF{print $NF}' |
| sed 's/)//g' \ sed 's/)//g' \
2>/dev/null) 2>/dev/null)
[ -z $command ] && echo -e "$ " || echo -e "$command $ " [ -z $command ] && echo -e "$ " || echo -e "$command $ "
} }