Merge pull request #240 from taflaj/hostname

Added `shortname` option to @dracula-show-left-icon
This commit is contained in:
Ethan Edwards 2023-12-03 18:32:09 -05:00 committed by GitHub
commit 57f6f0b4a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -75,7 +75,7 @@ Switch powerline symbols
# for left # for left
set -g @dracula-show-left-sep  set -g @dracula-show-left-sep 
# for right symbol (can set any symbol you like as seperator) # for right symbol (can set any symbol you like as separator)
set -g @dracula-show-right-sep  set -g @dracula-show-right-sep 
``` ```
@ -95,7 +95,7 @@ set -g @dracula-refresh-rate 5
Switch the left smiley icon Switch the left smiley icon
```bash ```bash
# it can accept `session`, `smiley`, `window`, or any character. # it can accept `hostname` (full hostname), `session`, `shortname` (short name), `smiley`, `window`, or any character.
set -g @dracula-show-left-icon session set -g @dracula-show-left-icon session
``` ```

View file

@ -56,6 +56,8 @@ main()
left_icon="#W";; left_icon="#W";;
hostname) hostname)
left_icon="#H";; left_icon="#H";;
shortname)
left_icon="#h";;
*) *)
left_icon=$show_left_icon;; left_icon=$show_left_icon;;
esac esac