tide/tests/_tide_item_context.test.fish

18 lines
309 B
Fish
Raw Normal View History

2021-01-26 04:34:15 +03:00
# RUN: %fish %s
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: {{.*@.*}}
2021-02-11 22:36:10 +03:00
set USER root
_context # CHECK: {{root@.*}}