mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 12:03:48 +03:00
Remove sudo from context test
This commit is contained in:
parent
cd8f322dce
commit
89245616ba
@ -1,7 +1,5 @@
|
|||||||
# RUN: %fish %s
|
# RUN: %fish %s
|
||||||
|
|
||||||
set -l sourceFile "$_tide_root/functions/_tide_item_context.fish"
|
|
||||||
|
|
||||||
function _context
|
function _context
|
||||||
_tide_decolor (_tide_item_context)
|
_tide_decolor (_tide_item_context)
|
||||||
end
|
end
|
||||||
@ -15,4 +13,5 @@ _context # CHECK: {{.*@.*}}
|
|||||||
set -g SSH_TTY /dev/pts/0
|
set -g SSH_TTY /dev/pts/0
|
||||||
_context # CHECK: {{.*@.*}}
|
_context # CHECK: {{.*@.*}}
|
||||||
|
|
||||||
_tide_decolor (sudo fish --command="source $sourceFile;_tide_item_context") # CHECK: {{root@.*}}
|
set USER root
|
||||||
|
_context # CHECK: {{root@.*}}
|
||||||
|
Loading…
Reference in New Issue
Block a user