-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.prmpt
69 lines (62 loc) · 1.53 KB
/
default.prmpt
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This is the default prompt for prmpt
%
% vim: set filetype=tex:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\info1{
\user
}
\default{
@
}
\bright{
\hostname
}
\space
\info2{
\workingdir
}
\ifexpr{\isrealpath}{}{\space\warning{(!)}}
\ifexpr{\isrepo}{
\space
\ifexpr{\isrepodirty}{\startColour{error}} {
\ifexpr{\behind}{\startColour{warning}}{
\ifexpr{\ahead}{\startColour{warning}}{
\startColour{info1}
}
}
}
( \repobranch )
\stopColour
\space
\dim3{\opensquare}
\ifexpr{\gt{\last_fetched_min}{60}}{\startColour{warning}} {\startColour{dim3}}
\unichar{0x29D7}\space\last_fetched_min
\stopColour
\space
\ifexpr{\behind}{\startColour{warning}} {\startColour{dim3}}
\unichar{0x25be}\behind
\stopColour
\space
\dim3{# \commit}
\space
\ifexpr{\ahead}{\startColour{warning}} {\startColour{dim3}}
\unichar{0x25b4}\ahead
\stopColour
\space
\ifexpr{\staged}{\startColour{warning}} {\startColour{dim3}}
\unichar{0x2714}\space\staged
\stopColour
\space
\ifexpr{\changed}{\startColour{warning}} {\startColour{dim3}}
\unichar{0x270e}\space\changed
\stopColour
\space
\ifexpr{\untracked}{\startColour{warning}} {\startColour{dim3}}
?\untracked
\stopColour
\dim3{\closesquare}
}{}
\newline
\smiley
\space