[GH-ISSUE #53] git branch parsing output error only in recording mode #643

Closed
opened 2026-03-15 06:08:38 +03:00 by kerem · 0 comments
Owner

Originally created by @gabrielstuff on GitHub (Feb 20, 2014).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/53

Hi !
This looks like a great tool, but I just met an issue, and I'm not able to find anything in the history.

So here it is : https://asciinema.org/a/7767. As you can see there is an error :

bash: parse_git_branch: command not found

So it is for sure connected to this line in my .bash_profile :

#Color branches
parse_git_branch() {
  git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \[\1\]/'
}

PS1='\t:\[\033[0;32m\]\u\[\033[0m\]@\[\033[01;31m\]\w\[\033[1;35m\]$(parse_git_branch)\[\033[00m\] \$ ' 

Any hint would be appreciated.

Thanks

Originally created by @gabrielstuff on GitHub (Feb 20, 2014). Original GitHub issue: https://github.com/asciinema/asciinema/issues/53 Hi ! This looks like a great tool, but I just met an issue, and I'm not able to find anything in the history. So here it is : https://asciinema.org/a/7767. As you can see there is an error : `bash: parse_git_branch: command not found` So it is for sure connected to this line in my `.bash_profile` : ``` #Color branches parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ \[\1\]/' } PS1='\t:\[\033[0;32m\]\u\[\033[0m\]@\[\033[01;31m\]\w\[\033[1;35m\]$(parse_git_branch)\[\033[00m\] \$ ' ``` Any hint would be appreciated. Thanks
kerem closed this issue 2026-03-15 06:08:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#643
No description provided.