diff options
author | Jesse Luehrs <doy@tozt.net> | 2023-07-15 02:57:44 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2023-07-15 02:57:44 -0400 |
commit | 7cd07c63cce0a617fb03992c2b5fc383d1c0c08f (patch) | |
tree | 26bb2b944755e12de5c1cc04bb747054fb33e74e /config | |
parent | 03b064b03d1f94b20d80da5a7fb71a1dd95370f9 (diff) | |
download | conf-7cd07c63cce0a617fb03992c2b5fc383d1c0c08f.tar.gz conf-7cd07c63cce0a617fb03992c2b5fc383d1c0c08f.zip |
few more tweaks
Diffstat (limited to 'config')
-rw-r--r-- | config/starship.toml.PL | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/config/starship.toml.PL b/config/starship.toml.PL index 54532dd..580ee04 100644 --- a/config/starship.toml.PL +++ b/config/starship.toml.PL @@ -2,7 +2,8 @@ use 5.014; use warnings; -my $char = $ARGV[0] eq 'root' ? '#' : '$'; +my $char = $ARGV[0] eq 'root' ? '#' : '\\\\$'; +my $user = $ARGV[0] eq 'root' ? 'bright-red' : 'bright-blue'; my $host = { 'mz-doy1' => 'bright-white', 'tozt' => 'bright-yellow', @@ -13,6 +14,7 @@ my $host = { while (<DATA>) { s/\@\@CHAR\@\@/$char/; + s/\@\@USER\@\@/$user/; s/\@\@HOST\@\@/$host/; print; } @@ -20,7 +22,7 @@ while (<DATA>) { __DATA__ format = """ [\\(](host)$directory([|](host)$git_branch$git_commit$git_status([|](host)$git_state))[\\)](host)( $aws)( $kubernetes)( $pulumi) $fill ($cmd_duration )($battery )$username[@](bg)$hostname [\\[](host)$time[\\]](host) $line_break\ -$status [\\@@CHAR@@](user) +$status [@@CHAR@@](user) """ right_format = '$character' add_newline = false @@ -132,5 +134,5 @@ vimcmd_symbol = '[\[NOR\]](bright-yellow)' [palettes.local] bg = 'bright-black' git = 'green' -user = 'bright-blue' +user = '@@USER@@' host = '@@HOST@@' |