2020-05-19 06:03:25 +03:00
|
|
|
# Created by tide configure
|
2020-04-21 22:15:05 +03:00
|
|
|
function fish_prompt --description 'Write out the prompt'
|
2020-04-29 22:32:59 +03:00
|
|
|
set -g last_pipestatus $pipestatus
|
|
|
|
set -g last_status $status
|
2020-04-21 22:15:05 +03:00
|
|
|
|
2020-05-27 02:20:42 +03:00
|
|
|
set -g git_dir (git rev-parse --show-toplevel 2>/dev/null)
|
|
|
|
|
2020-05-19 06:03:25 +03:00
|
|
|
if test "$tide_newline" = 'true'
|
2020-05-18 20:06:02 +03:00
|
|
|
printf '%b' '\n'
|
2020-05-15 07:53:37 +03:00
|
|
|
end
|
2020-04-21 22:15:05 +03:00
|
|
|
|
2020-05-19 06:03:25 +03:00
|
|
|
set_color $tide_prompt_connection_color
|
|
|
|
printf "%.s$tide_prompt_connection_icon" (seq $COLUMNS)
|
2020-04-21 22:15:05 +03:00
|
|
|
set_color $fish_color_normal
|
|
|
|
|
2020-05-18 20:06:02 +03:00
|
|
|
printf '%b' '\r'
|
2020-05-20 20:05:33 +03:00
|
|
|
_tide_right_prompt
|
2020-04-25 22:21:09 +03:00
|
|
|
|
2020-05-18 20:06:02 +03:00
|
|
|
printf '%b' '\r'
|
2020-05-20 20:05:33 +03:00
|
|
|
_tide_left_prompt
|
2020-04-21 22:15:05 +03:00
|
|
|
end
|