1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 08:20:09 +00:00
Commit graph

643 commits

Author SHA1 Message Date
Marc Cornellà
4d940109e3 misc: remove execution permission from various files 2018-09-15 23:57:12 +02:00
Nick Diego Yamane
143cc8f901 Fix rvm-prompt usage in fino* themes (#6477)
* 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>
2018-08-29 12:01:10 -07:00
Marc Cornellà
b70a703a09 trapd00r: clean up the script 2018-08-20 18:15:49 +02:00
Marc Cornellà
e972624997 trapd00r: simplify logic and optimize for loop
This version splits the `$PWD` by the slashes and prints the path
directory by directory, printing the separators as before.
2018-08-20 18:03:41 +02:00
Marc Cornellà
b4c8b60bb4 trapd00r: change more slowly between yellows
Also refactor the logic
2018-08-20 17:55:22 +02:00
Marc Cornellà
3d1719c618 trapd00r: optimize reset of foreground colors 2018-08-20 17:50:11 +02:00
Marc Cornellà
4774bc62d5 trapd00r: look for 256-color support, not $DISPLAY
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.
2018-08-20 17:45:36 +02:00
Marc Cornellà
1d26e2ab6f trapd00r: convert perl script to zsh
Used color encodings from
https://metacpan.org/source/WOLDRICH/Term-ExtendedColor-0.224/lib/Term/ExtendedColor.pm
2018-08-20 17:37:26 +02:00
Michele Iacobone
abca62add1 Fix for external dependency in trapd00r theme (#5579) 2018-08-19 22:43:47 +02:00
Frederic Crozat
e4d2d27af4 Agnoster: solarized light variant (#4680)
* 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.
2018-08-19 22:28:37 +02:00
Janosch Schwalm
19b925e741 use https everywhere (#6574)
* use https everywhere

* use https links on the files that are left

Also, removed some broken links and updated redirections.
2018-08-07 20:42:01 +02:00
Marc Cornellà
a1448e9f8a example: move example theme to custom folder 2018-07-19 23:02:25 +02:00
Unknown-Guy
f09fed6195 change mortalscumbag to use core git_current_branch (#6965) 2018-07-03 17:37:18 +02:00
nyim
3a7a590862 mortalscumbag add icon showing local branch behind (#4364) 2018-07-01 20:41:52 +02:00
Jonathen Russell
71e4a166cf simple theme: indication of privileges (#3728)
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.
2018-07-01 19:15:54 +02:00
Marc Cornellà
8f3737f45b Revert fbcda4d
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.
2018-05-23 11:33:34 +02:00
Andrew Baumann
fbcda4d5a9 agnoster: cut down on fork/execs improve performance when not in a repo (#6210)
* 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.
2018-05-17 14:46:27 +02:00
Joshua Kovach
362b061f5c Fix branch not updating on checkout in steeef (#6784)
* Fix branch not updating on checkout in steeef

* Check for `hub` in steeef when switching branches
2018-05-07 18:19:45 +02:00
Marc Cornellà
45a9f28464
[half-life] Fix last command check
Fixes #6758
2018-04-23 20:47:19 +02:00
Sean Abraham
604f580f05 Make steeef theme much faster by not iterating through all history (#6359)
* 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)
2018-04-22 22:37:06 +02:00
Marc Cornellà
d7948b39dc
[rkj-repos] Make hg prompt check less strict (#6746)
* [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
2018-04-19 23:32:53 +02:00
安正超
86a0b86562 [cloud theme] add a space (#3215) 2018-04-17 21:34:03 +02:00
cori schlegel
fa93ea0d75 [rkj-repos] Check for 'hg prompt' and exit if not found (#6655)
* Check for  extension, and exit if not found. Addresses #6036

* Fix styles in rkj-repos.theme
2018-04-15 15:48:31 +02:00
Alexis Hildebrandt
8e1cfc9154 Fix emotty theme when using zsh 5.2 (#5998)
see http://www.zsh.org/mla/workers/2015/msg03259.html
2018-04-15 15:16:28 +02:00
Cory Snider
f9d4a067ec Reduce number of git calls when displaying prompt (#3795)
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.
2018-04-15 14:45:58 +02:00
Paul Morganthall
47406d7afe Replace preview link. (#6369)
The old preview on Skitch is no longer available (closed account?). The new preview is on a free Flickr which might last longer. ?
2017-11-01 05:56:14 -07:00
Vihang Mehta
291e96dcd0 Fix RKJ theme coloring and make it slightly more readable (#5582) 2017-05-03 12:06:07 +02:00
Marc Cornellà
5667161d49 Fix host display in nebirhos theme
Fixes #6028
2017-04-21 20:18:16 +02:00
Marc Cornellà
66bae5a5de Merge branch 'rename-pure-theme' 2017-03-30 21:46:57 +02:00
Marc Cornellà
aaf7fa007f Add deprecation notice to pure theme 2017-03-30 21:45:26 +02:00
Elias Fröhner
b4b55fa502 Remove wrong whitespace in bira theme (#5985)
The whitespace in line 13 creates a double whitespace when combined with line 24. Therefore 2 whitespaces appear between ${user_host} and ${current_dir}.
2017-03-30 20:46:25 +02:00
Marc Cornellà
8653f5da6d Rename pure theme to 'refined' 2017-03-16 18:11:18 +01:00
haandol
0b4bba4ca2 Change af-magic theme's branch color (#5730) 2017-01-09 08:06:17 +01:00
Patrick José Pereira
0f498e8d45 'themes/trapd00r.zsh-theme: Solve typos'
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2016-12-30 10:34:16 -02:00
Patrick José Pereira
0c7bb4de0d 'themes/steeef.zsh-theme: Solve typos'
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2016-12-30 10:34:16 -02:00
Patrick José Pereira
747b6ec5f7 'themes/pure.zsh-theme: Solve typos'
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2016-12-30 10:34:16 -02:00
Patrick José Pereira
a414bb3eb4 'themes/half-life.zsh-theme: Solve typos'
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2016-12-30 10:34:16 -02:00
Jocelyn Thode
cff228e342 Update bira theme (#4954)
* Add '#' instead of '$' when in root
* Make return code bold
2016-10-15 14:02:01 +02:00
Marc Cornellà
015598b8a8 Display suvash prompt w/o Ruby; refactor code 2016-10-14 00:24:30 +02:00
FireWave
fe605e142f Change confusing 12h without AM/PM to a clean 24h display.
It was not possible to simply add AM/PM since strftime return blank for %p %P
2016-10-03 15:00:39 -04:00
FireWave
9d35d3a5d5 Revert "Change confusing 12h-time without AM/PM to system-localized time"
This reverts commit 06d52a6038.
2016-10-03 14:58:51 -04:00
FireWave
06d52a6038 Change confusing 12h-time without AM/PM to system-localized time 2016-09-30 14:12:03 -04:00
Dawnflash Lightstring
7e5483d672 Add check for git and bzr to agnoster theme
Plugin command-not-found on Arch Linux returns 0 if git or bzr is found in repos, hence outputting unwanted pkgfile output.
Checking if the commands exist first fixes all such issues.
2016-09-21 12:20:08 +02:00
grindhold
d1ce70f685 added support for bazaar in agnoster theme (#5016)
the agnoster theme is now able to render basic information
if the user is currently residing inside a bazaar folder.
if so, it will render a green promt segment with "bzr" and
the current revision number in it. if there are untracked
files, the bar will be rendered in yellow. if there are
changes to already tracked files, a + character will be
printed.
2016-09-19 20:00:42 -07:00
Matt Nichols
fb8953d525 Fix peepcode theme ruby prompt info (#5339)
The ruby prompt info was not interpolating properly. Switching to use
 ruby_prompt_info helper. This addresses the issue.
2016-09-19 20:00:16 -07:00
khenarghot
292a62e3ab Fix git emptiness check in dogenpunk theme (#5329)
The parsing output for full git log output too slow so it replaced
with last commit show request, wich cause error if repository is empty
2016-08-21 18:40:34 +02:00
Arz Yu
1e9084c3c7 muse theme: Remove extra spaces for none git/virtualenv prompt (#5278)
* muse theme: Remove a extra space for none git prompt

* muse theme: Remove a extra space for none virtualenv prompt
2016-08-14 17:33:48 -07:00
Anton
a7e30b26ba Fix hg call when missing on archlinux with command-not-found (#5218) 2016-07-22 15:04:35 +02:00
Adam Glenn
cc8285b1f7 adding python virtualenv support to the prompt (#5031)
adding python virtualenv support to muse theme
2016-07-19 21:01:00 +02:00
Harald Nordgren
53acf21182 Peepcode theme: Don't try to use RVM if it's not available (#5154) 2016-06-15 00:12:24 +02:00