kujiu (@uberwald)
8ca6287fb1
-> Passwords in KeePassXC (access by keyring) -> Neomutt + Aerc (mail) -> vdirsyncer + khal + khard (calendar and contacts) zsh -> fish -> poezio (XMPP) -> newsboat (RSS with FreshRSS) -> toot (Mastodon client) vim -> neovim (with lunarvim) -> nvimpager (pager based on neovim) -> konsole With Nightfox theme.
15 lines
952 B
Fish
15 lines
952 B
Fish
function _tide_item_context
|
|
if set -q SSH_TTY
|
|
set -lx tide_context_color $tide_context_color_ssh
|
|
test "$tide_context_hostname_parts" = 0 && _tide_print_item context $USER ||
|
|
h=(string split . $hostname) _tide_print_item context $USER@(string join . $h[..$tide_context_hostname_parts])
|
|
else if test "$EUID" = 0
|
|
set -lx tide_context_color $tide_context_color_root
|
|
test "$tide_context_hostname_parts" = 0 && _tide_print_item context $USER ||
|
|
h=(string split . $hostname) _tide_print_item context $USER@(string join . $h[..$tide_context_hostname_parts])
|
|
else if test "$tide_context_always_display" = true
|
|
set -lx tide_context_color $tide_context_color_default
|
|
test "$tide_context_hostname_parts" = 0 && _tide_print_item context $USER ||
|
|
h=(string split . $hostname) _tide_print_item context $USER@(string join . $h[..$tide_context_hostname_parts])
|
|
end
|
|
end
|