Closed zymr-keshav closed 6 years ago
in macOS x HighSierra 10.13.2
I have a custom method in ~/.bash_profile which prompt git branch name in terminal
parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } # some other code export PS1="${GREEN}\u@${YELLOW}\h:${LIGHT_RED}\w${LIGHT_GREEN}\$(parse_git_branch)${WHITE} $
now when I start recording with
ttystudio --outout.gif --log
it display error
parse: parse_git_branch: command not found
How to overcome this issue?
fixed problem
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
source ~/.bash_profile
in macOS x HighSierra 10.13.2
I have a custom method in ~/.bash_profile which prompt git branch name in terminal
now when I start recording with
ttystudio --outout.gif --log
it display error
How to overcome this issue?