Commit graph

7216 commits

Author SHA1 Message Date
Alexey Poimtsev
3075d0c0ab feat(rails)!: run old rake aliases with rails (#9601)
BREAKING CHANGE: we've updated the aliases that run `rake` to use
`rails` instead because that's how they are run since Rails v5.
The old `rake` aliases can still be run by using the `rk` prefix
(e.g. the `rake test` alias has been changed from `rt` to `rkt`).

Closes #9601
Closes #9813
Fixes #10696

Co-authored-by: Vsevolod Voloshyn <seva.voloshin@gmail.com>
2022-03-07 22:37:04 +01:00
Marc Cornellà
4f0b680248
fix(installer): fix $HOME setting if getent is not found (macOS)
Related: https://github.com/ohmyzsh/ohmyzsh/pull/10713/files#r820219899
2022-03-07 11:41:02 +01:00
Marc Cornellà
9350e1ff87
fix(coffee): fix completion bug on missing coffee command (#10759)
This commit fixes the error

  _coffee:49: bad math expression: operand expected at `< 2 '

when the coffee command is missing or the `coffee --version` command fails.

It also uses is-at-least to check for the cut-off version for suggesting
`--lint` and `--require` arguments, instead of using `cut` multiple times.

Fixes #10759
2022-03-07 11:13:18 +01:00
Ivan
93b348b172
feat(rvm): add rb31 shortcut to use ruby 3.1 (#10745) 2022-03-07 10:58:18 +01:00
Eric Semeniuc
d4c939d61e
feat(kubectl): add aliases for replicasets (#10100) 2022-03-07 10:43:05 +01:00
Vitul Rana
3343891ea6
feat(kubectl): add aliases for job management (#9992) 2022-03-07 10:38:56 +01:00
Carlo Sala
f96a900ea3
feat(fzf)!: default to using fd before rg (#10757)
BREAKING CHANGE: if both `fd` and `rg` are installed, default to using `fd`. This
is the recommendation of the ripgrep author, and it's been found to be faster.
If you want to force using `rg`, set the `FZF_DEFAULT_COMMAND` variable.
2022-03-05 19:18:56 +01:00
SBado
af0c3b64b8
fix(updater): prefix cd with builtin when it is aliased (#10753) 2022-03-04 16:54:51 +01:00
Marc Cornellà
46195d3aa7
fix: fix svn branch output in themes: apple, gentoo, kolo, zhann (#10751)
Fixes #10751
2022-03-03 17:53:03 +01:00
Marc Cornellà
04b1b75b9d
style: remove VCS_INFO svn settings from themes that don't enable it 2022-03-03 17:49:12 +01:00
JM" (Jason Meridth)
eaa6024421
feat(autoenv): add path for Apple Silicon Homebrew (#10749) 2022-03-02 20:47:55 +01:00
Marc Cornellà
511ed65408
fix(aws): allow empty prefix and suffix in prompt function (#10744)
Fixes #10744
2022-02-28 10:03:02 +01:00
Marc Cornellà
c81804825c
fix(installer): fix removal of OMZ directory on failure
When the `git init` call fails, the directory is not created,
so the rm command fails with a not found error. This change
checks whether the directory exists before deleting it.
2022-02-25 14:06:19 +01:00
Markus (Vock) Arians
99460351eb
feat(lib): support auto title in foot terminal (#10735)
Co-authored-by: Markus Arians <markus.arians@andrena.de>
2022-02-25 13:29:22 +01:00
Carlo Sala
e934857537
fix(kubectl): support completion for snap installs (#10727) 2022-02-24 19:23:41 +01:00
Carlo Sala
97e6989729
fix(helm): support completion for snap installs (#10723) 2022-02-24 19:23:15 +01:00
Marc Cornellà
28dc8c58ef
refactor(michelebologna): simplify and clean up code 2022-02-24 13:55:00 +01:00
Carlo Sala
201e9dea59
fix(michelebologna): use $HOST variable instead of running hostname (#10724) 2022-02-24 13:52:52 +01:00
Marc Cornellà
0b0af4df6a fix(updater): fix check for latest commit in local repository
The previous check simply compared whether the last commit of the branch
was the same in the local and the remote repository.

This commit also checks whether the remote commit is an ancestor of the
local commit. This fixes the case where the local repository has new
commits after the last published commit.
2022-02-24 13:51:16 +01:00
Marc Cornellà
ff29836562 fix(updater): timeout after 2s on available update check 2022-02-24 13:51:16 +01:00
Marc Cornellà
914b6399e8 fix(installer): silence git init 2022-02-22 21:24:43 +01:00
Marc Cornellà
9b883aa417 fix(installer): set $HOME if not defined (#10680)
Fixes #10680
2022-02-22 21:24:43 +01:00
Marc Cornellà
6f1036293c
refactor(copydir)!: deprecate plugin in favor of copypath
BREAKING CHANGE: the `copydir` plugin is deprecated. Instead of
using `copydir`, use `copypath` which also supports copying
the path of other files or directories specified.
2022-02-22 11:25:31 +01:00
Marc Cornellà
11a23144ad
feat(copypath): add plugin to copy file paths to clipboard (#7569)
Closes #7569
Closes #10714
2022-02-22 11:25:09 +01:00
Marc Cornellà
b00b59364a
fix(vcs_info): don't patch VCS_INFO_formats if not found 2022-02-21 20:30:06 +01:00
Marc Cornellà
ebfd7cb219
ci: cancel current runs on new trigger 2022-02-21 19:27:21 +01:00
Marc Cornellà
07b829c894
fix(vcs_info): quote % in relevant fields on all current Zsh releases 2022-02-21 18:34:28 +01:00
Marc Cornellà
3427da4057
fix(dotenv): actually exit when .env syntax is broken 2022-02-18 19:41:21 +01:00
Marc Cornellà
ef3f7c43a9
fix: apply workaround patch for vcs_info (CVE-2021-45444)
This lib function applies a patch to the VCS_INFO_formats function
in zsh versions from v5.0.3 until v5.8, which don't quote % chars
in some arguments received. Normally that just means that some
% characters in these strings (branch names, directories, etc.)
will be incorrectly parsed as formatting sequences.

With CVE-2021-45444, however, this means that one of these strings
from a malicious source (e.g. a malicious git repository) can
trigger command injection and run arbitrary code in the user's
machine when visiting such git repository.

Zsh 5.8.1 fixes this vulnerability [1], but older vcs_info setups
still need a workaround such as this one to patch the vulnerability.

[1] c3ea1e5d52
2022-02-13 19:07:12 +01:00
Carlo Sala
02b52a03a5
feat(fd): update fd completion to v8.3.2 (#10688)
Source: https://github.com/sharkdp/fd/blob/v8.3.2/contrib/completion/_fd
2022-02-11 21:47:44 +01:00
Carlo Sala
5fad26ca4f
feat(ripgrep): update rg completion to v13.0.0 (#10687)
Source: https://github.com/BurntSushi/ripgrep/blob/13.0.0/complete/_rg
2022-02-11 20:45:09 +01:00
Marc Cornellà
69e2937891
fix(updater): fix input check on non-interactive runs
Reference: https://www.zsh.org/mla/users/2022/msg00067.html
2022-02-11 19:51:52 +01:00
Marc Cornellà
dbd92a62ce
fix(updater): do not swallow 1 character in check for user input
Co-authored-by: Philippe Troin <phil@fifi.org>
2022-02-11 10:04:51 +01:00
Marc Cornellà
7b708519b9
fix(emotty): show error on missing plugin dependencies (#9811) 2022-02-10 18:25:09 +01:00
Sam Cook
6396dfb97f
fix(kubectx): don't error on missing k8s context (#10675) 2022-02-10 17:00:45 +01:00
Zachary Cutlip
1e615b71d6
fix(virtualenvwrapper): only deactivate if virtual env is still present (#10671) 2022-02-10 16:25:23 +01:00
Carlo Sala
0da33ca22b
fix(cli): disable GPG signing in omz pr test to avoid key prompt (#10677) 2022-02-10 11:50:04 +01:00
sed-i
aaaa55424a
refactor(juju)!: use the jsh prefix for juju show-* commands (#10426)
BREAKING CHANGE: some aliases have been renamed to be consistent with the rest.
Mainly, aliases for `juju show-` commands are renamed to `jsh*`. This also means
that `jsh` and `jshc` have been renamed to `jssh` and `jsshc`. Have a look at the
README for the complete alias changes.
2022-02-10 11:42:24 +01:00
sed-i
564a60608c
style(juju)!: don't show storage status in wjst for consistency (#10426)
BREAKING CHANGE: `wjst` will no longer show storage in the status
output. This is done for consistency with the `jst` and `jsts`
aliases.
2022-02-10 11:42:23 +01:00
sed-i
cdd2d6efc6
feat(juju): introduce additional juju aliases (#10426) 2022-02-10 11:42:23 +01:00
sed-i
f045810697
feat(juju): add jclean function to destroy all registered controllers (#10426)
Closes #10426
2022-02-10 11:42:16 +01:00
Carlo Sala
c41f2e7a09
feat(rbw): add rbwpw function to copy passwords to the clipboard (#10639) 2022-02-09 22:55:05 +01:00
Michael Favia
897fa09f15
fix(kubectl): fix arguments in keti alias to allow completion (#10669) 2022-02-09 10:25:12 +01:00
Marc Cornellà
f0f42828fa
feat(updater): do not update when user already typed some characters (#9699)
Fixes #9699
2022-02-07 18:58:47 +01:00
Marc Cornellà
1e26ad1187
fix(bureau): fix top line space computation
Takes into account $ZLE_RPROMPT_INDENT and doesn't add the extra
space at the end so it doesn't bleed into the next line.
2022-02-07 17:57:59 +01:00
Marc Cornellà
74a3db75e4
perf(bureau): remove multiple grep calls in git status check 2022-02-07 17:55:16 +01:00
Harris Miller
9e9831fcf2
fix(bureau): fix never CLEAN git status (#10656)
Closes #10656
2022-02-07 17:54:02 +01:00
Robby Russell
2d3bae965a
Introducing the ANSI logo graphic
Trying this on for size for a while.
2022-02-03 19:07:27 -08:00
Carlo Sala
d9c58d5fa1
feat(yarn): add setting to disable adding global dir to $PATH (#10642) 2022-02-03 14:42:47 +01:00
Marc Cornellà
e1a9d0ce3e
fix(cli): allow omz commands to be used in a script (#10645)
The commands `omz plugin {enable,disable}` and `omz theme set`
automatically reload the zsh session on success. With this
change, the CLI checks whether the commands are run in an
interactive session before reloading the zsh session.

This change also conditionally sets the completion function
for `omz` so that it's not done in a non-interactive session.
2022-02-02 23:02:23 +01:00