2021-01-26 04:34:15 +03:00
|
|
|
# RUN: %fish %s
|
2022-09-05 19:56:50 +03:00
|
|
|
_tide_parent_dirs
|
2021-01-26 04:34:15 +03:00
|
|
|
|
2020-05-09 08:48:35 +03:00
|
|
|
function _context
|
2020-05-22 00:58:09 +03:00
|
|
|
_tide_decolor (_tide_item_context)
|
2020-05-09 08:48:35 +03:00
|
|
|
end
|
|
|
|
|
2022-09-05 21:07:29 +03:00
|
|
|
set -lx tide_context_hostname_parts 5
|
|
|
|
|
2021-01-26 04:34:15 +03:00
|
|
|
set -lx tide_context_always_display false
|
|
|
|
_context # Check:
|
|
|
|
|
|
|
|
set -lx tide_context_always_display true
|
2022-09-05 21:07:29 +03:00
|
|
|
_context # CHECK: {{[^@]*@[^@]*}}
|
2021-01-26 04:34:15 +03:00
|
|
|
|
|
|
|
set -g SSH_TTY /dev/pts/0
|
2022-09-05 21:07:29 +03:00
|
|
|
_context # CHECK: {{[^@]*@[^@]*}}
|
2021-01-26 04:34:15 +03:00
|
|
|
|
2022-07-30 00:49:47 +03:00
|
|
|
set EUID 0
|
2022-09-05 21:07:29 +03:00
|
|
|
_context # CHECK: {{[^@]*@[^@]*}}
|
|
|
|
|
|
|
|
set -lx tide_context_hostname_parts 0
|
|
|
|
_context # CHECK: {{[^@]*}}
|