make the POWERLEVEL9K_DIR_HYPERLINKs actually open in WSL. Add a setting POWERLEVEL9K_WSL_NETWORK_DRIVE to specify the wsl root, as well as recognizing /mnt/? and />/

This commit is contained in:
Richard Ziegler 2021-05-04 00:54:27 -04:00
commit db7b18c5d3
5 changed files with 39 additions and 1 deletions

View file

@ -275,6 +275,13 @@
# the full directory that was used in previous commands.
typeset -g POWERLEVEL9K_DIR_HYPERLINK=false
# If POWERLEVEL9K_DIR_HYPERLINK is true and using WSL, then set this to make the links work:
# You must also map this drive letter on the windows side:
# ```
# net use L: \\wsl$\Ubuntu-20.04 /persistent:yes
# ```
# typeset -g POWERLEVEL9K_WSL_NETWORK_DRIVE=L:
# Enable special styling for non-writable and non-existent directories. See POWERLEVEL9K_LOCK_ICON
# and POWERLEVEL9K_DIR_CLASSES below.
typeset -g POWERLEVEL9K_DIR_SHOW_WRITABLE=v3