Commit Graph
100 Commits
Author SHA1 Message Date
Marc Cornellà 1e7033d660 Merge pull request #7166 from jounathaen/master 2019-03-25 19:51:25 +01:00
Marc CornellàandGitHub f6a9a0a498 git: fix grt on path with spaces
Fixes #7682
2019-03-25 18:46:18 +01:00
Marc Cornellà e59cc94805 themes: fix prompt verbosity on window resize
%_ is a prompt expansion sequence that expands to the status of the parser.
This means that on window resize, the status of the execution of the
window resize hook (TRAPWINCH) would be displayed while reloading the
prompt line. This looked like cmdand cursh$ or then$ depending on the
body of the TRAPWINCH function.

Fixes #7262
2019-03-25 17:05:50 +01:00
Marc CornellàandGitHub c56fa996e7 rake-fast: remove brackets from completion entries
Fixes #5653
2019-03-25 10:12:43 +01:00
Marc Cornellà 6d143d42ea aws: document aws_change_access_key and fix README 2019-03-24 19:54:56 +01:00
Marc Cornellà 5f893dcd20 aws: clean up aws_change_access_key function 2019-03-24 19:50:47 +01:00
Marc CornellàandGitHub 08b73f92c8 lighthouse: add README and clean up plugin (#7316) 2019-03-24 11:30:09 +01:00
Marc CornellàandGitHub e4189b9a96 Clean up lighthouse plugin 2019-03-24 11:29:35 +01:00
Marc CornellàandGitHub a055930cf8 Fix README 2019-03-24 11:27:25 +01:00
Marc CornellàandGitHub 1a2d930bca aws: refactor completion sourcing logic (#7364)
* Clean up Homebrew detection and add comments. Also changed some if flags.
* Detect aws cli completion file from RPM
2019-03-23 19:52:31 +01:00
Marc Cornellà 52afbf77f6 per-directory-history: update to latest version (0e090e8) 2019-03-03 20:32:59 +01:00
Marc Cornellà 55575b88f9 lib: optimize default and env_default 2019-02-25 23:20:47 +01:00
Marc Cornellà 4cdffcd485 init: cut down on the number of compaudit calls 2019-02-25 21:30:00 +01:00
Marc CornellàandGitHub f99b58a37c fancy-ctrl-z: fix "hurt sme" typo (#7613) 2019-02-25 17:29:02 +01:00
Marc CornellàandGitHub 8837782b5d fixed aplay conflict (#7617) 2019-02-25 14:40:07 +01:00
Marc CornellàandGitHub 424b24761b Merge pull request #7599 from mcornella/plugin/mvn-refactor
mvn: unify changes, refactor and cleanup
2019-02-17 21:09:49 +01:00
Marc Cornellà 0e647904ff mvn: update documentation 2019-02-17 20:57:56 +01:00
Marc Cornellà f4b2e460c7 mvn: fix and cleanup dynamic profiles logic 2019-02-17 20:57:56 +01:00
Marc Cornellà d0a0421e10 mvn: sort aliases and improve comments and README 2019-02-17 20:35:31 +01:00
Marc Cornellà 006b882098 mvn: clean up mvn-color function 2019-02-17 20:35:30 +01:00
Marc Cornellà c636e0933a mvn: avoid mvn-or-mvnw function calling itself when mvn is aliased to it 2019-02-17 20:35:30 +01:00
Marc Cornellà b767976586 mvn: use echoti instead of tput
Avoids forking to tput and some systems don't have tput
2019-02-17 20:35:30 +01:00
Marc Cornellà 5b569149f3 mvn: fix formatting 2019-02-17 20:35:30 +01:00
Marc Cornellà 052493b1ba z: refresh $RANDOM's value outside subshell
This change references `$RANDOM` outside the subshell to refresh it for the
next subshell invocation. Otherwise, subsequent runs of the function get the
same value and, if run simultaneously, they may clobber each others' temp .z
files.

This is due to how zsh distributes RANDOM values when running inside a
subshell:

  subshells that reference RANDOM will result in identical pseudo-random
  values unless the value of RANDOM is referenced or seeded in the parent
  shell in between subshell invocations

See: http://zsh.sourceforge.net/Doc/Release/Parameters.html#index-RANDOM
2019-02-06 11:57:28 +01:00
Marc CornellàandGitHub 83ce8d05df transfer: add newline after showing the link
Fixes #7562
2019-01-30 16:35:16 +01:00
Marc CornellàandGitHub c494869632 ssh-agent: check for loaded id filenames first (#7521)
This change makes the plugin check if an identity is loaded by looking
first at the key filename reported by `ssh-add -l`. This fixes the use
case where ssh-keygen is not able to output the fingerprint of a key,
such as the one reported on #7516.

Now, for an identity to be passed onto ssh-add, it has to fail the
match for a loaded identity, both filename and signature.
2019-01-21 20:31:30 +01:00
Marc CornellàandGitHub 6db298c57a misc: remove please alias to sudo
Fixes #7527
2019-01-20 17:20:26 +01:00
Marc CornellàandGitHub 9d1dd24e35 ssh-agent: add default keys if no zstyle identities were set (#7520) 2019-01-19 18:00:04 +01:00
Marc CornellàandGitHub fabee55948 ssh-agent: autoload identities not already loaded (#7174)
With this PR the ssh-agent plugin checks the `ssh-add -l` output for the
identities added, and adds all those specified by the user that haven't been
added yet.

We also decouple the logic of starting ssh-agent from the logic of adding
identities, meaning that even if ssh-agent has been started by some other means
(like launchd) we can still ssh-add the user's identities.

Fixes #3019
Fixes #6979
2019-01-09 21:19:52 +01:00
Marc CornellàandGitHub e780209c33 tmux: use $terminfo to avoid echoti errors
See https://github.com/robbyrussell/oh-my-zsh/issues/7407#issuecomment-441665143
2018-11-26 19:57:52 +01:00
Marc Cornellà ad69c7a82f fabric: rename completion back to _fab
Fixes #7405
2018-11-16 18:55:07 +00:00
Marc CornellàandGitHub b1424e2893 tmux: use echoti instead of tput for FreeBSD compatibility
Fixes #7407

FreeBSD's tput needs termcap codes instead of terminfo capnames, so using `tput colors`
has the wrong effect. See #7407
2018-11-16 19:40:06 +01:00
Marc CornellàandGitHub 3d8f2bda59 Revert "transfer: add deprecation notice (#7372)" (#7402)
This reverts commit 05b617066b.
2018-11-13 10:54:33 +01:00
Marc CornellàandGitHub f66595ff9e stack: add README (#7363) 2018-10-28 13:55:01 +01:00
Marc CornellàandGitHub 99b94bbeac grails: add README (#7362) 2018-10-28 13:51:45 +01:00
Marc CornellàandGitHub c87eea8bdb add link 2018-10-28 13:51:26 +01:00
Marc CornellàandGitHub 4e59ba755c move path section after plugin-enabling section 2018-10-28 13:50:34 +01:00
Marc CornellàandGitHub 9db3c94553 git-flow-avh: add README (#7360) 2018-10-28 13:39:50 +01:00
Marc CornellàandGitHub b6f629dc1c delete not applicable comments 2018-10-28 13:39:26 +01:00
Marc CornellàandGitHub 8f777f30bb add git completion requirements notice 2018-10-28 13:37:55 +01:00
Marc CornellàandGitHub 5ca3efa17f kops: add README (#7358) 2018-10-28 13:22:53 +01:00
Marc CornellàandGitHub a58dc32323 delete duplicate documentation 2018-10-28 13:22:26 +01:00
Marc CornellàandGitHub 3752700a5a add description and author 2018-10-28 13:21:58 +01:00
Marc CornellàandGitHub 1ee6f2614c symfony2: add README (#7329) 2018-10-24 16:02:13 +02:00
Marc CornellàandGitHub 50208f5c42 fix copy errors 2018-10-24 16:01:42 +02:00
Marc CornellàandGitHub 951e649427 gpg-agent: add README (#7313) 2018-10-19 19:05:49 +02:00
Marc CornellàandGitHub ca50dfda9f add link to documentation 2018-10-19 18:54:26 +02:00
Marc CornellàandGitHub fccac1ddbf gitignore: add README (#7312) 2018-10-19 18:46:54 +02:00
Marc CornellàandGitHub 6a536f88aa reword and fix formatting 2018-10-19 18:46:29 +02:00
Marc CornellàandGitHub 2fce9a4d44 agnoster: use %n instead of $USER to fix quoting
Fixes #7268

With `$USER`, we'd need to quote it in case special characters like `\` are present in
the $USER value, like if the user is part of an AD domain.

With `%n` the quoting is done automatically by zsh.
See http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Login-information
2018-10-17 20:53:07 +02:00
Marc CornellàandGitHub ea7b886f70 composer: add README (#7291) 2018-10-17 20:35:16 +02:00
Marc CornellàandGitHub f8ca1464b9 reword 2018-10-17 20:34:58 +02:00
Marc CornellàandGitHub 489be2452a textmate: add README (#7267) 2018-10-14 19:41:37 +02:00
Marc CornellàandGitHub 793ee0ffa8 man: add README (#7276) 2018-10-14 19:36:57 +02:00
Marc Cornellà 3c9942c488 autojump: move README to right place 2018-10-09 20:34:47 +02:00
Marc CornellàandGitHub 999d3ddf4c colorize: fix check for pygmentize (#7250) 2018-10-08 17:56:44 +02:00
Marc Cornellà 3a6fa9149b Fix tilde substitution in theme prompts
These themes used an adhoc substitution of $HOME for tilde
in $PWD, but it's better to use '%~' and is less error prone.

See #7160
2018-10-07 23:01:25 +02:00
Marc CornellàandGitHub d0d4c654dd gem: add README (#7224) 2018-10-04 23:14:01 +02:00
Marc CornellàandGitHub 13b8757044 change title to h1 2018-10-04 23:13:46 +02:00
Marc CornellàandGitHub 6c721e6f95 add alias descriptions 2018-10-04 23:13:16 +02:00
Marc CornellàandGitHub 9b19ca2871 gulp: add README (#7200) 2018-10-03 17:56:47 +02:00
Marc CornellàandGitHub 8bc176f124 add link 2018-10-03 17:56:27 +02:00
Marc CornellàandGitHub 01de53fff3 tmuxinator: add README (#7189) 2018-10-02 21:49:24 +02:00
Marc CornellàandGitHub 3ed19ce45e added completion and link 2018-10-02 21:49:06 +02:00
Marc CornellàandGitHub ac3b345365 dircycle: trigger appropriate hooks after directory change (#7161)
This commit triggers precmd and chpwd hook functions iff we changed directory.

This has the same behavior as zsh's hook function execution, which tries to run
the functions in the order specified and silently ignores any function that
does not exist.

See http://zsh.sourceforge.net/Doc/Release/Functions.html#Hook-Functions

Also moved duplicate nopushdminus logic to the `switch-to-dir` function.
2018-10-02 21:31:26 +02:00
Marc CornellàandGitHub 40a60d2847 chruby: add "system" to completion list if available (#5280)
Detect system Ruby in default `PATH`, and provide "system" completion if found.

Tested with [the Dockerfile](https://gist.github.com/franklinyu/b8deda6a5093a17b575679b5808b371f).
2018-10-01 16:50:17 +02:00
Marc CornellàandGitHub 7f96f4476c jenv: update README 2018-10-01 12:14:15 +02:00
Marc CornellàandGitHub b4007b5400 git-auto-fetch: small README fixes 2018-09-26 23:59:57 +02:00
Marc CornellàandGitHub 6bd95ddbdc add plugin: git-auto-fetch (#5477) 2018-09-26 23:56:58 +02:00
Marc CornellàandGitHub e107b85e3a agnoster: fix prompt_status error (#6450)
This commit fixes the runtime error that says:

  prompt_status:2: symbols: attempt to assign array value to non-array

It trips over a local array which is not properly declared.
2018-09-26 17:23:31 +02:00
Marc CornellàandGitHub a3d13eb76a fix invalid syntax in old zsh versions 2018-09-26 17:19:59 +02:00
Marc CornellàandGitHub 14fead0964 vi-mode: disable displayed mode on startup
This change had the unintended consequence of overriding the functions to ensure
that application mode was set to use $terminfo sequences, introduced in #6449.

Fixes #7137
2018-09-24 18:52:11 +02:00
Marc CornellàandGitHub 096ef3e6a7 python: remove mypy caches on pyclean (#7151)
Remove Optional Static Type Checker's (mypy) cache files
2018-09-24 13:39:06 +02:00
Marc Cornellà 4d940109e3 misc: remove execution permission from various files 2018-09-15 23:57:12 +02:00
Marc Cornellà 5a729f6667 lib: fix history wrapper when passing numbers
If a number is passed without explicitly passing `-l`, it will now behave
as if using the history builtin, instead of throwing an error.
2018-09-15 22:56:12 +02:00
Marc CornellàandGitHub fe5fe81c8c lib: quote arguments to env_default
Fixes #7117
2018-09-09 19:50:23 +02:00
Marc CornellàandGitHub f75d096c1a lib: small change to git_compare_version
Fixes #7118
2018-09-08 21:35:03 +02:00
Marc CornellàandGitHub 69e637c355 fasd: use xdg-open in o alias back again
Fixes #6314
2018-09-03 17:13:18 +02:00
Marc CornellàandGitHub 9f1ffc64f1 vi-mode: reset-prompt if zle is active (TRAPWINCH)
Fixes zle errors when resizing:

  TRAPWINCH:zle: widgets can only be called when ZLE is active
2018-08-31 21:18:18 +02:00
Marc CornellàandGitHub caa936593a Merge pull request #7079 from mcornella/refactor-trapd00r-theme
Refactor trapd00r theme
2018-08-25 14:00:19 +02:00
Marc CornellàandGitHub 2bb10441da nyan: deprecate plugin with removal notice
Fixes #6826
2018-08-23 20:28:20 +02:00
Marc Cornellà b70a703a09 trapd00r: clean up the script 2018-08-20 18:15:49 +02:00
Marc Cornellà e972624997 trapd00r: simplify logic and optimize for loop
This version splits the `$PWD` by the slashes and prints the path
directory by directory, printing the separators as before.
2018-08-20 18:03:41 +02:00
Marc Cornellà b4c8b60bb4 trapd00r: change more slowly between yellows
Also refactor the logic
2018-08-20 17:55:22 +02:00
Marc Cornellà 3d1719c618 trapd00r: optimize reset of foreground colors 2018-08-20 17:50:11 +02:00
Marc Cornellà 4774bc62d5 trapd00r: look for 256-color support, not $DISPLAY
Checking if the terminal supports 256 colors is better suited for
our purpose. Checking if `$DISPLAY` is set doesn't tell us if our
colors will be displayed correctly.
2018-08-20 17:45:36 +02:00
Marc Cornellà 1d26e2ab6f trapd00r: convert perl script to zsh
Used color encodings from
https://metacpan.org/source/WOLDRICH/Term-ExtendedColor-0.224/lib/Term/ExtendedColor.pm
2018-08-20 17:37:26 +02:00
Marc CornellàandGitHub fceae90219 jenv: fix brew directory search
`brew --prefix jenv` doesn't ensure jenv is installed so we have to recheck if the
bin folder is still there.
2018-08-19 22:33:44 +02:00
Marc CornellàandGitHub be65adc6c3 git-extras: update completion (2018-05-24 0f76863) 2018-08-19 21:36:21 +02:00
Marc CornellàandGitHub 3edd424af2 jenv: small fix 2018-08-19 19:43:35 +02:00
Marc Cornellà 873dc9cfb8 jenv: update README 2018-08-19 19:41:49 +02:00
Marc Cornellà cb7a3e38aa Merge branch 'jburwell/jenv-plugin'
Closes #3406
Closes #4972
Closes #4523
Closes #5964
2018-08-19 19:36:52 +02:00
Marc Cornellà 3a822bb5fd jenv: refactor and optimize logic 2018-08-19 19:36:46 +02:00
Marc CornellàandGitHub af1709cfdc kubectl: use kubectl to define aliases
This prevents conflicts with other utilities named k (see #6408).
2018-08-13 22:07:07 +02:00
Marc CornellàandGitHub f2f078a1bb pass: update completion (2018-08-03) 2018-08-09 20:17:43 +02:00
Marc CornellàandGitHub 2c1ff85bb2 core: fix alias_value function
Fixes #5835
2018-08-09 19:49:02 +02:00
Marc CornellàandGitHub 052a6dbd16 docker-machine: add official completion
Fixes #6962
2018-08-09 19:24:03 +02:00
Marc CornellàandGitHub 60db5cdb58 tmux: fix invalid syntax on old zsh versions
First reported on https://github.com/robbyrussell/oh-my-zsh/commit/f584de5930467fd53e8b7d2e51f5227bc405e4b2#r29984052
2018-08-09 17:19:40 +02:00
Marc CornellàandGitHub 91d55dce11 bundler: update README with latest changes 2018-08-08 13:36:27 +02:00
Marc Cornellà c781d708da dotenv: test and warn of incorrect.env syntax
Fixes #6337
2018-08-08 00:05:34 +02:00