You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've currently set up $omg_second_line as follows to display the path relative to project root in $PS1. It works, so far so good, but I feel like it's "a bit" convoluted... is there any simpler way to implement this?
omg_second_line='\[\033[36m\]$(git rev-parse --show-toplevel | sed "s/^.*\/\(.*\)$/\1/")/$(git rev-parse --show-prefix)\[\033[m\]$ '
Thanks!
The text was updated successfully, but these errors were encountered:
Hi, I've currently set up $omg_second_line as follows to display the path relative to project root in $PS1. It works, so far so good, but I feel like it's "a bit" convoluted... is there any simpler way to implement this?
omg_second_line='\[\033[36m\]$(git rev-parse --show-toplevel | sed "s/^.*\/\(.*\)$/\1/")/$(git rev-parse --show-prefix)\[\033[m\]$ '
Thanks!
The text was updated successfully, but these errors were encountered: