Commit graph

6615 commits

Author SHA1 Message Date
Marc Cornellà 0be7c897f8
refactor(zsh_reload)!: remove deprecated plugin
BREAKING CHANGE: the `zsh_reload` was deprecated long ago and showed
a deprecation message. The `src` function was replaced by the CLI
command `omz reload`, so use that instead from now on.
2022-02-01 13:11:49 +01:00
Marc Cornellà 3fdad09d09
chore: update copyright year 2022-02-01 13:11:24 +01:00
Marc Cornellà 73001e9382
refactor(django): remove deprecated django plugin
BREAKING CHANGE: the `django` plugin was deprecated in 2021-09-22. With
this change it has now been removed altogether. Zsh already provides
built-in completion for Django commands.
2022-02-01 12:56:22 +01:00
Carlo Sala eabec36586
style(init): use consistent code style in init script (#10601) 2022-01-28 23:28:19 +01:00
Marc Cornellà 46f5d38b1d
refactor(installer): use POSIX-standard's id -u -n to define $USER 2022-01-28 20:53:30 +01:00
Gheritarish 11a87eac47
chore(1password): fix comments to follow code (#10634) 2022-01-28 13:47:41 +01:00
Felipe Contreras 6f9650d940
fix(gitfast): update to git-completion 1.3.6 (#10633) 2022-01-28 13:45:05 +01:00
Marc Cornellà 3c5367d272
fix(changelog): don't show changelog with only ignored type commits 2022-01-28 13:36:54 +01:00
Lukas b5edb51ee4
style(rkj-repos): change white to default to support light color schemes (#6195)
Co-authored-by: Matthias Doering <matthias.doering@teamix.de>
2022-01-27 22:00:50 +01:00
ajr-dev ad8220bc6d
fix(tmux): use $ZSH_TMUX_CONFIG setting in tmuxconf alias 2022-01-27 21:51:13 +01:00
Kuri Schlarb 303ae79712
fix(ys): fix $VIRTUAL_ENV check if nounset is enabled (#9915) 2022-01-27 21:48:42 +01:00
Marc Cornellà 59c40eee8e
fix(installer): avoid git clone -c to support git v1.7.1 (#10621) 2022-01-27 18:01:27 +01:00
Marc Cornellà 3741d1aa02
fix(npx)!: detect new npx versions and fail gracefully (#10452)
BREAKING CHANGE: the `npx` plugin used a feature of `npx` to check for
npm packages and run them if a command was not found. This feature was
removed in v7.0.0 and was deemed insecure. The `npx` plugin is now
officially deprecated and will be removed soon.

Fixes #10452
2022-01-26 17:13:10 +01:00
Marc Cornellà fc40b53e64
style(updater): silence git pull output and show errors in English 2022-01-24 18:32:36 +01:00
Carlo Sala 4417faf84c
feat(postgres): support Homebrew for Apple Silicon (#10618) 2022-01-24 17:45:09 +01:00
Marc Cornellà f64cabc780
fix(cli): make sure to run zsh command if an alias exists (#9737)
Fixes #9737
2022-01-24 17:38:32 +01:00
David Chin 8e7c33bf15
chore(1password): fix typo in opswd (#10614) 2022-01-24 16:30:49 +01:00
Marc Cornellà 788802af68
fix(installer): correct check for sudo in shell change logic 2022-01-24 15:56:10 +01:00
Marc Cornellà 861805b64d
fix(installer): define $USER if not defined
Fixes missing $USER value in ArchLinux sh (bash)
2022-01-24 15:42:10 +01:00
Marc Cornellà c7221c5f25
style(installer): prefix formatting variables with FMT_ 2022-01-24 15:41:40 +01:00
Ricky Medina 3f5402e268
feat(1password): add plugin for 1password (#8884)
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2022-01-24 15:21:34 +01:00
Mathias Neerup d4f5fa37e8
feat(simple): add color to git status indicator (#4962)
Closes #4962
2022-01-24 11:47:30 +01:00
Marc Cornellà 84931adcd4
fix: do not call chpwd hooks in subshells 2022-01-22 22:07:09 +01:00
GitHubLeakedPAN, GitHubLeakedMyautsai 4e0f19cf92
feat(ys): show svn repository information (#10582) 2022-01-22 21:56:36 +01:00
kronion 2b492aec93
chore(poetry): remove unnecessary unset (#10605) 2022-01-21 19:52:24 +01:00
Billy Mathews 675a2d9922
feat(tmux): add tmuxconf alias to edit .tmux.conf (#6555)
Closes #6555
2022-01-20 16:42:49 +01:00
Marc Cornellà a7efd96a60
fix(dotenv): match for exact directory path in allowed/disallowed files 2022-01-19 19:27:53 +01:00
Marc Cornellà 0b08b70b0c
chore(poetry): fix copy-paste error 2022-01-19 17:15:16 +01:00
kronion 00d0735704
feat(poetry): add plugin to provide completion for Poetry (#10595) 2022-01-19 16:49:24 +01:00
Mike Mattice fe9d87d6dc
feat(aws): accept aws mfa tokencode on acp cli call (#10130)
Co-authored-by: Mike Mattice <mmattice@reliant.io>
2022-01-19 15:58:34 +01:00
Marc Cornellà 22c11da108
fix(fig): fix typo in completion command 2022-01-18 21:26:45 +01:00
Marco Franssen cddf1b6982
feat(fig): add plugin for Fig (#10432) 2022-01-18 20:57:07 +01:00
Marc Cornellà 957dca698c
style(sudo): clean code style and reorganise logic 2022-01-18 19:03:27 +01:00
Carlo Sala 540b2200af
feat(sudo): respect $SUDO_EDITOR and $VISUAL, switch to sudo -e (#10596) 2022-01-18 18:46:14 +01:00
Marc Cornellà 4f2d8b4d4c fix(kubectl): source completion instead of autoloading it 2022-01-17 16:18:41 +01:00
Marc Cornellà dfaad779a9 fix(helm): fix completion loading mechanism 2022-01-17 16:18:41 +01:00
Marc Cornellà 567bd59395
refactor(cli): use self-referencing in subcommand functions 2022-01-17 13:18:10 +01:00
Mykola Krachkovsky 1e277553bc
fix(svn): fix sed call in svn_get_rev_nr (#10590) 2022-01-14 15:28:39 +01:00
Marc Cornellà 035c856c2c
fix: get branch name first in omz version and changelog 2022-01-13 17:46:09 +01:00
Marc Cornellà 805427e06b
fix(updater): give priority to zstyle settings if set (#10587)
Fixes #10587
2022-01-13 17:28:15 +01:00
Marc Cornellà aaebe4c890
fix(mvn): fix listing modules in completion (#10586) 2022-01-13 14:29:12 +01:00
Marc Cornellà bddecfed58
style(updater): remove statl from git pull 2022-01-13 12:34:10 +01:00
Carlo Sala 93cea53618
fix(yarn): update completion (#10579)
Fixes #10578
2022-01-12 12:19:34 +01:00
Marc Cornellà b481955761
ci(project): fix .list files not found error 2022-01-11 23:40:33 +01:00
Marc Cornellà c63ba17525
refactor(installer): simplify user_can_sudo check 2022-01-11 19:53:50 +01:00
Marc Cornellà a0a949de56
fix(installer): fix sudo check for users with password or without privileges
The previous check only worked if the user could run `sudo` without typing the
password, which is almost none (I checked in Google Cloud Shell so I failed to
notice this).

This new check works whether the user has no sudo privileges, or if it has,
whether they have to type in the password or not.

It should really be easier to check if the user doesn't have privilege without
having to make them type the password.
2022-01-11 19:13:23 +01:00
Marc Cornellà b7a59e6d5c
fix(installer): run chsh with sudo if user has privileges
This fixes the error in Google Cloud Shell, where a password prompt
appears when running `chsh` but the user (hello) does not have a
password.

If ran with `sudo`, the `chsh` command happens without a password
prompt.
2022-01-11 16:45:36 +01:00
Marc Cornellà 9c84c344d7
fix: disable log.showSignature in git log calls 2022-01-10 19:39:05 +01:00
WeZZard 971683762e
fix(avit): disable log.showSignatures in _git_time_since_commit (#10072) 2022-01-10 18:38:35 +01:00
Marc Cornellà 0ca2e48ee8
ci(project): fix gh pr view call to use ohmyzsh repository 2022-01-10 17:22:31 +01:00