summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2023-10-19fix(termsupport): add workaround for directory tracking issues in KonsoleMarc Cornellà
Fixes #11683 Related: 50c6786
2023-08-31fix(termsupport): match all `foot`-like terminfo (#11868)James Cuzella
2023-08-24fix(clipboard): load clipboard on usageCarlo Sala
Closes #8827
2023-06-11fix(termsupport): don't report current working directory in SSH sessions ↵Marc Cornellà
(#11703)
2023-06-08fix(termsupport): fix pwd report for Konsole (#11730)Marc Cornellà
The Konsole terminal shows an error if the host is provided in the OSC 7 sequence. Fixes #11730
2023-05-23fix(functions): use `command` envCarlo Sala
Closes #11709
2023-05-09fix(theme-and-appearance): make bsd `ls` to be defaultCarlo Sala
2023-05-06feat(theme-and-appearance): allow disabling gnu-ls in bsdCarlo Sala
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-04-20fix(cli): execute as expected if `ksh_arrays` is set (#11629)Erin Schlarb
2023-04-05feat(lib): send OSC 7 on directory change for more supported terminals (#9914)Alexander Schlarb
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-04feat(termsupport): add contour terminal (#11599)Christian Parpart
Signed-off-by: Christian Parpart <christian@parpart.family>
2023-04-03feat(init)!: allow turning off aliases for libs and plugins (#11550)Marc Cornellà
BREAKING CHANGE: the previous zstyle setting to disable `lib/directories.zsh` aliases has been changed to the new syntax: `zstyle ':omz:lib:directories' aliases no`. See https://github.com/ohmyzsh/ohmyzsh#skip-aliases to see other ways you can use this setting. Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2023-03-28feat(upgrade): add verbosity settingsHåvard Bartnes
Co-authored-by: Carlo Sala <carlosalag@protonmail.com> Closes #11574 Closes #11579
2023-03-12fix(lib): set equivalent LS_COLORS and LSCOLORS variablesMarc Cornellà
As reported by https://geoff.greer.fm/lscolors Fixes #11554
2023-03-07fix(init): set completion colors on theme load, not with `precmd`Marc Cornellà
This fixes an edge case where the user actually sets zstyle ':completion:*' list-colors in their zshrc, but the previous code used a precmd hook, which would override the user changes. With this change our modifications will be set in the init script, after the theme loads, so that later changes can affect our defaults. Note that this will not be run for users on plugin managers, as these don't generally run our init script.
2023-03-03refactor(theme-and-appearance): reorganize and clean up logic (#11529)Marc Cornellà
Co-authored-by: Andrew Janke <janke@pobox.com> Co-authored-by: Marcelo Parada <marcelo.parada@axoninsight.com> Co-authored-by: Uy Ha <hchanuy@gmail.com> Co-authored-by: Valentin Uveges <valentin.uveges@gmail.com>
2023-03-03fix(lib): use `$BROWSER` in `open_command` if set (#11532)Marc Cornellà
Fixes #11098
2023-02-26fix(lib): fix case-insensitive completion for zsh 5.9 (#11526)Jannik
2023-02-24refactor: reorganize setopts in lib folderMarc Cornellà
2023-02-24fix(lib): fix return code after expected non-zero exit code (#11524)Marc Cornellà
Fixes #11524
2023-02-22fix(theme-and-appearance): avoid infinite recursionCarlo Sala
2023-02-16fix(theme-and-appearance): test color ls with $ZSH directoryCarlo Sala
Fixes #11500
2023-02-15fix(correction)!: remove aliases for non standard commandsRichard Mitchell
BREAKING CHANGE: This commit removes aliases for some commands that previously were not being autocorrected. If you are using autocorrection, please check it.
2023-02-12docs(lib/directories): comment how to disable alias (#11489)Richard Mitchell
2023-02-07feat(azure): add `azure` plugin (#8848)Julien Rottenberg
Co-authored-by: hagridaaron <hagridaaron@gmail.com> Co-authored-by: Terry <tmoschou@gmail.com> Closes #8847
2023-02-02feat(directories): add config to skip aliases (#11469)Hazael Sanchez
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
2023-01-25fix(theme-and-appearance): fix `diff` completion in macOSCarlo Sala
Closes #11416 Closes #11454
2023-01-20feat(functions/take): make `.tgz` behave as `.tar.gz` (#11446)Joan Marcè i Igual
2023-01-15fix(clipboard): move wsl detection to higher priority (#11440)Carlo Sala
Closes #8827
2023-01-12Revert "fix(lib): send carriage return after `title` to fix #11314 (#11315)"Marc Cornellà
This reverts commit 3dd83a22a160249a71631a51490fd3b89d1b3975. See https://github.com/ohmyzsh/ohmyzsh/issues/11314#issuecomment-1379492472
2023-01-11fix(lib): send carriage return after `title` to fix #11314 (#11315)Lawton Nichols
Window and tab titles are changed by emitting an unprintable escape sequence to the terminal. These escape sequences do not play nicely with the TAB character on multiple terminal emulators--they create un-deletable characters on the first line after command execution. Sending "\r" after changing the window and tab titles allows all characters on the first line to be deleted. Fixes #11314
2022-11-08feat(git): display tag in git-prompt when possible (#11318)Banst
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2022-10-18fix(cli): avoid using `column` (#11271)Carlo
2022-10-12fix(cli): change unrecognized `\s` in BSD awk (#11146)Marc Cornellà
In BSD awk, \s is not a valid sequence interchangeable with "space or tab characters" as it is in GNU awk. This fix uses [ \t] instead, which is all the possibilities that we need to contemplate when reading the .zshrc file. Fixes #11146
2022-10-03chore(lib): update deprecated grep aliases (#11161)Nadhem
2022-08-02fix(cli): make `omz` honour symlinks when changing `.zshrc` (#11082)Ben Walton
2022-07-12chore(lib): only create `afind` alias if `ack` is installed (#11017)hellzbellz
2022-07-12fix(lib): prefer `xsel` over `xclip` in clipboard.zshMarc Cornellà
See #10925
2022-07-12feat(lib): wait for input to copy to the clipboard (#10953)Marc Cornellà
2022-07-12fix(lib): don't attach to tty in `wl-copy` and `xclip` (#10953)Marc Cornellà
Fixes #10925
2022-05-15fix(lib): encode all arguments besides the first in `omz_urlencode`Marc Cornellà
Fixes https://github.com/ohmyzsh/ohmyzsh/commit/140c977a3d82410f48c198596de193d2d6b7b9b5#commitcomment-73688165
2022-05-12Revert "fix(lib): don't return clean with `hide-dirty=1` in ↵Marc Cornellà
`parse_git_dirty`" (#10927)
2022-05-12fix(lib): don't return clean with `hide-dirty=1` in `parse_git_dirty` (#10897)Will LE
2022-04-14refactor(cli): fix `commit.gpgsign` test in `omz pr test`Marc Cornellà
2022-04-14fix(cli): fix `commit.gpgsign` test in `omz pr test`Marc Cornellà
Since `set -e` is enabled, when `commit.gpgsign` is not set the `git config` command would show an error. Given that it is technically not ignored, the subshell would exit. With this change, the `commit.gpgsign` setting is properly tested by doing the fallback test if the command fails, so no exit status code ends up quiting the subshell.
2022-03-31fix(cli): turn of `commit.gpgsign` compatibly with git v1.7.1 (#10679)Carlo Sala
Co-authored-by: Marc Cornellà <hello@mcornella.com>
2022-02-25feat(lib): support auto title in foot terminal (#10735)Markus (Vock) Arians
Co-authored-by: Markus Arians <markus.arians@andrena.de>
2022-02-21fix(vcs_info): don't patch VCS_INFO_formats if not foundMarc Cornellà
2022-02-21fix(vcs_info): quote % in relevant fields on all current Zsh releasesMarc Cornellà
2022-02-13fix: apply workaround patch for vcs_info (CVE-2021-45444)Marc Cornellà
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] https://github.com/zsh-users/zsh/commit/c3ea1e5d52eff8b7b172fa8c1ccc3462b43b2790