mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-30 04:23:36 +08:00
Update fish_prompt.fish
This commit is contained in:
parent
b8c0a29813
commit
faccacaa8b
|
@ -45,11 +45,12 @@ function fish_prompt --description 'Write out the prompt'
|
||||||
(set_color $base01) $__fish_prompt_hostname \
|
(set_color $base01) $__fish_prompt_hostname \
|
||||||
)
|
)
|
||||||
|
|
||||||
set -l _context_part (concat \
|
# Virtualenv, git, &c.
|
||||||
|
set -l context_part (concat \
|
||||||
$__fish_prompt_cwd (prompt_pwd) $venv (set_color -o $c_yellow) (__fish_git_prompt) \
|
$__fish_prompt_cwd (prompt_pwd) $venv (set_color -o $c_yellow) (__fish_git_prompt) \
|
||||||
)
|
)
|
||||||
|
|
||||||
set -l prompt_end (concat (set_color $base01) '➞')
|
set -l prompt_end (concat (set_color $base01) '➞')
|
||||||
|
|
||||||
echo -n (concat $ret_part " " $user_part " " $_context_part " " $prompt_end (set_color normal) " ")
|
echo -n (concat $ret_part " " $user_part " " $context_part " " $prompt_end (set_color normal) " ")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user