1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 17:50:09 +00:00

add '.terraform' to POWERLEVEL9K_SHORTEN_FOLDER_MARKER

This commit is contained in:
Roman Perepelitsa 2019-06-02 09:47:11 +02:00 committed by GitHub
parent 5e72d3ca80
commit 8b040d4cfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -808,7 +808,7 @@ prompt_dir() {
local -i d=_P9K_RETVAL
shortenlen=${POWERLEVEL9K_SHORTEN_DIR_LENGTH:-1}
(( shortenlen >= 0 )) && n=shortenlen
local pat=${POWERLEVEL9K_SHORTEN_FOLDER_MARKER-'(.bzr|CVS|.git|.hg|.svn|.citc)'}
local pat=${POWERLEVEL9K_SHORTEN_FOLDER_MARKER-'(.bzr|CVS|.git|.hg|.svn|.terraform|.citc)'}
local parent="${PWD%/${(pj./.)parts[i,-1]}}"
for (( ; i <= $#parts - n; ++i )); do
local dir=$parts[i]