All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- fossil: fossil 1.11+ maching any directory as a valid repo and printing 3 error messages (#626)
- color: Add
$MAGENTA
,$BOLD_PURPLE
, and$BOLD_MAGENTA
(3fadce9) - color: Add warning when
tput
is not available (#615) - path: Allow to customize the symbol before the path that shows if the
directory is writable:
$LP_MARK_PERM
(#430) - runtime:
$LP_RUNTIME_BELL
and$LP_RUNTIME_BELL_THRESHOLD
to ring bell for slow commands (#571)
- general: use
LC_ALL=C
everywhere parsable output is needed (#548, #549) - general: set specific
IFS
everywhere it is used (#613) - bash: workaround broken .bashrc that export
$PROMPT_COMMAND
, we now unexport it on startup (#450, #463, #474) - bash: handle unset
$_LP_RUNTIME_LAST_SECONDS
whenset -u
is set (#605) - bash: use
$BASH_VERSINFO
for when there is a non-numeric suffix (#522, 0234a58) - battery/OS X: newer versions of OS X failing to parse (#476, fefbe01)
- color:
$LP_COLORMAP
would break if customized with a different sized array (a70e80f) - color:
_lp_color_map()
would return nothing if the passed in value was outside the scale range (a70e80f, #455, #499, #604) - cpu/SunOS: failing math operation on load average (#479, #480)
- fossil: improve branch name detection, don't match tags (#497)
- git: remove
-E
from grep check for portablility (#508) - git: modifications incorrectly showing as untracked files (#509)
- git: changed line check failing if file named "HEAD" existed (#517)
- hg: modifications incorrectly showing as untracked files (#509)
- hostname: regression in
$LP_ENABLE_FQDN
implementation (#472) - hostname/SunOS:
$LP_COLOR_HOST_HASH
erroring (#461, #462, 9c1c8a3) - jobs: mispelled variable local declaration (#564)
- root:
$LP_MARK_DEFAULT
being ignored if root (#501, 5ee3c53) - runtime: when runtime enabled,
$_
would evaluate as_lp_runtime_before
(#451) - runtime: when running a multipart command line (with pipes or
;
), runtime would never show. Now shows runtime of whole pipeline (#614) - tmux: tmux not showing as multiplexer if custom
$TERM
set (#563)
- battery: hide battery symbol when neither charging nor discharging (#582)
- color: optimize
tput
color gen (d62bf31) - git: faster
git stash
check (#503, 93df016)
1.11 - 2016-06-25 - dolmen (Olivier Mengué)
1.10 - 2016-05-30 - dolmen (Olivier Mengué)
- config: Many
$LP_ENABLE_*
settings are now static (their effect applies when liquidprompt is loaded, and changing them at the prompt does nothing) to improve speed. - screen:
$LP_SCREEN_TITLE_OPEN
and$LP_SCREEN_TITLE_CLOSE
are now removed to simplify the code (#371) - zsh: option 'nopromptsubst' is enabled for security reasons. This will unfortunately also affect evaluations of other prompt contexts such as RPS1. (282359a, #432)
- color:
$LP_COLORMAP_x
variables are replaced by a single$LP_COLORMAP
array variable. A warning will be displayed at startup if your config still uses the old variables, but a compatibility shim is active (will be removed in 2.0]). (6961f99)
- git: show the number of commits behind the remote (#110, #269, 48f1b02)
- git: show the rebasing/merging/cherry-picking state (#409, 5cfd2c2)
- hostname:
$LP_ENABLE_FQDN
to show the fully qualified domain name of the host (#254, #277, 695d629) - hostname:
LP_HOSTNAME_ALWAYS=-1
to always hide the hostname (#406, d9cb55d) - python: add support for Conda (CONDA_DEFAULT_ENV) (#425, 07be967)
- sudo: the color of the prompt mark is now dynamic and changes to
$LP_COLOR_MARK_SUDO
(default: bold red) as long as your sudo credentials are cached. Requires sudo 1.7.0+. This feature must be enabled withLP_ENABLE_SUDO=1
. Usesudo -K
to revoke your credentials early. This feature is disabled by default as there is no way to detect if the user has sudo rights without triggering a security alert that will annoy the sysadmin (#335, #345, a8571bb) - tty:
$LP_TTYN
: the basename of the terminal (#357, a97c0da, f436867) - zsh: run duration of the last command (
LP_ENABLE_RUNTIME
) is now supported (#404, #355)
- general: last statement of liquidprompt did not return 0 (#360, #361)
- general: better support for
set -u
(a8114dd) - bash: bash 3 compatibility, remove
function
syntax (#313, 3079299) - battery/OS X: handle battery edge cases. We now have a pmset simulator to better detect regressions (#326, fabc775)
- compat: broken path inside Midnight Commander (#288)
- config: Use $XDG_CONFIG_HOME to locate the config (#415, #420, #427)
- cpu: fix the scale that was incorrectly 0-200 (not an ideal fix) (#391, e9c35dd)
- examples: example.bashrc major fixes (fdbd7ca)
- fossil/OS X: tag regexp to work on darwin (#390)
- git: broken git work directory detection caused by typo (64029ad)
- grep: clear GREP_OPTIONS and skip
grep
aliases (#340, #372) - path: issues when $PWD contains spaces or special chars (#369, 0e0cc12)
- path: escaping of special chars from $PWD (well, almost, see #389)
- path: fix path growing with extra color codes each time directory is changed (b53e53b)
- temp: try each backend (acpi/sensors) once to check it works at startup and disable the feature if none works. (#410, #319, #381, #387)
- temp: the 'sensors' command now uses the '-u' option ("raw output") that is easier to parse. This format is at least 7 years old. (#379, #380)
- temp: fix failing regex on bash (1fc0308)
- term: fix detection of connection source for tmux (#304, #407)
- title: terminal sequences that were sent in the title text (the escaping algorithm is rewritten and now just correct) (#416, 8605378)
- zsh: enable word splitting to fix
$LP_DISABLED_VCS_PATH
(#423) - zsh: fix
LP_PATH_KEEP=-1
not working (#433) - zsh: fix title escapes in zsh inside tmux/screen (#370, #371)
- zsh: rename
$status
variable in_lp_battery()
(#334, 0f80162) - zsh: save and restore a prompt set with zsh' promptinit (02bc49e)
- zsh: use zsh style symbol when
prompt_OFF()
(eb6dafc)
- bash: disable parameter expansion in PS1 (c3d4970)
- clock: complete rewrite of analog clock for speed and correctness (#365, 0548290)
- dist: Move dist/ to contrib/dist/ as files there are unmaintained (cf01d02)
- jobs: optimize job count, espceially when disabled (aa870b5)
- path: optimize implementation in case of
LP_PATH_KEEP=-1
:$LP_PWD
becomes static (7602c09, #256) - path: optimize implementation in case
LP_ENABLE_SHORTEN_PATH=0
on bash with$PROMPT_DIRTRIM
(8da3314) - runtime: refactor runtime system (03c73fe, d485ed1)
- zsh: disable
$PROMPT_COMMAND
hacks and only use zsh built in hooks (5fa9054) - zsh: disable existing hooks at startup (454112f)
- zsh: explicitely set the shell options we need (instead of relying on the shell default settings) (282359a)
1.9 - 2014-11-12 - dolmen (Olivier Mengué)
- temp/linux guard against any future language change of the
acpi
command (1c65748) - vcsh: vcsh support (#148, #287, e927985)
- venv: support for Software Collections (#299, #300, cc1be7e)
- general: lots of varable quoting fixes
- general: save user IFS and restore it to avoid echo (#267, 782fad0)
- bash: save and set shell option promptvars (62f0270)
- bash: workaround broken pattern substitution in bash 4.2 (#289, #294, #302, 5813a71)
- battery: general fixes (#265)
- battery/OS X: fix for computers without battery (like iMacs) (#317)
- bazar:
_lp_bzr_branch_color()
for zsh (#301, #303) - clock: fix analog clock hour for 12AM and 12PM (#273)
- color: fix
tput
usage on BSDs (4572bd0) - git: count merge commits when checking differences with remote branch (7e7734e)
- git: use --porcelain for
git status
(#270, 89540d3) - hostname: fix colorization for SSH (9633ac8)
- jobs: fix when screen/tmux are not installed (#304, 07d18d4)
- mark: losing space when
$LP_MARK_DEFAULT
not quoted (#268, c9bdefe) - screen: counting screen sessions running with extra parameters (#261, 5f8fcc4)
- svn: fix branch/tag name extraction (#117, #237, c98f16d)
- svn: support paths that are not branches or trunk (#293, 5425a5e)
- temp/linux fix for negative temperature values (#308, 7402f79)
- term: fix
$TERM
check (#291, dc7be25) - zsh: make
$LP_OLD_PROMPT_COMMAND
work (81b080e)
- general: apply some shellcheck.com suggestions
- color: optimize colormap when
LP_PERCENT_ALWAYS=1
(ee63435) - fossil: cleanup and optimization (#274)
- git: minor optimization (#266)
- git: simplify working tree detection (0e0cc87)
- hg: disabled
hg outgoing
because it is slow (#217) - hg: general cleanup for speed and fixes (dd9a024)
- general:
$LP_LIQUIDPROMPT
, use$LP_OLD_PS1
for the same check (ed4f383)