mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-24 01:13:13 +03:00
11 lines
376 B
Fish
11 lines
376 B
Fish
@mesg '-----------context-----------'
|
|
|
|
set -l sourceFile "$__fish_config_dir/functions/_tide_item_context.fish"
|
|
|
|
function _context
|
|
_tide_decolor (_tide_item_context)
|
|
end
|
|
|
|
@test 'None' (_context) -z
|
|
@test 'SSH' (set -g SSH_TTY 'true'; _context) = $USER'@'$hostname' '
|
|
@test 'Root' (_tide_decolor (sudo fish -c "source $sourceFile;_tide_item_context")) = 'root@'$hostname' ' |