Update fisher & tide, add VS Code, i3, & sway configs

This commit is contained in:
askiiart 2023-11-20 01:07:05 -06:00
parent 9a43cae5fa
commit 80f43e8f7e
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
62 changed files with 453 additions and 616 deletions

View file

@ -1,14 +1,15 @@
function _tide_item_context
if set -q SSH_TTY
set -fx tide_context_color $tide_context_color_ssh
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 -fx tide_context_color $tide_context_color_root
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 -fx tide_context_color $tide_context_color_default
else
return
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
string match -qr "^(?<h>(\.?[^\.]*){0,$tide_context_hostname_parts})" @$hostname
_tide_print_item context $USER$h
end