Commit Graph
100 Commits
Author SHA1 Message Date
Marc Cornellà 82f02e80a6 wd: update to latest version (#8530) 2020-06-03 18:36:17 +02:00
Marc Cornellà aee9e603b4 init: reapply hack for invalid ZSH_COMPDUMP filenames (b8761985) 2020-06-03 17:50:53 +02:00
Marc Cornellà c58572d5fe init: oops 2020-06-02 12:06:40 +02:00
Marc Cornellà 0e12ebb42d init: use grep for zcompdump metadata check
Closes #8981
2020-06-02 11:45:50 +02:00
Marc Cornellà 93cc3964e2 Add deprecation notice for fedora and go plugins. 2020-05-26 18:14:58 +02:00
Marc Cornellà cc065c7bfa Remove git-remote-branch and nyan plugins (deprecated) 2020-05-26 18:05:12 +02:00
Marc Cornellà 2d6965f856 Fix load of various plugins: fastfile, keychain, sfffe, stack 2020-05-26 18:05:12 +02:00
Marc Cornellà 68d51bd7d8 virtualenvwrapper: fix load and detection logic 2020-05-26 18:05:11 +02:00
Marc Cornellà 375978fb5b jenv: fix Homebrew install path bug introduced in #7541 2020-05-26 18:05:11 +02:00
Marc Cornellà f7dd3d1f07 brew: remove completion deprecation notice and fix README 2020-05-26 17:36:55 +02:00
Marc Cornellà 604f1ef9cd kube-ps1: update to latest version (ede8098)
Fixes #8786
2020-05-25 11:58:20 +02:00
Marc Cornellà 3f245edf1b rbenv: fix redirect in current_gemset
Fixes #8925
Related #4688
2020-05-23 19:05:32 +02:00
Marc Cornellà 8cb449ee20 avit: fix $reset_color sequence in prompt
Fixes #8952
2020-05-23 18:02:54 +02:00
Marc Cornellà 4ac36d57f1 fino-time: fix git and ruby prompt sequences
Fixes #8856
2020-05-22 19:52:13 +02:00
Marc Cornellà b721053c87 af-magic: account for active conda envs in dash line
See https://github.com/ohmyzsh/ohmyzsh/issues/8081#issuecomment-632182715
2020-05-21 20:48:46 +02:00
Marc Cornellà cfdd3c8dd8 Revert "core: enable hist_reduce_blanks"
This reverts commit cbd6fbe7a7.

Fixes #8949
2020-05-20 14:02:42 +02:00
Marc Cornellà 4012df8fbb bundler: add alias for bundle add
Fixes #8892
2020-05-18 11:53:34 +02:00
Marc CornellàandGitHub 29eddb6613 update: display logo in rainbow colors (#8941) 2020-05-18 11:23:28 +02:00
Marc Cornellà cbd6fbe7a7 core: enable hist_reduce_blanks
Fixes #8722
2020-05-16 17:18:20 +02:00
Marc Cornellà 587b554580 zsh-navigation-tools: update to 5937e57e
Fixes #8476
2020-05-16 16:55:29 +02:00
Marc Cornellà fd786291ba composer: fix documented aliases 2020-05-11 20:10:36 +02:00
Marc Cornellà da8c19a076 core: fix zstyle definition of use-cache 2020-05-11 12:11:02 +02:00
Marc Cornellà c52441b624 pygmalion: revert multiline prompt change
Fixes #2317
Closes #2321
2020-05-10 20:06:24 +02:00
Marc Cornellà 08cc808d71 magic-enter: define bindkey for vi mode as well
Closes #8906
2020-05-09 12:27:56 +02:00
Marc Cornellà b876198575 init: silence zcompdump metadata write for invalid ZSH_COMPDUMP filenames
If `$SHORT_HOST` contains invalid filename characters, the compinit call doesn't
error, but the zcompdump metadata write does. Use `tee` instead so we can silence
the error.

See https://github.com/ohmyzsh/ohmyzsh/commit/dd1a72696f162fd5285a104b5f63970deb66e8b0#commitcomment-38984764
2020-05-07 11:28:10 +02:00
Marc Cornellà ff987384cf core: fix cmp invocation in BSD systems
BSD cmp doesn't have the option of reading from stdin, so use process
substitution instead.
2020-05-05 12:13:45 +02:00
Marc CornellàandGitHub dd1a72696f core: refresh zcompdump cache file in init script (#8878) 2020-05-04 16:51:16 +02:00
Marc Cornellà 173d4ca68f core: move core folder to lib, for now 2020-05-01 19:15:14 +02:00
Marc CornellàandGitHub 07bcf041c0 core: add basic Oh My Zsh CLI (#8876) 2020-05-01 19:02:29 +02:00
Marc CornellàandGitHub 58a1a1397e meta: add Ross Goldberg as owner of the sdk plugin 2020-04-30 19:21:17 +02:00
Marc Cornellà 2560f04982 autojump: clarify need to install it first
Related: #8806
2020-04-22 12:01:30 +02:00
Marc CornellàandGitHub 31eca46ee3 meta: basic CODEOWNERS file (gitfast plugin)
https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners
2020-04-14 16:52:04 +02:00
Marc Cornellà d6474237b8 battery: revert battery charging symbol 1-character-width hack
Fixes #8804
2020-04-05 21:59:24 +02:00
Marc Cornellà 0caae9082a lib: speed up slow parts of the lib files; other small fixes 2020-04-05 21:37:45 +02:00
Marc Cornellà dbd16000a5 themes: fix minor syntax error 2020-04-05 17:14:48 +02:00
Marc Cornellà 2a081d6e5e battery: remove printf usage where possible
Spares us of the need to quote % symbols
2020-03-30 18:49:01 +02:00
Marc Cornellà 3da469be5c battery: fix Full battery bug on Linux; force 1-char-width on charging symbol 2020-03-30 18:38:53 +02:00
Marc Cornellà d247f98d3e nebirhos: use short hostname in prompt
Fixes #6050
2020-03-26 12:39:51 +01:00
Marc Cornellà 00f3fa2c40 keychain: define SHORT_HOST if not defined
Fixes problems when using the plugin via antibody or antigen.
2020-03-25 10:22:31 +01:00
Marc CornellàandGitHub 8b80461e6e history-substring-search: fixing my dumb mistake 2020-03-24 12:32:52 +01:00
Marc Cornellà fd534eb979 history-substring-search: update to upstream version 2019-05-12
Updates OMZ's copy to commit 0f80b8eb3368b46e5e573c1d91ae69eb095db3fb from zsh-users/zsh-history-substring-search
2020-03-24 09:54:00 +01:00
Marc Cornellà 2a3a940a45 themes: change lstheme function to themes in $ZSH_CUSTOM in any level
Also sort and remove duplicates, and pipe to fmt to improve output format.

Fixes #8755
2020-03-23 22:51:48 +01:00
Marc Cornellà 07e3236bc5 taskwarrior: update completion to latest version (dcdf712)
Fixes #8249
2020-03-12 21:57:48 +01:00
Marc Cornellà 610b2529d2 Clean up plugin READMEs and a few plugins
- fasd
- history
- mercurial
- pylint
- repo
- yii2
2020-03-11 19:57:46 +01:00
Marc Cornellà 27f4e07932 updater: use hardcoded color sequences instead of tput 2020-03-11 14:28:37 +01:00
Marc Cornellà 6ba2d9de3d updater: use git config instead of git -c for git < v1.7.2
Fixes #8732
2020-03-11 14:28:15 +01:00
Marc Cornellà e1a8d7c977 gradle: use upstream completion and fix some other stuff
Fixes #6239
Fixes #7946
Fixes #8017
Fixes #8717
Closes #7987
Closes #8718
2020-03-09 18:43:20 +01:00
Marc Cornellà 742c984558 phing: fix copy-paste error in README 2020-03-09 14:46:22 +01:00
Marc CornellàandGitHub 2eb3e9d57c lib: support konsole* $TERM in title function (#8035) 2020-03-05 17:26:16 +01:00
Marc CornellàandGitHub 1ef3d57739 aws: add support for AWS CLI v2 autocompletion (#8670)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-03-05 17:13:46 +01:00
2f345a3d0c shrink-path: added glob and quote options (#7694)
* Added -g option to shrink-path plugin.

The new optins adds an asterix to the uniquely shortened name, such
that, if copy'n'pasted, zsh globbing will expand to the full path name
of the shortened path:

shrink-path -g:
"/net/software/modules/modulefiles" -> "/n*/s*/modules/m*"

shrink-path -l -g:
"/net/software/modules/modulefiles" -> "/n*/s*/modules/modulefiles"

* Updated also the README file with the new -g option.

* shrink-path: improved handling of special cases

This commits improves the handling of special cases in path strings:

- handling of white space in path names
- handling of single-letter path names

* Update plugins/shrink-path/README.md

Co-Authored-By: Jacob Tomaw <jacob.tomaw@gmail.com>

* Fix typo "Asterix" and replace with "asterisk"

* Add optional quoting support to shrink_path

Co-authored-by: Jacob Tomaw <jacob.tomaw@gmail.com>
2020-03-05 13:08:05 +01:00
Marc Cornellà 22fed4fbcb knife: fix refactor mistake 2020-03-04 09:12:58 +01:00
Marc CornellàandJon Mosco 93a2ba6b5f kube-ps1: update to latest upstream version (c685ac8)
Closes #8009

Co-authored-by: Jon Mosco <jonny.mosco@gmail.com>
2020-03-03 23:03:39 +01:00
Marc CornellàandGitHub b9d5ee7913 lib: automatic title: replace fg with description from jobs (#7982)
* Automatic title: Replace fg with description from jobs

* Avoid error messages when there is no job

* Use $jobstates and $jobtexts to look for jobs

`jobs %string` doesn't work correctly when run inside `$()`. `$jobstates` and
`$jobtexts` is available in the current shell process, so even though we need
to replicate a bit more logic, every type of `fg` invocation works correctly.

* lib: clean up termsupport.zsh

Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-03-03 20:21:29 +01:00
Marc CornellàandGitHub 02d1253809 lib: clean up termsupport.zsh 2020-03-03 20:17:01 +01:00
Marc CornellàandGitHub d7825313cc Use $jobstates and $jobtexts to look for jobs
`jobs %string` doesn't work correctly when run inside `$()`. `$jobstates` and
`$jobtexts` is available in the current shell process, so even though we need
to replicate a bit more logic, every type of `fg` invocation works correctly.
2020-03-03 20:10:43 +01:00
Marc Cornellà 4009668500 random: remove random theme from possible themes to choose from
...preventing an infinite loop.
2020-03-02 23:53:43 +01:00
Marc Cornellà 480f1ecd96 Merge branch 'update/jira-plugin'
Closes #6506
Closes #6950
Closes #7962
2020-03-02 23:41:09 +01:00
Marc Cornellà 1f6e1555f2 Clean up jira function 2020-03-02 23:26:52 +01:00
Marc Cornellà d3dfc13716 lib: use grep-alias cache only if ZSH_CACHE_DIR is writable
Fixes #8693
2020-03-02 12:35:58 +01:00
Marc CornellàandGitHub 9ce7de9f16 Document ZSH_THEME_RANDOM_BLACKLIST setting 2020-03-01 22:53:33 +01:00
Marc Cornellà 461b2134de Merge branch 'grep.zsh-improvements'
Closes #5085
Closes #7451
Closes #7265
Fixes #8444
Closes #8445
2020-03-01 22:46:24 +01:00
Marc Cornellà dc190d872a Refactor grep.zsh file
- Move grep-alias path to variable.
- Use <<< "" instead of piped echo to check grep flags.
- Remove check for --color only since it's the same release as --exclude.
2020-03-01 20:40:27 +01:00
Marc Cornellà 8d814fdff6 Fast algorithm to determine grep alias flags
This version tries whether grep supports all the flags together
and progressively checks older flags if the grep test fails.
This means only one grep call if all flags are supported, and
one additional call for every flag that's not supported, up to
a maximum of 3 calls.
2020-03-01 14:05:01 +01:00
Marc CornellàandGitHub 498cd722b3 Add git version requirement in documentation 2020-02-29 14:56:37 +01:00
Marc CornellàandGitHub 14b4f62e65 updater: fix --autostash argument. Works for git > 1.7.1
See https://github.com/ohmyzsh/ohmyzsh/pull/7172#issuecomment-592875226
2020-02-29 14:53:06 +01:00
Marc Cornellà 888ab9091c lib: add support for clippaste in WSL using powershell
Source: https://github.com/microsoft/WSL/issues/4852#issuecomment-579616808
2020-02-28 19:07:05 +01:00
Marc Cornellà 57739cbcb6 lib: add support for clip.exe clipboard copy in WSL 2020-02-27 23:24:23 +01:00
Marc CornellàandGitHub 65642dfcff lib: support additional clipboard types (#7996)
* clipboard: Reduce unnecessary special-casing on stdin

Ideally the parameter would just be removed-users could always
just do "clipcopy < some-file". but removing the parameter would break
backwards compatibility.

In any case, this simplifies the logic considerably.

* clipboard: Avoid unnecessary re-detection each time

Previously, OS detection would happen on each invocation. This makes it
happen once (unless it fails, in which case it will try again on the
next invocation).

This has the additional benefit of localizing the platform-specific
checks and commands, too, versus spreading them out in separate
functions.

* clipboard: Add support for several more clipboards

This implements essentially the same heuristic as neovim, with the additional
(existing) special support for Cygwin.
See: https://github.com/neovim/neovim/blob/e682d799fa3cf2e80a02d00c6ea874599d58f0e7/runtime/autoload/provider/clipboard.vim#L55-L121
  - pbcopy, pbpaste (macOS)
  - cygwin (Windows running Cygwin)
  - wl-copy, wl-paste (if $WAYLAND_DISPLAY is set)
  - xclip (if $DISPLAY is set)
  - xsel (if $DISPLAY is set)
  - lemonade (for SSH) https://github.com/pocke/lemonade
  - doitclient (for SSH) http://www.chiark.greenend.org.uk/~sgtatham/doit/
  - win32yank (Windows)
  - tmux (if $TMUX is set)

* clipboard: Fix tmux clipcopy after testing

Tmux must have special handling for /dev/stdin since it's managing the
terminal itself. This was tested with tmux-2.9a on macOS.

* clipboard: Fix bad expansion of exit-code test
2020-02-27 22:59:48 +01:00
Marc CornellàandGitHub 18ee5dffdc Merge branch 'master' into clipboard 2020-02-27 22:55:30 +01:00
Marc Cornellà 2c0315dba4 ng: refactor README 2020-02-27 19:26:55 +01:00
Marc Cornellà 6cb8ff391d vagrant: document aliases 2020-02-27 15:21:10 +01:00
Marc CornellàandGitHub 3c61bac9a1 vagrant: add common aliases (#3762) 2020-02-27 15:20:19 +01:00
Marc CornellàandGitHub 609890847d npm: hardcode completion function and delete cached one (#8679)
Fixes #8665
2020-02-25 22:23:37 +01:00
Marc Cornellà 3e9e385d98 battery: remove redundant grep calls in battery_pct function 2020-02-25 15:41:17 +01:00
Marc Cornellà d959283898 avit: fix prompt sequence (fixes #8678) 2020-02-25 12:21:06 +01:00
Marc Cornellà 7290a08bf6 battery: fix floating point output in macOS
Fixes #8676
2020-02-25 11:56:26 +01:00
Marc Cornellà 40b013f5f1 lib: delete upgrade lock in upgrade_oh_my_zsh
Provides a different solution to #8332 and #8333
2020-02-24 20:27:21 +01:00
Marc CornellàandGitHub bc9fe7423f Merge pull request #8651 from mcornella/random-theme-refactor
Add random theme and consolidate logic from init and themes plugin
2020-02-19 20:26:45 +01:00
Marc CornellàandFran Garcia 3d4890dcc0 Add blacklist variable for random theme
Co-authored-by: Fran Garcia <fran.miranda@gmail.com>
2020-02-19 20:00:22 +01:00
Marc Cornellà f4b4a446ac Polish themes plugin and error out if theme not found 2020-02-19 19:41:02 +01:00
Marc CornellàandMihai Serban b297bf9296 Add themes in $ZSH_CUSTOM to the pool of candidates
Also add comments and unset leftover variables, and print only the
name of the theme loaded.

When looking for $ZSH_CUSTOM themes, the chosen algorithm is to add
the theme names to the pool disregarding the path, and then source
whatever theme is selected with the same logic as the init script,
which is to source first custom themes even if there is another
default theme of the same name.

Co-authored-by: Mihai Serban <mihai.serban@gmail.com>
2020-02-19 19:34:16 +01:00
Marc Cornellà d76258ff55 avit: add years since last commit if appropriate 2020-02-19 18:19:46 +01:00
Marc Cornellà 77813a330b avit: clean up theme code 2020-02-19 17:24:20 +01:00
Marc Cornellà 443ad88024 avit: replace custom prompt functions with OMZ ones
Fixes #8637
2020-02-19 16:53:32 +01:00
Marc CornellàandGitHub c1b798aff3 agnoster: fix bzr prompt with breezy installed (#8646)
* Change indentation to 2 spaces in prompt_bzr function
* Check if in a bzr repository and optimize bzr calls in prompt_bzr
2020-02-19 00:16:54 +01:00
Marc Cornellà de261bd29c af-magic: fix virtualenv prompt suffix 2020-02-18 22:28:58 +01:00
Marc Cornellà d49397a01d af-magic: fix dashed separator sizing and refactor
Fixes #8081
2020-02-18 19:18:23 +01:00
Marc CornellàandGitHub 1381da15a4 arcanist: document aliases 2020-02-17 17:47:43 +01:00
Marc Cornellà f17e0219fd dotenv: fix prompt newline 2020-02-13 18:33:24 +01:00
Marc Cornellà ebaccba6d8 battery: merge branch 'refactor-battery-plugin'
Closes #4726
Closes #4774
Closes #8275
2020-02-12 16:03:08 +01:00
Marc Cornellà 5f6f7b6e8d Various syntax fixes and function naming equivalence
- Fix code style
- Fix local definitions
- Don't declare unnecessary variables
- Use `command` before grep
2020-02-11 21:25:38 +01:00
Marc Cornellà 39e61614f2 Clean up Linux battery commands and syntax 2020-02-11 21:25:38 +01:00
Marc CornellàandMichael Wolman 1bd7a7ad21 Fix calculation for battery percentage (#4774)
Co-authored-by: Michael Wolman <michael.s.wolman@gmail.com>
2020-02-11 21:25:38 +01:00
Marc Cornellà 17428f3c9a lib: load bash completion functions automatically
Fixes #8614
2020-02-11 20:16:43 +01:00
Marc Cornellà 561e7169ac jump: fix for `marks' and CTRL+G key binding
- marks printed an error when $MARKPATH didn't exist or didn't have any marks
  in it.
- The CTRL+G key binding overwrote an argument when it couldn't match it to
  an existing mark.
2020-02-11 20:12:01 +01:00
Marc Cornellà bc67a55fe8 jump: fix issues in plugin and document CTRL+G key binding
- Fixes `readlink -e` dependency which isn't supported in macOS
  (fixes #3235).
- Uses native zsh wildcard expansion instead of calls to `ls`.
- Prepends commands with `command` and `builtin` to bypass aliases
  and functions.
- Documents CTRL+G key binding to substitute mark name in the command
  line with the mark path (https://github.com/ohmyzsh/ohmyzsh/pull/2045#issuecomment-22826540).
2020-02-11 19:41:43 +01:00
Marc Cornellà 05cae34676 Detect dependency plugins in candy-kingdom and kiwi themes
Fixes #5029
Fixes #5342
2020-02-11 17:43:59 +01:00
Marc Cornellà 77aa1795d2 Revert "fix: Update tmux plugin to use modern terminfo. (#8582)"
This reverts commit 69caf98cf7.
2020-02-04 19:46:08 +01:00
Marc Cornellà 578b086011 Link to Actions page in GitHub Action badge 2020-02-04 13:07:40 +01:00