2012-09-06 16:30:26 +08:00
|
|
|
# name: lonetwin
|
|
|
|
# author: Steve
|
|
|
|
|
|
|
|
function fish_prompt --description 'Write out the prompt'
|
2016-11-02 10:19:45 +08:00
|
|
|
if not set -q __fish_prompt_normal
|
|
|
|
set -g __fish_prompt_normal (set_color normal)
|
|
|
|
end
|
2012-09-06 16:30:26 +08:00
|
|
|
|
2016-11-02 10:19:45 +08:00
|
|
|
if not set -q __fish_prompt_cwd
|
|
|
|
set -g __fish_prompt_cwd (set_color $fish_color_cwd)
|
|
|
|
end
|
2012-09-06 16:30:26 +08:00
|
|
|
|
2016-11-02 10:19:45 +08:00
|
|
|
echo -n -s "$USER" @ (prompt_hostname) ' ' "$__fish_prompt_cwd" (prompt_pwd) (__fish_vcs_prompt) "$__fish_prompt_normal" '> '
|
2012-09-06 16:30:26 +08:00
|
|
|
end
|