diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2019-01-24 00:47:10 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2019-01-24 00:47:10 +0300 |
commit | 081000c49e3792a9d2877344650011a7b38a30c3 (patch) | |
tree | ad29bd3633db50d769e885105450904f8c46b890 /powerlevel9k.zsh-theme | |
parent | 8b4bed99df95cfc3e3ad80f500098bab1c9cdb7b (diff) |
Replace call to basename with ZSH internals #1128
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 60c16b5a..383a3b91 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -1652,7 +1652,7 @@ prompt_virtualenv() { # Early exit; $virtualenv_path must always be set. [[ -z "$virtualenv_path" ]] && return - "$1_prompt_segment" "$0" "$2" "blue" "$DEFAULT_COLOR" "$(basename "$virtualenv_path")" 'PYTHON_ICON' + "$1_prompt_segment" "$0" "$2" "blue" "$DEFAULT_COLOR" "${virtualenv_path:t}" 'PYTHON_ICON' } ################################################################ |