Update fisher & tide, add VS Code configs, add partial i3 config (lock (and suspend) not done)

This commit is contained in:
askiiart 2023-11-19 14:34:47 -06:00
parent 63e8262c07
commit 15f30efa7b
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
72 changed files with 1278 additions and 454 deletions

View file

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