Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
Fixes #7268
With `$USER`, we'd need to quote it in case special characters like `\` are present in
the $USER value, like if the user is part of an AD domain.
With `%n` the quoting is done automatically by zsh.
See http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Login-information
|
|
These themes used an adhoc substitution of $HOME for tilde
in $PWD, but it's better to use '%~' and is less error prone.
See #7160
|
|
This commit fixes the runtime error that says:
prompt_status:2: symbols: attempt to assign array value to non-array
It trips over a local array which is not properly declared.
|
|
|
|
This PR fixes the runtime error that displays this:
```log
prompt_status:2: symbols: attempt to assign array value to non-array
```.
It trips over a local array which is not properly declared.
|
|
|
|
|
|
* theme/fino: Check rvm-prompt is installed before to try to use it
Signed-off-by: Nick Diego Yamane <nick.diego@gmail.com>
* theme/fino-time: Check rvm-prompt is installed before to try to use it
Signed-off-by: Nick Diego Yamane <nick.diego@gmail.com>
|
|
|
|
This version splits the `$PWD` by the slashes and prints the path
directory by directory, printing the separators as before.
|
|
Also refactor the logic
|
|
|
|
Checking if the terminal supports 256 colors is better suited for
our purpose. Checking if `$DISPLAY` is set doesn't tell us if our
colors will be displayed correctly.
|
|
Used color encodings from
https://metacpan.org/source/WOLDRICH/Term-ExtendedColor-0.224/lib/Term/ExtendedColor.pm
|
|
|
|
* agnoster: do not hardcode black foreground.
This would allow easy customization when using light color schemes, like
solarized-light
* agnoster: implement light theme variant
Use same variable as in blinks theme, to detect if solarized theme used
is a light or dark one.
|
|
* use https everywhere
* use https links on the files that are left
Also, removed some broken links and updated redirections.
|
|
|
|
|
|
|
|
I found this quite annoying not being in this theme after switching from gentoo-theme, it's helpful and it doesn't detract from simplicity.
|
|
The PROMPT building method clashes with other themes and
plugins that modify the PROMPT variable.
Also reverted the $jobstates trick due to it not working
inside $PROMPT.
|
|
* agnoster: improve perf with use of $jobstates (zsh/parameter module)
This saves multiple fork/execs (for the subshell and wc) each
time the prompt is rendered
* agnoster: compute git repo_path only when in a git repo
this avoids needlessly invoking git twice every time we render the prompt
* agnoster: avoid subshell when rendering prompt
Rather than forking a subshell to print the prompt, construct it
incrementally by appending to $PROMPT.
v2: fix incorrect CURRENT_BG
v3: fix bzr and hg prompting
Thanks @mcornella for the help.
|
|
* Fix branch not updating on checkout in steeef
* Check for `hub` in steeef when switching branches
|
|
Fixes #6758
|
|
* Make steef much faster by not printing all history each time
* Use whence -c to expand shell functions as well
* Use $2 (expanded command about to be ran)
|
|
* [rkj-repos] Make `hg prompt` check less strict
Move the `hg prompt` check inside the hg_prompt_info function so that
it returns an empty string if hg-prompt isn't installed.
Fixes #6743.
* [rkj-repos] Check for hg in `hg prompt` function
|
|
|
|
* Check for extension, and exit if not found. Addresses #6036
* Fix styles in rkj-repos.theme
|
|
see http://www.zsh.org/mla/workers/2015/msg03259.html
|
|
The avit theme's _git_time_since_commit function was running git twice.
Reduce it with a single call to `git log`, checking the exit code for
success.
|
|
The old preview on Skitch is no longer available (closed account?). The new preview is on a free Flickr which might last longer. ?
|
|
|
|
Fixes #6028
|
|
|
|
|
|
The whitespace in line 13 creates a double whitespace when combined with line 24. Therefore 2 whitespaces appear between ${user_host} and ${current_dir}.
|
|
|
|
|
|
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
|
|
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
|
|
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
|
|
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
|
|
* Add '#' instead of '$' when in root
* Make return code bold
|
|
|
|
It was not possible to simply add AM/PM since strftime return blank for %p %P
|
|
This reverts commit 06d52a60389a85107ed8cc2e302a1e66f719f738.
|