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

6814 commits

Author SHA1 Message Date
Marc Cornellà
40b013f5f1 lib: delete upgrade lock in upgrade_oh_my_zsh
Provides a different solution to #8332 and #8333
2020-02-24 20:27:21 +01:00
Andy Pickle
f9a2d8cae3
vscode: add documentation for running in macOS (#8674) 2020-02-24 20:13:16 +01:00
Marc Cornellà
bc9fe7423f
Merge pull request #8651 from mcornella/random-theme-refactor
Add random theme and consolidate logic from init and themes plugin
2020-02-19 20:26:45 +01:00
Marc Cornellà
3d4890dcc0 Add blacklist variable for random theme
Co-authored-by: Fran Garcia <fran.miranda@gmail.com>
2020-02-19 20:00:22 +01:00
Marc Cornellà
f4b4a446ac Polish themes plugin and error out if theme not found 2020-02-19 19:41:02 +01:00
Marc Cornellà
b297bf9296 Add themes in $ZSH_CUSTOM to the pool of candidates
Also add comments and unset leftover variables, and print only the
name of the theme loaded.

When looking for $ZSH_CUSTOM themes, the chosen algorithm is to add
the theme names to the pool disregarding the path, and then source
whatever theme is selected with the same logic as the init script,
which is to source first custom themes even if there is another
default theme of the same name.

Co-authored-by: Mihai Serban <mihai.serban@gmail.com>
2020-02-19 19:34:16 +01:00
Willy Weiskopf
6adad5c300 Move random theme functionality into "random" theme
The statements for selecting a random theme in oh-my-zsh.sh and the themes
plugin are duplicate. Most people eventually settle on a theme, making those
lines in oh-my-zsh.sh superfluous. To address those, it may makes sense to put
the random theme functionality into a theme of its own (since themes are just
zsh scripts.
2020-02-19 18:20:28 +01:00
Marc Cornellà
d76258ff55 avit: add years since last commit if appropriate 2020-02-19 18:19:46 +01:00
Marc Cornellà
77813a330b avit: clean up theme code 2020-02-19 17:24:20 +01:00
Marc Cornellà
443ad88024 avit: replace custom prompt functions with OMZ ones
Fixes #8637
2020-02-19 16:53:32 +01:00
Marc Cornellà
c1b798aff3
agnoster: fix bzr prompt with breezy installed (#8646)
* Change indentation to 2 spaces in prompt_bzr function
* Check if in a bzr repository and optimize bzr calls in prompt_bzr
2020-02-19 00:16:54 +01:00
Sir Mobus Gochfulshigan Dorphin Esquire XXIII
eeb49bf5b0
systemd: add prompt function to show systemd units' status (#7657)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-18 23:04:14 +01:00
Marc Cornellà
de261bd29c af-magic: fix virtualenv prompt suffix 2020-02-18 22:28:58 +01:00
Ujwal Dhakal
e8609b857c
git: add grename to rename a local branch and in the origin remote (#8622)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-18 21:05:52 +01:00
Marc Cornellà
d49397a01d af-magic: fix dashed separator sizing and refactor
Fixes #8081
2020-02-18 19:18:23 +01:00
Kshitij Nikhal
47eae26bf6
web-search: add wolframalpha search engine (#8638) 2020-02-18 10:20:54 +01:00
Marc Cornellà
1381da15a4
arcanist: document aliases 2020-02-17 17:47:43 +01:00
Alexandre GOMES
fbbfd0f8a8
arcanist: add arc diff --create alias (#8610) 2020-02-17 17:44:48 +01:00
Harry
0bcecf2f63
dotnet: use official dotnet completion (#8518) 2020-02-15 19:19:57 +01:00
Roman
aa4146a9a4
git: add alias for git stash --include-untracked (#8617) 2020-02-15 18:28:02 +01:00
Manuel Silva
72168aec3d
cloudapp: fix copy-paste mistake in README (#8629) 2020-02-15 18:26:20 +01:00
Roey Darwish Dror
52f9238b16
fzf: support for NixOS and Void Linux (#8618) 2020-02-13 18:57:52 +01:00
Marco Seguri
4fc570b0d4
kubectl: avoid conflict with existing f aliases in kca alias (#8625) 2020-02-13 18:50:56 +01:00
Marc Cornellà
f17e0219fd dotenv: fix prompt newline 2020-02-13 18:33:24 +01:00
Maxime Richard
634a50936a
dotenv: add ZSH_DOTENV_PROMPT config (#8624) 2020-02-13 18:10:59 +01:00
Jonatan Ivanov
a6df94d2c6
gradle: run gradle command instead of alias (#8620)
- Similarly to the mvn plugin
- Without this fix, the shell crashes in some cases
2020-02-12 21:52:47 +01:00
Henry Chang
3ec04997eb Add zsh-interactive-cd plugin 2020-02-12 18:37:28 +01:00
Mazin Ahmed
e178ae39b4
dotenv: prompt before executing dotenv file (#8606)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-12 17:51:40 +01:00
Marc Cornellà
ebaccba6d8 battery: merge branch 'refactor-battery-plugin'
Closes #4726
Closes #4774
Closes #8275
2020-02-12 16:03:08 +01:00
GregoireW
15a03744a9 Remove invalid batteries (#8275) 2020-02-12 16:02:22 +01:00
Bruce Weirdan
b8b8762915 Report only active battery (#4726)
On a system with multiple batteries (like thinkpads) report percentage
and time remaining only for the active battery (the one being
discharged).

Ideally we should report all batteries, but acpi only shows time remaining
for the active battery. Also callers of these functions expect a single
return value. This is still better than reporting 596% remaining (like it
did on my laptop).

For the reference, the output of acpi command with multiple batteries looks
like this:

    Battery 0: Unknown, 5%
    Battery 1: Discharging, 86%, 03:14:04 remaining
2020-02-12 15:29:57 +01:00
Marc Cornellà
5f6f7b6e8d Various syntax fixes and function naming equivalence
- Fix code style
- Fix local definitions
- Don't declare unnecessary variables
- Use `command` before grep
2020-02-11 21:25:38 +01:00
Marc Cornellà
39e61614f2 Clean up Linux battery commands and syntax 2020-02-11 21:25:38 +01:00
Marc Cornellà
1bd7a7ad21 Fix calculation for battery percentage (#4774)
Co-authored-by: Michael Wolman <michael.s.wolman@gmail.com>
2020-02-11 21:25:38 +01:00
Marc Cornellà
17428f3c9a lib: load bash completion functions automatically
Fixes #8614
2020-02-11 20:16:43 +01:00
Marc Cornellà
561e7169ac jump: fix for `marks' and CTRL+G key binding
- marks printed an error when $MARKPATH didn't exist or didn't have any marks
  in it.
- The CTRL+G key binding overwrote an argument when it couldn't match it to
  an existing mark.
2020-02-11 20:12:01 +01:00
hqingyi
3c5bbcf5b9 jump: add support for directories starting with a dot (#4661)
Closes #4661
2020-02-11 19:51:56 +01:00
Marc Cornellà
bc67a55fe8 jump: fix issues in plugin and document CTRL+G key binding
- Fixes `readlink -e` dependency which isn't supported in macOS
  (fixes #3235).
- Uses native zsh wildcard expansion instead of calls to `ls`.
- Prepends commands with `command` and `builtin` to bypass aliases
  and functions.
- Documents CTRL+G key binding to substitute mark name in the command
  line with the mark path (https://github.com/ohmyzsh/ohmyzsh/pull/2045#issuecomment-22826540).
2020-02-11 19:41:43 +01:00
Umberto Nicoletti
9dffb3191d
vagrant: obey VAGRANT_CWD when completing vagrant commands (#7219) 2020-02-11 18:46:56 +01:00
Marc Cornellà
05cae34676 Detect dependency plugins in candy-kingdom and kiwi themes
Fixes #5029
Fixes #5342
2020-02-11 17:43:59 +01:00
Henry Darnell
83aa984d1a
Add dotnet watch and dotnet watch run (#8612) 2020-02-11 01:39:20 +01:00
Yuan Liu
f362b69df6
common-aliases: fix loading of is-at-least function (#6215) 2020-02-10 21:19:03 +01:00
Grégory DAVID
d88fbe625f
systemadmin: fix header line sorting in pscpu (#6167)
Inside `pscpu` and `pscpu10` aliases, remove sorting of the header line.
2020-02-10 21:18:13 +01:00
Evan Chiu
1c300d3a76 lib: add git function to determine repository name (#4989)
Closes #4989

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-02-10 21:11:31 +01:00
Isaac Cook
22cf7159ec
kube-ps1: add example for common pitfall (#8318)
I ran into this issue, looks like maybe a few other people did as well.

https://github.com/jonmosco/kube-ps1/issues/28#issuecomment-359761463
A simple clarification seems helpful.
2020-02-10 20:31:55 +01:00
Petr Šabata
bfec31666a
systemd: refactor and add latest commands (#6250)
* Order systemctl commands alphabetically

Simplifying the plugin maintenance.

Signed-off-by: Petr Šabata <contyk@redhat.com>

* Include the latest systemctl commands

Based on systemd-233.  I'm still keeping the old, now unsupported
commands for backwards compatibility as well.

Signed-off-by: Petr Šabata <contyk@redhat.com>

* Add daemon-reload (#3701)

Closes #3701
Co-authored-by: Javier Tia <javier.tia@gmail.com>
2020-02-10 19:16:02 +01:00
Larson Carter
beab76edfc Update issues and PR templates (#8471)
Closes #8471
2020-02-10 18:56:48 +01:00
Alastair Rankine
e81782ac3f
virtualenvwrapper: rewrite init script location code (#8521) 2020-02-07 12:06:06 +01:00
Marc Cornellà
77aa1795d2 Revert "fix: Update tmux plugin to use modern terminfo. (#8582)"
This reverts commit 69caf98cf7.
2020-02-04 19:46:08 +01:00
Aliaksei Maiseyeu
6bebc254e8
af-magic: fix showing aws prompt out of the box (#8243)
Fix issue related to #7615, #7747 and #6346

After the update, aws prompt (which should be visible out of the box) disappears when a user uses a theme af-magic, because of fact that plugins are loaded before themes.
This pull request fixes issue with not showing aws prompt in theme af-magic, by appending RPROMPT in theme af-magic instead overwriting.
2020-02-04 13:27:18 +01:00