1. 21 Oct, 2021 1 commit
  2. 14 Oct, 2021 1 commit
    • Slobodan Todorov's avatar
      Add option to choose which battery status to get · ef944b41
      Slobodan Todorov authored
      When ACPI returns multiple batteries, and not all of them related to laptop
      battery, this option can be used to specify which battery to be used for
      status information. Example of this is Logitech Unifying Receiver, returning
      battery information for keyboard/mouse.
      ef944b41
  3. 28 Jun, 2021 1 commit
  4. 14 Jun, 2021 1 commit
    • Ian Smith's avatar
      Add LP_KUBECONTEXT_DELIMITER_PREFIX · 545d297c
      Ian Smith authored
      LP_KUBECONTEXT_DELIMITER_SUFFIX removes a suffix (dev-cluster and - becomes ->
      dev). But sometimes the boilerplate part is a prefix, as when using AWS
      EKS (Elastic Kubernetes Service).
      
      `aws eks update-kubeconfig --name $CLUSTER_NAME` sets the cluster's ARN
      as the context name, most of which is boilerplate:
      `arn:aws:eks:$REGION:$ACCOUNT_ID:cluster/$CLUSTER_NAME`.
      545d297c
  5. 02 May, 2021 1 commit
  6. 13 Apr, 2021 1 commit
  7. 26 Feb, 2021 1 commit
    • Sam Pearson's avatar
      Add support for AWS_PROFILE environment variable · 0e552ba7
      Sam Pearson authored
      This will add `[profile_name]` to the prompt should it find either
      `AWS_PROFILE` or `AWS_DEFAULT_PROFILE` set in the environment.
      
      This is useful when switching between different AWS profiles and
      working with multiple accounts.
      0e552ba7
  8. 23 Feb, 2021 1 commit
    • Martin Schütte's avatar
      Add current Kubernetes context data source feature · 0660342d
      Martin Schütte authored
      Add a data source to get the current Kubernetes context. Includes a
      mechanism for truncating the context to the first matching character,
      configurable.
      
      The data source is disabled by default. The truncation is also disabled
      by default (disabled by setting the config option to the empty string).
      
      Add a default theme function to format the context like the other
      development environments.
      0660342d
  9. 31 Jan, 2021 1 commit
  10. 26 Jan, 2021 1 commit
    • Mark Vander Stel's avatar
      Make load display actual load instead of adjusted · e058b619
      Mark Vander Stel authored
      The load average display has been notoriously not helpful. It is scaled
      by the CPU count, and then multiplied by 100 to make it apear like a
      percentage. But load average and CPU utilization have almost nothing to
      do with each other.
      
      This change displays the actual load average, while keeping the
      threshold and color calculations the same. This means the functionality
      is no different, just that the display has changed formats.
      
      To make the configuration options LP_LOAD_THRESHOLD less confusing, it
      too has been changed to be an actual load value, no longer "centiload".
      Old values are still supported, which is done by checking for a period
      ('.') in the string. So for this historical reason, all new values must
      have a period in them. Which should not be a problem, any useful value
      would be a float.
      
      Change the greater-than comparison to a greater-than-or-equal-to, since
      it is a little more intuitive to what would be expected from the config
      option.
      
      Since I was at it, I added a new config option LP_LOAD_CAP, to configure
      the range for color values output by _lp_color_map() for load averages.
      It too takes a load average float value. As it does not have the
      historical reason above, it does not accept "centiload" values.
      
      The implementation details are long. Floating point math does not exist
      in shells (which I suspect is the reason that "centiload" was used in
      the first place). To make it possible to compare, the values are scaled
      up by 100 just like before. They are not shown to the user. 100 scaling
      should be plenty for the precision we need.
      
      To do the scaling, __lp_floating_scale() is added, which as a standalone
      function, can be unit tested.
      
      And for good measure, the lp_load return value is passed through
      __lp_escape(), just in case.
      
      Special thanks to Tore Anderson (@toreanderson) for helping dig through
      the issues here.
      e058b619
  11. 10 Dec, 2020 1 commit
  12. 07 Dec, 2020 1 commit
    • Mark Vander Stel's avatar
      Remove duplicate documentation · f70aec24
      Mark Vander Stel authored
      I had been documenting the new functions I was adding directly in the
      liquidprompt source file, but when I added the Sphinx documentation, it
      ended up duplicated. Rather than try to keep the documentation in sync,
      I am removing it from the source file, since the Sphinx documentation is
      much higher quality.
      
      Someday maybe I will try to build a Sphinx plugin that can read
      documentation from shell files, but that sounds like a huge pain. And
      the liquidprompt file is already large enough without detailed
      documentation in it.
      f70aec24
  13. 04 Dec, 2020 2 commits
    • Mark Vander Stel's avatar
      Add LP_ENABLE_ERROR config option · 63b9f73d
      Mark Vander Stel authored
      Add _lp_error() to get the last error, and to return a error code if
      there is one. This is more to be in line with the other data functions.
      
      Change lp_err to lp_error, to match the function name.
      63b9f73d
    • Mark Vander Stel's avatar
      Add _lp_username() to return username · debb794b
      Mark Vander Stel authored
      Make the return codes to have a distinct code for when the username is
      disabled (LP_USER_ALWAYS=-1) vs just not shown (logged in user).
      
      Add valid value for LP_USER_ALWAYS: -1, which disables username display.
      
      This prompted a hack in the Powerline theme to get the possibility of no
      username to work, so I need to make a more elegant seperator solution.
      debb794b
  14. 25 Nov, 2020 2 commits
    • Mark Vander Stel's avatar
      Add LP_ENABLE_DETACHED_SESSIONS · 862dcfbe
      Mark Vander Stel authored
      Add a separate config option for _lp_detached_sessions(), which lets a
      user use it and not _lp_jobcount(), or vice versa.
      
      The default theme has historically lumped them together, but that
      doesn't mean any other theme has to, nor that they should be configured
      together.
      862dcfbe
    • Mark Vander Stel's avatar
      Replace LP_DISABLED_VCS_PATH with array variable · cad6286b
      Mark Vander Stel authored
      Having a config var that stores paths as one string separated by a
      specific char is a error waiting to happen. It's much safer (and easier
      to read) to use a true array. This would be a breaking change, so
      deprecate LP_DISABLED_VCS_PATH, and add LP_DISABLED_VCS_PATHS array. Add
      a conversion function in the config file loading section.
      
      An example config change would be:
          LP_DISABLED_VCS_PATH="/my/one/path:/my/other/path"
      to
          LP_DISABLED_VCS_PATHS=("/my/one/path" "/my/other/path")
      cad6286b
  15. 03 Jul, 2020 1 commit
  16. 22 Jun, 2020 1 commit
    • Nolan Leake's avatar
      Add LP_RUNTIME_BELL to ring bell for slow commands. · 863cb75d
      Nolan Leake authored
      Disabled by default, if enabled the prompt will ring the terminal bell
      after any command takes longer than LP_RUNTIME_BELL_THRESHOLD to
      execute.
      
      This is handy when you have a long running process on a different
      virtual desktop and want to be notified when it completes.
      
      Print the bell character to stderr. This means it won't be captured in
      LP_RUNTIME, and thus won't end up in PS1.  This matters in the case
      where a RUNTIME prompt is displayed because the last command on a given
      shell was slow.  If the bell character is captured in PS1, it will ring
      every time the terminal is resized, since bash reprints PS1 in response
      to SIGWINCH, which spuriously rings the bell again.
      863cb75d
  17. 28 Nov, 2016 2 commits
  18. 27 Nov, 2016 1 commit
    • Bryce Jasmer's avatar
      Clean up some spelling, grammar, and wording in the sample RC file · d921ee92
      Bryce Jasmer authored
      * Tried to use a more consistent and declarative voice throughout the
      entire file.
      * Moved an entry or two around to be closer to related features.
      * Expanded the explanation of a few of the features.
      * Made sure all comment lines fit in 80 characters (for no good reason)
      d921ee92
  19. 06 Nov, 2015 1 commit
  20. 04 Nov, 2015 2 commits
  21. 23 Apr, 2015 1 commit
  22. 19 Dec, 2014 1 commit
  23. 09 Dec, 2014 1 commit
    • Kevin Yap's avatar
      Miscellaneous grammatical & consistency changes · dbe3c150
      Kevin Yap authored
      - Various grammatical changes and rephrasings
      - Capitalize names of VCSes and "Bash"
      - Standardize references to project name ("Liquid Prompt")
      - Use title casing in README section headers
      - Use multiple list-levels in README where appropriate
      - Fix code block in pull request instructions in CONTRIBUTING
      dbe3c150
  24. 05 Dec, 2014 1 commit
  25. 28 Jun, 2014 2 commits
  26. 30 May, 2014 1 commit
    • nzwulfin's avatar
      Enable support for Software Collections · cc1be7e2
      nzwulfin authored
      Fedora, RHEL, and CentOS provide support for multiple versions of
      the same software components using Software Collections.  This
      patch lists the active collections in a similar manner to Python
      virtualenvs.
      cc1be7e2
  27. 27 Dec, 2013 1 commit
  28. 23 Jun, 2013 1 commit
  29. 22 Apr, 2013 1 commit
  30. 21 Apr, 2013 1 commit
  31. 20 Apr, 2013 1 commit
    • nojhan's avatar
      Add an analog clock · 91959b63
      nojhan authored
      Using `LP_TIME_ANALOG`, you can now display an analog clock instead of
      numeric values. The analog clock is "accurate" to the nearest half hour.
      91959b63
  32. 13 Mar, 2013 1 commit
    • nojhan's avatar
      Add LP_PERCENTS_ALWAYS, can hide numeric values · b7ffd46f
      nojhan authored
      Do you want to display the percentages of load/batteries along with their
      corresponding marks? Set to 0 to only print the colored marks.
      Defaults to 1 (display percentages)
      b7ffd46f
  33. 12 Mar, 2013 2 commits
  34. 08 Mar, 2013 1 commit