aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlkindi42 <alkindus42@gmail.com>2023-05-21 22:45:11 +0300
committerAlkindi42 <alkindus42@gmail.com>2023-05-21 22:45:11 +0300
commit6db5920bb9ecdba25b8253a93120f973b686199f (patch)
tree70e9b1d79cf31fe9f864f5d7e1bcdba37e2a9fce
parent29c0b258505c5214667c20ce4cb5d4f7e743776c (diff)
feat: add chezmoi icon
-rw-r--r--internal/icons.zsh5
-rw-r--r--internal/p10k.zsh2
2 files changed, 6 insertions, 1 deletions
diff --git a/internal/icons.zsh b/internal/icons.zsh
index 6b3a9b09..b5f1d0ec 100644
--- a/internal/icons.zsh
+++ b/internal/icons.zsh
@@ -107,6 +107,7 @@ function _p9k_init_icons() {
VCS_SVN_ICON 'svn'$q
RUST_ICON 'R'
PYTHON_ICON '\uE63C'$s #  (doesn't always work)
+ CHEZMOI_ICON '\uf015' # 
SWIFT_ICON 'Swift'
GO_ICON 'Go'
GOLANG_ICON 'Go'
@@ -243,6 +244,7 @@ function _p9k_init_icons() {
VCS_SVN_ICON 'svn'$q
RUST_ICON '\uE6A8' # 
PYTHON_ICON '\uE63C'$s # 
+ CHEZMOI_ICON '\uf015' # 
SWIFT_ICON 'Swift'
GO_ICON 'Go'
GOLANG_ICON 'Go'
@@ -384,6 +386,7 @@ function _p9k_init_icons() {
VCS_SVN_ICON 'svn'$q
RUST_ICON '\uE6A8' # 
PYTHON_ICON '\U1F40D' # 🐍
+ CHEZMOI_ICON "${CODEPOINT_OF_AWESOME_HOME:+\\u$CODEPOINT_OF_AWESOME_HOME}"
SWIFT_ICON '\uE655'$s # 
PUBLIC_IP_ICON "${CODEPOINT_OF_AWESOME_GLOBE:+\\u$CODEPOINT_OF_AWESOME_GLOBE$s}"
LOCK_ICON "${CODEPOINT_OF_AWESOME_LOCK:+\\u$CODEPOINT_OF_AWESOME_LOCK}"
@@ -519,6 +522,7 @@ function _p9k_init_icons() {
VCS_SVN_ICON '\uE72D'$q # 
RUST_ICON '\uE7A8'$q # 
PYTHON_ICON '\UE73C ' # 
+ CHEZMOI_ICON '\Uf015' # 
SWIFT_ICON '\uE755' # 
GO_ICON '\uE626' # 
GOLANG_ICON '\uE626' # 
@@ -656,6 +660,7 @@ function _p9k_init_icons() {
VCS_SVN_ICON '\uE72D'$q # 
RUST_ICON '\uE7A8'$q # 
PYTHON_ICON '\UE73C ' # 
+ CHEZMOI_ICON '\Uf015' # 
SWIFT_ICON '\uE755' # 
GO_ICON '\uE626' # 
GOLANG_ICON '\uE626' # 
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index dea5e26d..b2b07aa6 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -4264,7 +4264,7 @@ instant_prompt_vi_mode() {
# Segment to display chezmoi information.
# More information: https://www.chezmoi.io/
prompt_chezmoi() {
- _p9k_prompt_segment "$0" "blue" "$_p9k_color1" '' 0 '' "chezmoi"
+ _p9k_prompt_segment "$0" "black" "white" 'CHEZMOI_ICON' 0 '' "chezmoi"
}
_p9k_prompt_chezmoi_init() {