summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/icons.zsh13
-rw-r--r--internal/p10k.zsh6
2 files changed, 15 insertions, 4 deletions
diff --git a/internal/icons.zsh b/internal/icons.zsh
index b1c1d4c1..8bef2168 100644
--- a/internal/icons.zsh
+++ b/internal/icons.zsh
@@ -114,7 +114,8 @@ function _p9k_init_icons() {
TERRAFORM_ICON '\U1F6E0\u00A0' # 🛠️
PROXY_ICON '\u2B82' # ⮂
DOTNET_ICON '.NET'
- AZURE_ICON '\u2601' # ☁
+ AZURE_ICON '\u2601' # ☁
+ DIRENV_ICON '\u25BC' # ▼
)
;;
'awesome-fontconfig')
@@ -216,7 +217,8 @@ function _p9k_init_icons() {
TERRAFORM_ICON '\U1F6E0\u00A0' # 🛠️
PROXY_ICON '\u2B82' # ⮂
DOTNET_ICON '.NET'
- AZURE_ICON '\u2601' # ☁
+ AZURE_ICON '\u2601' # ☁
+ DIRENV_ICON '\u25BC' # ▼
)
;;
'awesome-mapped-fontconfig')
@@ -323,6 +325,7 @@ function _p9k_init_icons() {
PROXY_ICON '\u2B82' # ⮂
DOTNET_ICON '.NET'
AZURE_ICON '\u2601' # ☁
+ DIRENV_ICON '\u25BC' # ▼
)
;;
'nerdfont-complete'|'nerdfont-fontconfig')
@@ -426,6 +429,7 @@ function _p9k_init_icons() {
PROXY_ICON '\u2B82' # ⮂
DOTNET_ICON '\uE77F' # 
AZURE_ICON '\uFD03' # ﴃ
+ DIRENV_ICON '\u25BC' # ▼
)
;;
*)
@@ -446,7 +450,7 @@ function _p9k_init_icons() {
AWS_EB_ICON '\U1F331' # 🌱
BACKGROUND_JOBS_ICON '\u2699' # ⚙
TEST_ICON ''
- TODO_ICON '\u2611' # ☑ (portable alternatives: ▼ ∆)
+ TODO_ICON '\u2611' # ☑ (portable alternative: ∆)
BATTERY_ICON '\U1F50B' # 🔋
DISK_ICON 'hdd'
OK_ICON '\u2714' # ✔
@@ -525,9 +529,10 @@ function _p9k_init_icons() {
LARAVEL_ICON ''
RANGER_ICON '\u2B50' # ⭐
TERRAFORM_ICON '\U1F6E0\u00A0' # 🛠️
- PROXY_ICON '\u2B82' # ⮂
+ PROXY_ICON '\u2194' # ↔
DOTNET_ICON '.NET'
AZURE_ICON '\u2601' # ☁
+ DIRENV_ICON '\u25BC' # ▼
)
;;
esac
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index fd9b41de..2b924a28 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3347,6 +3347,12 @@ function prompt_proxy() {
_p9k_prompt_segment $0 $_p9k_color1 blue PROXY_ICON 0 '' "$p[1]"
}
+function prompt_direnv() {
+ _p9k_prompt_segment $0 $_p9k_color1 yellow DIRENV_ICON 0 '$DIRENV_DIR' ''
+}
+
+function instant_prompt_direnv() { prompt_direnv; }
+
_p9k_preexec() {
if (( $+_p9k_real_zle_rprompt_indent )); then
if [[ -n $_p9k_real_zle_rprompt_indent ]]; then