tide/tests/_tide_item_context.test.fish
2022-09-05 14:07:29 -04:00

24 lines
446 B
Fish

# RUN: %fish %s
_tide_parent_dirs
function _context
_tide_decolor (_tide_item_context)
end
set -lx tide_context_hostname_parts 5
set -lx tide_context_always_display false
_context # Check:
set -lx tide_context_always_display true
_context # CHECK: {{[^@]*@[^@]*}}
set -g SSH_TTY /dev/pts/0
_context # CHECK: {{[^@]*@[^@]*}}
set EUID 0
_context # CHECK: {{[^@]*@[^@]*}}
set -lx tide_context_hostname_parts 0
_context # CHECK: {{[^@]*}}