aboutsummaryrefslogtreecommitdiffstats
path: root/liquidprompt
diff options
context:
space:
mode:
Diffstat (limited to 'liquidprompt')
-rwxr-xr-xliquidprompt/.liquidpromptrc143
-rwxr-xr-xliquidprompt/.lp_ps130
2 files changed, 173 insertions, 0 deletions
diff --git a/liquidprompt/.liquidpromptrc b/liquidprompt/.liquidpromptrc
new file mode 100755
index 0000000..1cb350c
--- /dev/null
+++ b/liquidprompt/.liquidpromptrc
@@ -0,0 +1,143 @@
1
2####################################
3# LIQUID PROMPT CONFIGURATION FILE #
4####################################
5
6# If you want to use different themes and features,
7# you can load the corresponding files here:
8#source ~/code/liquidprompt/nojhan.theme
9
10LP_PS1_FILE="$HOME/.lp_ps1"
11
12#############
13# BEHAVIOUR #
14#############
15
16# Maximal value under which the battery level is displayed
17# Recommended value is 75
18LP_BATTERY_THRESHOLD=75
19
20# Minimal value after which the load average is displayed
21# Recommended value is 60
22LP_LOAD_THRESHOLD=60
23
24# Minimal value after which the temperature is displayed (in celsius degrees)
25# Recommended value is 60
26LP_TEMP_THRESHOLD=60
27
28# The maximum percentage of the screen width used to display the path
29# Recommended value is 35
30LP_PATH_LENGTH=35
31
32# How many directories to keep at the beginning of a shortened path
33# Recommended value is 2
34LP_PATH_KEEP=2
35
36# Do you want to display the hostname, even if not connected through network?
37# Defaults to 0 (do not display hostname when localy connected)
38# set to 1 if you want to always see the hostname
39LP_HOSTNAME_ALWAYS=1
40
41# Do you want to display the user, even if he is the same than the logged one?
42# Defaults to 1 (always display the user)
43# set to 0 if you want to hide the logged user (it will always display different users)
44LP_USER_ALWAYS=1
45
46# Do you want to display the percentages of load/batteries along with their
47# corresponding marks? Set to 0 to only print the colored marks.
48# Defaults to 1 (display percentages)
49LP_PERCENTS_ALWAYS=1
50
51# Do you want to use the permissions feature ?
52# Recommended value is 1
53LP_ENABLE_PERM=1
54
55# Do you want to use the shorten path feature ?
56# Recommended value is 1
57LP_ENABLE_SHORTEN_PATH=1
58
59# Do you want to use the proxy detection feature ?
60# Recommended value is 1
61LP_ENABLE_PROXY=1
62
63# Do you want to use the jobs feature ?
64# Recommended value is 1
65LP_ENABLE_JOBS=1
66
67# Do you want to use the load feature ?
68# Recommended value is 1
69LP_ENABLE_LOAD=1
70
71# Do you want to use the batt feature ?
72# Recommended value is 1
73LP_ENABLE_BATT=1
74
75# Do you want to use vcs features with root account
76# Recommended value is 0
77LP_ENABLE_VCS_ROOT=0
78
79# Do you want to use the git special features ?
80# Recommended value is 1
81LP_ENABLE_GIT=1
82
83# Do you want to use the svn special features ?
84# Recommended value is 1
85LP_ENABLE_SVN=1
86
87# Do you want to use the mercurial special features ?
88# Recommended value is 1
89LP_ENABLE_HG=1
90
91# Do you want to use the fossil special features ?
92# Recommended value is 1
93LP_ENABLE_FOSSIL=1
94
95# Do you want to use the bzr special features ?
96# Recommanded value is 1
97LP_ENABLE_BZR=1
98
99# Show time of the last prompt display
100# Recommended value is 0
101LP_ENABLE_TIME=1
102
103# Show runtime of the last command if over LP_RUNTIME_THRESHOLD
104# Recommended value is 0
105LP_ENABLE_RUNTIME=0
106
107# Minimal runtime to be displayed
108# Recommended value is 2
109LP_RUNTIME_THRESHOLD=2
110
111# Display the virtualenv that is currently activated, if any
112# Recommended value is 1
113LP_ENABLE_VIRTUALENV=1
114
115# Show average system temperature
116LP_ENABLE_TEMP=1
117
118# When showing time, use an analog clock instead of numeric values.
119# The analog clock is "accurate" to the nearest half hour.
120# You must have a unicode-capable terminal and a font with the "CLOCK"
121# characters.
122# Recommended value is 0
123LP_TIME_ANALOG=0
124
125# Use the liquid prompt as the title of the terminal window
126# The content is not customizable, the implementation is very basic,
127# and this may not work properly on exotic terminals, thus the
128# recommended value is
129# See LP_TITLE_OPEN and LP_TITLE_CLOSE to change escape characters to adapt this
130# feature to your specific terminal.
131LP_ENABLE_TITLE=0
132
133# Enable Title for screen and byobu
134LP_ENABLE_SCREEN_TITLE=0
135
136# Use differents colors for differents hosts you SSH in
137LP_ENABLE_SSH_COLORS=0
138
139# Specify a list of complete and colon (":") separated paths in which, all vcs
140# will be disabled
141LP_DISABLED_VCS_PATH=""
142
143# vim: set et sts=4 sw=4 tw=120 ft=sh:
diff --git a/liquidprompt/.lp_ps1 b/liquidprompt/.lp_ps1
new file mode 100755
index 0000000..821dcf7
--- /dev/null
+++ b/liquidprompt/.lp_ps1
@@ -0,0 +1,30 @@
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_VCS the content of the current repository
16# LP_ERR last error code
17# LP_MARK prompt mark
18# LP_TIME current time
19# LP_RUNTIME runtime of last command
20# LP_PS1_PREFIX user-defined general-purpose prefix (default set a generic prompt as the window title)
21
22# Remember that most features come with their corresponding colors,
23# see the README.
24
25LP_PS1="[\d][\t]\u on \h\n\w${LP_VCS}${LP_MARK}"
26
27LP_TITLE=$(_lp_title $PS1)
28PS1="${LP_TITLE}${PS1}"
29
30# vim: set et sts=4 sw=4 tw=120 ft=sh: