Commit graph

14 commits

Author SHA1 Message Date
13f5ecd846 zsh: display some info about vcs in current directory 2022-09-18 18:01:32 +02:00
76a42b6920 zsh: prompt.zsh: make entries with excessize permissions more readable 2021-08-22 23:28:07 +02:00
151032b726 zsh: prompt.zsh: fix rprompt indent
Various shells apparently do not support ZLE_RPROMPT_IDENT=0 properly
and shift the cursor one to the left. As a result,
autocompleting leads to weird shifting of the user input and
'overlapping' text.
In order to fix this issue, it seems to be sufficient to set
ZLE_RPROMPT_INDENT=-1.

(see https://github.com/bhilburn/powerlevel9k/issues/110)
2019-05-22 16:19:31 +02:00
31e461fb38 zsh: prompt: only show percentage of the first battery available 2018-02-03 00:11:39 +01:00
c1a8e98d61 zsh: prompt: only set LS_COLORS if not using darwin nor bsd 2017-10-09 22:59:54 +02:00
bd33ff52a3 zsh: merge colors.zsh into prompt.zsh 2017-10-09 22:38:28 +02:00
6182aeca25 zsh: prompt: display lightning symbol when charging battery 2017-10-09 21:12:41 +02:00
119f365424 zsh: prompt: use ZLE_RPROMPT_INDENT in tmux to fix prompt whitespaces 2017-10-09 21:12:41 +02:00
88ed6d9d9b zsh: prompt: switch from ZLE_RPROMPT_INDENT=0 to %{ %} for bottom_right_suffix
Apparently ZLE_RPROMPT_INDENT is a bit buggy on several prompts (e.g.
iTerm2, virtual-terminal on linux, etc) since not only the most right
space is removed as intended, but also the cursor is moved on to the
right causing the last character of the prompt to be overwritten.
This causes completion to be rather weird (some characters are
drawn twice and some aren't at all).

Fix: Use %{ .. %} with ${bottom_right_suffix} to tell the terminal the
last symbols have a width of zero -> the most right space will be
overdrawn and thus not shown.
2017-08-02 14:25:59 +02:00
7f6ad5cbbb zsh: prompt: check for battery and improve detection of pcs with acpi 2017-07-26 16:51:31 +02:00
67a67f7988 zsh: prompt: fix battery display on computers without acpi 2017-07-16 13:23:27 +02:00
2b7107a84a zsh: prompt: complete internal redesign + improvements
The prompt now no longer requires "setopt promptsubst" and even has
a bit more functionality:
    - show exitcode if not equal zero
    - underlined hostname if remote-connected via ssh
    - extra prompt symbol for root and different color username
    - improved battery status (color + charge detection)

Furthermore time and username@hostname have been swapped.
2017-07-10 02:40:38 +02:00
e09da88655 zsh: cleanup color formatting
This might be problematic for older zsh version which do not support
%F{..} nor %f.
2017-05-04 17:16:01 +02:00
1ef3a363de add old zshconfig 2016-10-25 18:21:43 +02:00