mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-22 23:18:05 +03:00
* temporary dvctr * start of work * fix: timeouts in windows * fish? * feat: better, working stuff * refactor: rename database-seeds to seeds/ * better * fdsaf * feat: don't let our container get owned by root * fix: better user handling * feat: falling asleep at my desk i yield to you what i have done * feat: autoadminify * docs: denote trickshot * feat: open in browser on launch * better seeds workings... * fix: dont kill shell * docs: mention dev/debs * fix: whoops * fix: make seeds load within the century * feat: rest of the containerisation * feat: new alias * style: fix linter errors * fix: bad call * fix: better justfile
15 lines
475 B
Fish
15 lines
475 B
Fish
function _tide_item_context
|
|
if set -q SSH_TTY
|
|
set -fx tide_context_color $tide_context_color_ssh
|
|
else if test "$EUID" = 0
|
|
set -fx tide_context_color $tide_context_color_root
|
|
else if test "$tide_context_always_display" = true
|
|
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
|