Commit Graph
100 Commits
Author SHA1 Message Date
Marc Cornellà 8c1495a18e fix(ruby)!: rename aliases that start with g to ge
BREAKING CHANGE: all `gem` aliases that started with `g` now start
with `ge` to fix conflicting names with the `git` plugin. Also, the
`ghlp` alias is now renamed `geh`. Have a look at the plugin README
for more information.

Fixes #10320
2021-10-20 17:11:42 +02:00
Marc Cornellà 4b1f6d638f feat(ruby): add multiple gem aliases (#9005)
Mostly empty commit to fix the changelog for merge at 6f4c7f64
2021-10-19 20:07:40 +02:00
Marc Cornellà 19f9b6f1ad feat(updater): add support for terminal hyperlinks 2021-10-13 11:58:56 +02:00
Marc Cornellà beeda72826 fix(ssh-agent): fix for bad zstyle command argument
Fixes #10282
2021-10-11 15:22:03 +02:00
Marc Cornellà a0ac789f2a feat(ssh-agent): allow lazy-loading SSH identities (#6309)
Fixes #7477
2021-10-11 12:15:47 +02:00
Marc Cornellà 5fb204fa74 fix(battery): force battery percentage as integer 2021-10-08 15:42:43 +02:00
Marc Cornellà 9aeb967581 fix(battery): fix system check so Termux uses the correct method 2021-10-08 12:34:04 +02:00
Marc Cornellà 607d2f1eda Revert "fix(changelog): don't parse commits of ignored types"
This reverts commit 63b7e5767d.
2021-10-07 13:35:07 +02:00
Marc Cornellà 69a45a9c98 chore: zshrc update settings rewording 2021-10-06 10:14:39 +02:00
Marc Cornellà 63b7e5767d fix(changelog): don't parse commits of ignored types 2021-10-05 16:56:00 +02:00
Marc Cornellà 53c9661b00 refactor(chucknorris): refresh plugin code 2021-10-05 16:45:49 +02:00
Marc CornellàandFrederick Zhang 49bc55f966 fix(docker-compose): fix for slow docker compose call on remote Docker contexts (#10264)
Fixes #10264

Co-authored-by: Frederick Zhang <frederick888@tsundere.moe>
2021-10-05 13:23:05 +02:00
Marc Cornellà f793baf370 fix(jsontools): fix broken conditional in zsh 5.0.2 (#10262)
Fixes #10262
2021-10-05 11:59:09 +02:00
Marc Cornellà b621eee21f fix(cli): fix zsh array syntax for szh 5.0.2 2021-10-05 11:58:39 +02:00
Marc Cornellà a54148a43e fix(init): rename function f due to clash with f alias (#10260)
Fixes #10260
2021-10-04 17:51:22 +02:00
Marc CornellàandSebastian Marsching 568584a9f5 fix(per-directory-history): fix use of global history on shell start (#9008)
Updated from upstream: https://github.com/jimhester/per-directory-history/blob/d2e291d/per-directory-history.zsh

Fixes #9007
Closese #9008

Co-authored-by: Sebastian Marsching <sebastian-git-2016@marsching.com>
2021-10-04 17:14:34 +02:00
Marc Cornellà 5dbb30342e feat(yarn): update completion from zsh-completions (73505e4)
Fixes #10195
2021-10-04 12:45:59 +02:00
Marc CornellàandBakhir A.D a3289c11f6 feat(docker-compose): update completion (4fa72a0, 2021-01-19)
Source: https://github.com/docker/compose/blob/4fa72a0/contrib/completion/zsh/_docker-compose

Closes #9494

Co-authored-by: "Bakhir A.D" <Bakhir.A.D.st@gmail.com>
2021-10-04 12:02:08 +02:00
Marc CornellàandGitHub c396efbee3 fix(docker-compose): support Compose V2 docker compose command (#10248) 2021-10-04 11:26:39 +02:00
Marc Cornellà 30d441713c feat(updater): check if there are updates before prompting (#8387)
Fixes #8387
2021-10-04 10:47:10 +02:00
Marc CornellàandNoPreserveRoot 0120749a54 feat(updater): add mode to only remind you to update when it's time (#10187)
Fixes #10187

Co-authored-by: NoPreserveRoot <NoPreserveRoot@pm.me>
2021-10-04 10:47:10 +02:00
Marc Cornellà 3c9743313c refactor(updater): change auto-update settings to use zstyle 2021-10-04 10:47:10 +02:00
Marc CornellàandGitHub 7152a94280 feat(init): show error and process tree if OMZ is loaded from non-zsh shells (#10234) 2021-10-04 10:34:13 +02:00
Marc Cornellà 3c209b00d6 feat(cli): show current theme in omz theme list
Fixes #9540
2021-09-30 15:45:12 +02:00
Marc Cornellàandvaldaarhun 72b8f0b73b fix(half-life): fix prompt color bleeding and code clean up (#10085)
Fixes #10085
Closes #10223

Co-authored-by: valdaarhun <icegambit91@gmail.com>
2021-09-30 15:23:11 +02:00
Marc Cornellà 5f99eb5afd fix(cli): get branch and tags from OMZ folder in omz changelog completion 2021-09-30 10:18:53 +02:00
54e3e8ef54 fix(lib): fix automatic title abort inside Emacs (#10124)
Closes #10124

Co-authored-by: Paul Schorfheide <pschorf2@gmail.com>
Co-authored-by: Alastair Rankine <alastair@girtby.net>
2021-09-29 17:19:25 +02:00
Marc Cornellà de76f7cb49 fix(emacs): correctly pass arguments to emacsclient when $2 is stdin 2021-09-29 16:50:12 +02:00
Marc Cornellà 2acae3797b fix(emacs): assess if there are open frames of the expected type
This change looks at the frame type of the open frames ('framep) and
looks if they're of the type requested based on the arguments passed
to emacsclient (-nw/-t/--tty require tty frames, otherwise we need
graphical frames).

NOTE: this code considers anything different than t as graphical
terminals, including MS-DOS types (pc). I don't have such a setup
to test if this is correct.
2021-09-29 16:50:12 +02:00
Marc Cornellà 27dcca5967 refactor(emacs): simplify emacsclient wrapper code 2021-09-29 16:50:12 +02:00
Marc Cornellà b37114b4d5 refactor(emacs): remove dependency on require_tool.sh and clean up code style 2021-09-29 16:50:12 +02:00
Marc Cornellà 33c86fe80b fix(init): detect and abort on non-zsh shell execution of Oh My Zsh 2021-09-28 11:29:42 +02:00
Marc Cornellà 93ad3a8821 docs(vi-mode): document $KEYTIMEOUT issue (#9588)
Closes #9588
2021-09-27 11:46:42 +02:00
Marc CornellàandGitHub 2ea1fa6cbf fix(init): fix division by 0 error (#10213)
Fixes #10213
2021-09-24 16:50:00 +02:00
Marc Cornellà 5b3d2b2f0c Revert "feat(archlinux): add cleanup aliases to yaourt and yay (#10184)"
This reverts commit eba3be243f.
2021-09-22 11:58:23 +02:00
Marc Cornellà 3e4b520190 refactor(django)!: deprecate plugin in favor of Zsh's django completion
BREAKING CHANGE: Zsh already provides completion for the `django-admin` and `manage.py`
commands, which is substantially better than the one provided by this plugin. We're
therefore deprecating this plugin and we will remove it in the near future.
2021-09-22 10:41:06 +02:00
Marc CornellàandNikolas Garofil 098bcda691 feat(update): allow updating from branch set up on install
Closes #8788

Co-authored-by: Nikolas Garofil <nikolas@garofil.be>
2021-09-22 09:27:43 +02:00
Marc Cornellà b590939637 refactor(jsontools): move to functions, align is_json tool to return exit code
Also:

- Fix Python code in accordance with Python 3
- Use CGI module in Ruby to encode/decode strings
2021-09-22 09:19:11 +02:00
Marc Cornellà f9d9d33ba4 refactor(jsontools): restructure and simplify logic 2021-09-22 09:19:11 +02:00
Marc Cornellàandyyny b79726b1c3 fix(update): silence typeset calls in upgrade.sh script (#10048)
Co-authored-by: yyny <6576327+yyny@users.noreply.github.com>
2021-09-16 17:01:58 +02:00
Marc Cornellà 93b557e291 style(core): make alternative cache directory equivalent to Arch Linux package
The oh-my-zsh-git package sets the cache directory to `$HOME/.cache/oh-my-zsh`, so
Oh My Zsh will be compatible with it.
2021-09-15 20:45:26 +02:00
Marc Cornellà 8784e88552 fix(core): use $HOME/.cache if default cache dir is non-writable (#10193)
Fixes #10193
2021-09-15 20:38:54 +02:00
Marc Cornellà eb2eacaf0c refactor(plugins): remove old generated completion files
This removes .gitignore plugin files and adds a force-rm of the old completion file,
which ignores any errors if the file doesn't exist.
2021-09-15 18:47:51 +02:00
Marc Cornellà d2269180b0 fix(core): move plugin-generated completion files to $ZSH_CACHE_DIR/completions
Fixes #10183
2021-09-15 18:41:44 +02:00
Marc Cornellà 4e6e49652b fix(plugins): fix _comps error in completion generation plugins (#10190)
Fixes #10190
2021-09-15 18:18:25 +02:00
Marc Cornellà c21ff38b8f fix(docker): remove unwanted asterisk in completed docker commands
Also update upstream completion to version fe2008d04e80fafd.

NOTE: this fix means the version bundled within Oh My Zsh has diverged
from the upstream version.
2021-09-15 17:47:57 +02:00
Marc Cornellà 735808f48d Revert "feat(ssh-agent): only start ssh-agent once (#5359)"
This reverts commit 7692881d2a.
2021-09-10 18:01:43 +02:00
Marc Cornellà 81edb03c52 fix(copybuffer): define CTRL+O binding for all keymaps (#6442)
Fixes #6442
2021-09-10 17:07:22 +02:00
Marc Cornellà 37a60eebc1 chore(changelog): fix first-letter uppercase in breaking change messages 2021-09-07 17:13:46 +02:00
Marc Cornellà f341c8c206 feat(changelog): print BREAKING CHANGE messages in a prettier way 2021-09-07 17:08:46 +02:00
Marc Cornellà 5a4159cd29 fix(git)!: rename git mergetool aliases to gmtl* (#9154)
BREAKING CHANGE: the `gmt` alias conflicts with the Generic Mapping Tools command.
For that, the `gmt` alias has been renamed to `gmtl`, and `gmtvim` has been renamed to
`gmtlvim` for consistency.

Fixes #9154
2021-09-06 13:31:13 +02:00
Marc Cornellà 7336ebcd8f feat(changelog): change style of BREAKING CHANGES header 2021-09-06 13:31:12 +02:00
Marc CornellàandPandu POLUAN 1b03896a0e feat(pyenv): don't load pyenv-virtualenv with ZSH_PYENV_VIRTUALENV=false
Closes #9443

Co-authored-by: Pandu POLUAN <pepoluan@gmail.com>
2021-09-03 12:57:13 +02:00
Marc Cornellà 823be4ef5f feat(pyenv): silence bad config warning with ZSH_PYENV_QUIET=true 2021-09-03 12:54:45 +02:00
Marc CornellàandChloé “Matcha” c08fb77c2f fix(pyenv): properly load pyenv shims and warn of broken configuration
Closes #10133

Co-authored-by: Chloé “Matcha” <chloe.desoutter@gmail.com>
2021-09-03 12:47:31 +02:00
Marc Cornellà 21b385e7bd fix(frontend-search): fix codepen.io search (#10157)
Fixes #10157
2021-09-02 12:29:04 +02:00
Marc Cornellà 190325049e fix(sudo): allow different $EDITOR settings and fix zsh-syntax-highlighting redraw 2021-08-27 18:08:51 +02:00
Marc Cornellà a1847dc860 style(sudo): apply main style guide indentation 2021-08-27 18:08:51 +02:00
Marc Cornellà 4a69ee575c feat(ssh-agent): allow specifying absolute path to identities
Fixes #9650
2021-08-27 18:08:04 +02:00
Marc Cornellà 3f0672ff94 refactor(ssh-agent): clean up and reorganize code 2021-08-26 14:56:22 +02:00
7692881d2a feat(ssh-agent): only start ssh-agent once (#5359)
Close #5359
Close #7379

Co-authored-by: Will Andrews <will@firepipe.net>
Co-authored-by: zhangyc <zhangyc@fenbi.com>
2021-08-26 14:54:17 +02:00
Marc Cornellà cbb534267a feat(cli): add theme set subcommand to change theme in .zshrc
Fixes #9087
2021-08-18 16:58:36 +02:00
Marc Cornellà 8dedf26294 style(cli): print usage messages to stderr 2021-08-18 12:50:22 +02:00
Marc Cornellà b85e1dd5d6 fix(pyenv): fix for checking if pyenv-virtualenv is installed
Fixes #8467
2021-08-18 11:51:19 +02:00
Marc Cornellà 10f3e0d4d4 docs(pyenv): document necessity to logout after PATH settings 2021-08-18 11:43:29 +02:00
Marc Cornellà 7a4f4ad91e fix(lib): fix clipboard copy on Termux 2021-08-17 17:38:31 +02:00
Marc Cornellà ad1837859b fix(updater): fix reset ANSI escape code for resetting underline format 2021-08-17 16:35:42 +02:00
Marc Cornellà bc7ce982dd style(cli): fill rows in column output in theme and plugin list commands 2021-08-17 12:53:09 +02:00
Marc Cornellà bf888680ea refactor(cli): extract substitution awk script in plugin disable 2021-08-17 12:44:53 +02:00
Marc Cornellà 708bbe12c5 fix(cli): fix multiple errors in plugin disable/enable 2021-08-17 12:31:37 +02:00
Marc Cornellà 11e22ed0b5 docs(dirhistory): document keyboard shortcut conflict with Windows Terminal
Related: https://github.com/ohmyzsh/ohmyzsh/issues/8505#issuecomment-886241162
2021-08-14 22:56:14 +02:00
Marc Cornellà 7c5ab01a5f fix(changelog): also display commits from merged branches 2021-08-14 22:41:48 +02:00
Marc Cornellà 0b809c8dc5 Merge branch 'refactor/extract-plugin'
Closes #7948
Closes #9959
2021-08-14 22:37:23 +02:00
Marc Cornellà 0b32e4b25f style(extract): adopt main code style guide and refactor variables 2021-08-14 22:34:14 +02:00
Marc Cornellà 10a00085d0 fix(extract): don't push entries to dirstack when extracting rpm and deb files 2021-08-14 22:33:46 +02:00
Marc Cornellà a2f1ef69b5 fix(extract): correctly extract rpm files on other directories 2021-08-14 22:33:06 +02:00
Marc Cornellà 6dc937ff68 feat(extract): add suport for .cab files via cabextract 2021-08-14 22:32:04 +02:00
Marc Cornellà af6c7f3d67 refactor(cloudapp)!: remove deprecated cloudapp plugin
BREAKING CHANGE: the `cloudapp` plugin has been removed due to removed API.
2021-08-13 12:42:56 +02:00
Marc Cornellà e1f0d826f1 refactor(go)!: remove deprecated go plugin
BREAKING CHANGE: the `go` plugin has been removed. Use the `golang` plugin instead.
2021-08-13 12:40:20 +02:00
Marc Cornellà 502b07c9b2 refactor(fedora)!: remove deprecated fedora plugin
BREAKING CHANGE: the `fedora` plugin has been removed. Use the `dnf` plugin instead.
2021-08-13 12:38:22 +02:00
Marc Cornellà 7eeb1e193d refactor(lib): refactor take functions 2021-08-10 21:09:21 +02:00
Marc Cornellà c249288151 feat(lib): add mkcd as equivalent to takedir (#9749)
Fixes #9749
2021-08-10 21:06:46 +02:00
Marc Cornellà 5377cc37c0 fix(pyenv): fix for ignoring pyenv-win commands
The previous fix ignored any pyenv command found in $PATH while on
WSL, regardless of whether it was correctly set up or not.

This change only ignores the pyenv command if it's proved to come
from pyenv-win by looking at its full path.
2021-07-26 11:46:15 +02:00
Marc Cornellà e4f6f1698d fix(copybuffer): show error below the command line 2021-07-12 17:34:34 +02:00
Marc Cornellà 36f444ed73 fix(update): fix error exit code on update check (#10033)
This patch removes the 'exit 1' status code when the update check
finishes or is ended with CTRL+C.

Fixes #10033
2021-07-08 16:11:16 +02:00
Marc Cornellà c44b99e901 fix(dotenv): draw confirmation prompt in next empty line
Without this fix the confirmation prompt appears wherever the cursor is,
which means that it might appear in the command line when using a widget
that changes the directory without redrawing the prompt (an example of
this are the dircycle and dirhistory plugins).
2021-07-07 10:41:14 +02:00
Marc Cornellà 0e7d7b87f3 feat(changelog): ignore merge commits 2021-07-07 10:40:05 +02:00
Marc Cornellà e32d4b1e19 fix(lib): remove kubectx stub prompt function from lib
Fixes #9974
2021-06-17 18:54:52 +02:00
Marc Cornellà 3e7998aec3 Revert "ssh-agent: improvements (#6309)"
This reverts commit a206271460.
2021-06-14 10:57:50 +02:00
Marc Cornellà b54a6dab9c refactor(command-not-found): clean up and reorganize logic 2021-04-09 21:22:25 +02:00
Marc Cornellà 615f9dd02b chore: direct support queries to Discussions 2021-04-06 22:26:57 +02:00
Marc Cornellà 74db9acdb9 chore: I'm dumb 2021-04-06 22:17:17 +02:00
Marc Cornellà 7da330f1bd chore: fix CONTRIBUTING.md TOC 2021-04-06 22:14:05 +02:00
Marc Cornellà d5e9e8d37b docs: document commit convention in CONTRIBUTING.md 2021-04-06 22:11:02 +02:00
Marc Cornellà 1670f1cafc chore: add maintainer for archlinux plugin 2021-04-06 14:52:47 +02:00
Marc Cornellà 2b1d412279 fix(git): add push or save to gstu alias (#9766)
Fixes #9766
2021-03-31 11:25:26 +02:00
Marc Cornellà 6e56784179 fix(virtualenv): allow empty prefix/suffix in prompt function (#9763)
Fixes #9763
2021-03-28 15:01:39 +02:00
Marc Cornellà 02d07f3e3d fix: use $USERNAME guaranteed to always be defined in zsh
Fixes #9701
2021-03-25 12:08:00 +01:00
Marc Cornellà e8716cb570 fix(uninstall): fix renaming .zshrc when no original rc file found
Fixes #9629
Fixes #9700
2021-03-15 19:51:31 +01:00
Marc Cornellà c52e646bb7 refactor(gallois): clean up theme and fix typos 2021-01-31 19:55:13 +01:00