aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-19 12:26:19 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-07-19 12:26:19 +0300
commit7a114ad6fb0182ddf5515cd8e54dcdf75f3aa7d6 (patch)
tree2d9e89175cde11fec805c7bb13fd08737957fc73 /internal/p10k.zsh
parent86b747f4342c383eb63ad4be266cbf535c72c4d4 (diff)
detect artix linux for the sake of displaying os logo; see #898
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 97f11059..6e2fc053 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -7742,7 +7742,7 @@ _p9k_must_init() {
[[ $sig == $_p9k__param_sig ]] && return 1
_p9k_deinit
fi
- _p9k__param_pat=$'v101\1'${(q)ZSH_VERSION}$'\1'${(q)ZSH_PATCHLEVEL}$'\1'
+ _p9k__param_pat=$'v102\1'${(q)ZSH_VERSION}$'\1'${(q)ZSH_PATCHLEVEL}$'\1'
_p9k__param_pat+=$'${#parameters[(I)POWERLEVEL9K_*]}\1${(%):-%n%#}\1$GITSTATUS_LOG_LEVEL\1'
_p9k__param_pat+=$'$GITSTATUS_ENABLE_LOGGING\1$GITSTATUS_DAEMON\1$GITSTATUS_NUM_THREADS\1'
_p9k__param_pat+=$'$GITSTATUS_CACHE_DIR\1$GITSTATUS_AUTO_INSTALL\1${ZLE_RPROMPT_INDENT:-1}\1'
@@ -7838,6 +7838,8 @@ function _p9k_init_cacheable() {
local lines=(${(f)"$(</etc/os-release)"})
lines=(${(@M)lines:#ID=*})
(( $#lines == 1 )) && os_release_id=${lines[1]#ID=}
+ elif [[ -e /etc/artix-release ]]; then
+ os_release_id=artix
fi
case $os_release_id in
*arch*) _p9k_set_os Linux LINUX_ARCH_ICON;;
@@ -7860,6 +7862,7 @@ function _p9k_init_cacheable() {
*devuan*) _p9k_set_os Linux LINUX_DEVUAN_ICON;;
*manjaro*) _p9k_set_os Linux LINUX_MANJARO_ICON;;
*void*) _p9k_set_os Linux LINUX_VOID_ICON;;
+ *artix*) _p9k_set_os Linux LINUX_ARTIX_ICON;;
*) _p9k_set_os Linux LINUX_ICON;;
esac
;;