From 398a60b8663f0be26563fd5b05e688b8bdb0b146 Mon Sep 17 00:00:00 2001 From: Darren Kidd Date: Tue, 8 Sep 2020 15:08:06 +1200 Subject: [PATCH] =?UTF-8?q?Custom=20glyph=20=E2=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Not convinced this is the best one but it's a start. --- fish_prompt.fish | 2 +- functions/__bobthefish_glyphs.fish | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 3ac1c2e..ee4d7ba 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -664,7 +664,7 @@ function __bobthefish_prompt_aws_vault_profile -S -d 'Show AWS Vault profile' [ "$diff_mins" -lt 0 ] and set -l diff_mins 0 - set -l segment $profile " (" $diff_mins "m)" + set -l segment $aws_vault_glyph " " $profile " (" $diff_mins "m)" __bobthefish_start_segment $color_desk echo -ns $segment " " diff --git a/functions/__bobthefish_glyphs.fish b/functions/__bobthefish_glyphs.fish index c0f13e2..c57289f 100644 --- a/functions/__bobthefish_glyphs.fish +++ b/functions/__bobthefish_glyphs.fish @@ -30,6 +30,9 @@ function __bobthefish_glyphs -S -d 'Define glyphs used by bobthefish' # Kubernetes glyphs set -x k8s_glyph \u2388 # '⎈' + # AWS glyphs + set -x aws_vault_glyph \u2601 # '☁' + # Vagrant glyphs set -x vagrant_running_glyph \u2191 # ↑ 'running' set -x vagrant_poweroff_glyph \u2193 # ↓ 'poweroff'