Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 45 lines (38 sloc) 1.089 kb
c90f3135 »
2012-08-14 add examples an explanations on how to make themes
1
2 #######################################
3 # LIQUID PROMPT DEFAULT TEMPLATE FILE #
4 #######################################
5
6 # Available features:
7 # LP_BATT battery
8 # LP_LOAD load
9 # LP_JOBS screen sessions/running jobs/suspended jobs
10 # LP_USER user
11 # LP_HOST hostname
12 # LP_PERM a colon ":"
13 # LP_PWD current working directory
14 # LP_PROXY HTTP proxy
15 # LP_GIT git
16 # LP_HG mercurial
17 # LP_SVN subversion
18 # LP_ERR last error code
19 # LP_MARK prompt mark
20
170628b6 »
2012-08-16 Separate templates from themes
21 # Remember that most features come with their corresponding colors,
22 # see the README.
23
c90f3135 »
2012-08-14 add examples an explanations on how to make themes
24 # add jobs, load and battery
25 LP_PS1="${LP_BATT}${LP_LOAD}${LP_JOBS}"
26 # add user, host and permissions colon
27 LP_PS1="${LP_PS1}[${LP_USER}${LP_HOST}${LP_PERM}"
28
29 # if not root
30 if [[ "$EUID" -ne "0" ]]
31 then
32 # path in foreground color
170628b6 »
2012-08-16 Separate templates from themes
33 LP_PS1="${LP_PS1}${LP_PWD}]${LP_PROXY}"
c90f3135 »
2012-08-14 add examples an explanations on how to make themes
34 # add VCS infos
35 LP_PS1="${LP_PS1}${LP_GIT}${LP_HG}${LP_SVN}"
36 else
37 # path in yellow
170628b6 »
2012-08-16 Separate templates from themes
38 LP_PS1="${LP_PS1}${LP_PWD}]${LP_PROXY}"
c90f3135 »
2012-08-14 add examples an explanations on how to make themes
39 # do not add VCS infos
40 fi
41 # add return code and prompt mark
170628b6 »
2012-08-16 Separate templates from themes
42 LP_PS1="${LP_PS1}${LP_ERR}${LP_MARK}"
c90f3135 »
2012-08-14 add examples an explanations on how to make themes
43
78b9aff6 »
2012-08-14 config notab everywhere
44 # vim: set et sts=4 sw=4 tw=120 ft=sh:
Something went wrong with that request. Please try again.