Closed terryupton closed 4 years ago
I currently have my config like so:
typeset -g POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( # =========================[ Line #1 ]========================= os_icon # os identifier dir # current directory # =========================[ Line #2 ]========================= newline # \n vcs # git status # =========================[ Line #3 ]========================= newline # \n prompt_char # prompt symbol )
This works nicely if there is VCS (git) present wirhin the current path. However, an empty line appears if not.
Is there a way to check and only add a new line if VCS exists?
See below: Empty Line
Ok if in a directory with Git
If you are using Powerlevel10k, please file an issue against Powerlevel10k.
FTR: Issue in Powerlevel10k: https://github.com/romkatv/powerlevel10k/issues/504.
I currently have my config like so:
This works nicely if there is VCS (git) present wirhin the current path. However, an empty line appears if not.
Is there a way to check and only add a new line if VCS exists?
See below: Empty Line
Ok if in a directory with Git