2021-01-26 04:34:15 +03:00
|
|
|
# RUN: %fish %s
|
|
|
|
|
2021-01-01 08:07:13 +03:00
|
|
|
set -l sourceFile "$_tide_root/functions/_tide_item_context.fish"
|
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
|
|
|
|
|
2021-01-26 04:34:15 +03:00
|
|
|
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: {{.*@.*}}
|
|
|
|
|
|
|
|
_tide_decolor (sudo fish --command="source $sourceFile;_tide_item_context") # CHECK: {{root@.*}}
|