blob: d75b17b5838f5ed762526f80948d707fff389c8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# name: Terlar
# author: terlar - https://github.com/terlar
function fish_prompt --description 'Write out the prompt'
set -l last_status $status
# User
set_color $fish_color_user
echo -n (whoami)
set_color normal
echo -n '@'
# Host
set_color $fish_color_host
echo -n (hostname -s)
set_color normal
echo -n ':'
# PWD
set_color $fish_color_cwd
echo -n (prompt_pwd)
set_color normal
__terlar_git_prompt
__fish_hg_prompt
echo
if not test $last_status -eq 0
set_color $fish_color_error
end
echo -n '➤ '
set_color normal
end
|