1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-12-27 06:41:58 +00:00
Commit graph

751 commits

Author SHA1 Message Date
Carlo Sala
99e2c31484
feat(git): add git_previous_branch function
Closes #12538
2024-09-18 21:05:45 +02:00
Erik Teichmann
9bcafe1c27
feat(functions): add takezip (#12670) 2024-09-18 20:26:38 +02:00
Saravana J
33ac2ee30f
fix(git): update prefix map for modified files (#12674) 2024-09-15 08:17:43 +02:00
robertoaceves
efe21261d0
fix(grep): remove duplicate options (#12639) 2024-08-27 08:13:47 +02:00
Marc Cornellà
f70e6916a1
fix(lib): turn off rematchpcre option in omz_urlencode (#12388)
Fixes #12388
2024-07-27 14:29:08 +02:00
Jeonguk Choi
70cfff448d
feat(conda-env): add plugin for conda prompt display (#10619)
Co-authored-by: Jeonguk Choi <91456421+devj121@users.noreply.github.com>
2024-07-15 18:56:44 +02:00
Marc Cornellà
f2769acdfa
chore(history): show input in confirmation prompt
Fixes https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2175868971
2024-06-18 13:32:22 +02:00
Marc Cornellà
c83ca51b1b
fix(history): fix confirmation prompt to allow bypass
See https://github.com/ohmyzsh/ohmyzsh/issues/12472#issuecomment-2171461005
2024-06-18 07:26:38 +02:00
Nick Glenn
8908e6d720
fix(history): fix logic error in prompt for history -c (#12500)
Logic error in `history -c` when prompting for confirmation caused history
to be deleted when typing anything but explicitly `n`, `N`, or sending `\n`.
New logic prevents deletion by pressing wrong key and only deletes
history when sending `y` or `Y`.

Co-authored-by: Sargates <nicholas.g.glenn@gmail.com>
2024-06-13 09:26:17 +02:00
Marc Cornellà
35a6725970
fix(history): add warning before deleting command history in history -c (#12472) 2024-06-12 11:04:05 +02:00
Marc Cornellà
59e8e028e1
fix(lib/git): turn off async prompt for zsh < 5.0.6
We removed this mitigation in 0c80a063 because of an assumption
that the issue had been fixed, but it looks like zsh < 5.0.6 has
other issues (see #12360), so we need to disable it for real.

Fixes #12360
2024-06-12 10:32:30 +02:00
Marc Cornellà
b0561d28b5
fix(cli): fix edge cases in omz plugin disable command (#12401)
Also introduces tests, which will be refactored into the proper
place when a test system is finally designed.

Fixes #12400
2024-05-08 22:20:42 +02:00
stefan
529f77a344
feat(termsupport): support alacritty* TERM (#12392)
Closes #12391
2024-05-02 15:11:18 +02:00
Marc Cornellà
0c80a063c3 chore(async): reenable async prompt by default on zsh < 5.0.6 (#12358)
Fixes #12331
2024-04-22 10:59:34 +02:00
Marc Cornellà
f78c6b90fc fix(async): fix crash on zsh < 5.0.6 (#12358) 2024-04-22 10:59:34 +02:00
Martin Hans
d17ca487a4
fix(history): add t option to history wrapper (#12365)
The `t` option takes a strftime format specification as argument. This
fixes cases in which $HIST_STAMPS is set to a value other than
`mm/dd/yyyy|dd.mm.yyyy|yyyy-mm-dd`.
2024-04-18 10:49:34 +02:00
Marc Cornellà
56cfcb44e7
fix(updater): abort update if $ZSH is not a git repository
Fixes #12298
2024-04-18 07:33:13 +02:00
Marc Cornellà
eafa78217d
fix(history): fix history -c (#12362)
Fixes #12362
2024-04-18 07:12:32 +02:00
Marc Cornellà
1ed8d4b555
fix(git): turn off async prompt by default on zsh < 5.0.6 (#12331)
See https://github.com/ohmyzsh/ohmyzsh/issues/12331#issuecomment-2059460268
2024-04-17 20:21:18 +02:00
Martin Hans
efa8de0b52
fix(history): fix edge cases introduced in #12341 (#12357) 2024-04-16 19:38:58 +02:00
MoAlkhateeb
605d76616a
fix(history): revert to old behavior when no args passed (#12341)
* Fixed a bug in *omz_history* where it would automatically create a file when run with the -p flag

* Reverted old history behaviour while fixing parsing bug
2024-04-09 18:09:26 +02:00
MoAlkhateeb
a8f7f9f707
fix(history)!: fix arg passing to fc for history command (#12338)
BREAKING CHANGE: we have fixed a bug in the `history` wrapper for OMZ which means
that running just history will now not show all the history since the 1st command,
but only recent ones. To get the previous behavior, you can run `history 1` to get
all the command history, or other commands such as `history -30` to get the last
30 commands.
2024-04-09 08:07:57 +02:00
Marc Cornellà
0389310390
fix(lib/git): fix detection of function use in prompt
RPS1 and RPROMPT are not equivalent, though they have the same effect.
Added both to detect if `git_prompt_*` is used.

Fixes #12325
2024-04-05 07:38:36 +02:00
Loïc Yhuel
9d529c41cc
perf(async): avoid executing true if not required (#12318)
The issue which required "command true" was fixed in zsh 5.8.
2024-04-04 16:20:20 +02:00
Carlo Sala
114b58ed4e
fix(git): disable locally ksharrays
Fixes #12321
2024-04-04 11:58:43 +02:00
Loïc Yhuel
04007a0e5d
feat(git): implement async completion for git_prompt_status (#12319)
This is important for themes using it, since it is usually a little slower than git_prompt_info.

Also two small fixes :
 - the handler for git_prompt_info was incorrectly named _omz_git_prompt_status
 - _defer_async_git_register was kept in precmd, there is no need to call it on each prompt
2024-04-03 21:32:16 +02:00
Marc Cornellà
ec1afe9dd6
feat(git)!: enable async git prompt (now for real)
BREAKING CHANGE: the new async prompt feature will render prompt information
asyncronously and degrade nicely when the calls take too long to finish, as
the prompt will already be first drawn and interactive. This is
enabled by default for the git prompt and themes that use it (`git_prompt_info`).
If you find that it's not working for you, please open an issue if one is
not already opened, and see https://github.com/ohmyzsh/ohmyzsh#disable-async-git-prompt
for how to turn it off.
2024-04-03 20:09:19 +02:00
Loïc Yhuel
b43b84abc7
fix(async): avoid blocking the shell while waiting (#12304)
Co-authored-by: Marc Cornellà <marc@mcornella.com>
2024-04-03 19:42:47 +02:00
vladislav doster
1d09c6bb0a
style: remove trailing whitespace (#12303) 2024-03-26 09:55:16 +01:00
shuangcui
c8ba08581d
docs: fix typos (#12284) 2024-03-14 23:07:39 +07:00
Marc Cornellà
06753e8146
fix(async): register the git prompt async handler correctly (#12267)
This fix conditionally registers the git prompt async handler only
if `git_prompt_info` is used anywhere in the prompt variables.

This is done in the proper order, so that the async request is
processed once the handler has been registered.

This fix also passes the return value of the previous command
to each of the async handlers, in case they are needed.
2024-03-09 18:29:53 +01:00
Carlo Sala
32d4389aa6
fix(git): disable temporarely async prompt 2024-03-07 17:17:27 +01:00
Marc Cornellà
083cc2c8e8
feat(async)!: implement async prompt API and apply to git prompt (#12257)
BREAKING CHANGE: the `git_prompt_info` prompt function has been
reworked by default to use the new async prompt feature. If you're
experiencing issues see #12257.

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2024-03-07 14:39:05 +01:00
Carlo Sala
8f22370af8
fix(key-bindings): bind default arrow keys to beginning-search
Fixes #12197
2024-02-12 09:48:38 +01:00
vladislav doster
fff073b55d
style(completion): remove extra space (#12206) 2024-02-08 15:41:34 +01:00
Taylor Cochran
70bf12402c
fix(prompt): quote ruby prompt (#12195) 2024-02-03 22:50:44 +01:00
Michal
f7b647e1b1
feat(spectrum): add FX[dim] format (#12172) 2024-01-21 05:25:50 +01:00
Jordan Galby
fa770f9678
fix(clipboard): remove clippaste additional newline on wayland (#12140)
So clippaste behaves the same as on X11 (xsel, xclip).
2023-12-31 11:17:37 +01:00
Marc Cornellà
1ae0515a80
fix(lib): patch omz_urlencode to not encode UTF-8 chars in Termux (#12076)
Fixes #12061
2023-12-06 08:09:45 +01:00
Bernard Grymonpon
7e3fdf33ec
fix(misc): only set PAGER if less or more are available (#12060) 2023-11-27 11:07:51 +01:00
Marc Cornellà
8428442ff0
fix(termsupport): add workaround for directory tracking issues in Konsole
Fixes #11683
Related: 50c6786
2023-10-19 23:24:55 +02:00
James Cuzella
ccce2e1cfd
fix(termsupport): match all foot-like terminfo (#11868) 2023-08-31 23:35:33 +02:00
Carlo Sala
03a0d5bbae
fix(clipboard): load clipboard on usage
Closes #8827
2023-08-24 17:25:51 +02:00
Marc Cornellà
cb8b677488
fix(termsupport): don't report current working directory in SSH sessions (#11703) 2023-06-11 17:02:48 +02:00
Marc Cornellà
50c678687e
fix(termsupport): fix pwd report for Konsole (#11730)
The Konsole terminal shows an error if the host is provided in the
OSC 7 sequence.

Fixes #11730
2023-06-08 18:48:32 +02:00
Carlo Sala
902b79e635
fix(functions): use command env
Closes #11709
2023-05-23 08:43:49 +02:00
Carlo Sala
dcff7a7f08
fix(theme-and-appearance): make bsd ls to be default 2023-05-09 12:05:15 +02:00
Carlo Sala
c5208867f1 feat(theme-and-appearance): allow disabling gnu-ls in bsd
To disable gnu-ls (`gls`) even if it's installed in freeBSD and macOS
you can set it up with:
```zsh
zstyle ':omz:lib:theme-and-appearance' gnu-ls no
```

Closes #11647
2023-05-06 13:39:01 +02:00
Erin Schlarb
5b11e70a96
fix(cli): execute as expected if ksh_arrays is set (#11629) 2023-04-20 13:32:32 +02:00
Alexander Schlarb
25c2c3a468
feat(lib): send OSC 7 on directory change for more supported terminals (#9914)
Previously this was only emitted on macOS with Apple's Terminal.app (and
compatible clones like iTerm2), but it is used by other terminal emulators
as well to obtain the actual current working directory wiht symlinks intact.
All non-supporting terminal emulators tested gracefully ignored this value,
so emit this on these as well in case they (or some other app masquarading
as them) add future support for this value.

Closes #9914

Co-authored-by: Marc Cornellà <hello@mcornella.com>
2023-04-05 00:20:10 +02:00