tide (fish prompt) installed
This commit is contained in:
parent
142fd7eaa4
commit
e83440486a
85 changed files with 2589 additions and 62 deletions
14
.config/fish/functions/_tide_item_context.fish
Normal file
14
.config/fish/functions/_tide_item_context.fish
Normal file
|
@ -0,0 +1,14 @@
|
|||
function _tide_item_context
|
||||
if set -q SSH_TTY
|
||||
set -fx tide_context_color $tide_context_color_ssh
|
||||
else if test "$EUID" = 0
|
||||
set -fx tide_context_color $tide_context_color_root
|
||||
else if test "$tide_context_always_display" = true
|
||||
set -fx tide_context_color $tide_context_color_default
|
||||
else
|
||||
return
|
||||
end
|
||||
|
||||
string match -qr "^(?<h>(\.?[^\.]*){0,$tide_context_hostname_parts})" @$hostname
|
||||
_tide_print_item context $USER$h
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue