Commit Graph
100 Commits
Author SHA1 Message Date
Marc CornellàandGitHub fc9e427ef9 sublime: refactor plugin and fix documentation (#7715)
* convert to 2-space indentation
* standardize sublime function name (subl)
* simplify subl function definition into a single loop
* convert functions into aliases
* simplify alias creation
* search for Sublime Text command only if not found
* reorganize and clean up plugin
* fix README
* simplify cygwin path lookup
* support path lookup for msys (Windows)
* support path lookup for WSL (Windows)
* fix for spaces in sublime path alias
2019-04-15 16:55:18 +02:00
Marc CornellàandGitHub 4b9c4e973e bwana: change function name to bwana (#7769)
Change name function from `man` to `bwana`.
2019-04-15 16:47:43 +02:00
Marc CornellàandGitHub 4456536a78 Simplify explanation of bwana function 2019-04-15 16:46:58 +02:00
Marc CornellàandGitHub b57c0ac6e2 Delete deprecated pure theme 2019-04-10 21:26:56 +02:00
Marc Cornellà 3c8f73c312 git-prompt: fix LANG override for git status call
The previous version modified the whole environment leading to
problems (see #7757). This version *adds* LANG=C to the current
env, without overriding it completely.

Fixes #7757.
2019-04-10 20:30:30 +02:00
Marc CornellàandGitHub 7824dc637d git: use is-at-least to test for git version
Fixes #7754
2019-04-10 11:47:29 +02:00
Marc CornellàandGitHub 0c3499ecd9 Fix showing aws prompt out of the box for 'fishy' theme (#7747)
This fixes the RPROMPT setting for fishy theme so as to preserve its old value,
instead of overwriting it like it did before.

Also, fix unnecessary export of RPROMPT in aws plugin.
2019-04-09 22:20:00 +02:00
Marc CornellàandGitHub 5911aea46c lib: stop detecting git versions prior to 1.7.2
The 1.7.2 release was published in July 2010 [1]. It's about time to stop
supporting older versions.

Fixes #4583

[1] https://github.com/git/git/releases/tag/v1.7.2
2019-04-09 20:38:13 +02:00
Marc Cornellà bb64446ebf Merge branch 'fix/autojump-plugin'
Fixes #7568
Closes #4542
Closes #5163
Closes #6868
2019-04-09 19:47:11 +02:00
Marc Cornellà b4c06f2b50 Complain when no autojump script was found 2019-04-09 19:45:49 +02:00
Marc Cornellà fd105b6e52 Refactor and clean up autojump plugin 2019-04-09 19:45:30 +02:00
Marc Cornellà 5a424fc12f Check first default Homebrew prefix 2019-04-09 19:22:51 +02:00
Marc Cornellà 4ef29c9f18 Fix homebrew path location 2019-04-09 19:21:05 +02:00
Marc CornellàandGitHub cab1ac6e68 emacs: use open frame if there is one present
Fixes #5779
Fixes #5405
2019-04-09 19:01:10 +02:00
Marc CornellàandGitHub b31106b341 git: minor syntax fix 2019-04-09 18:35:09 +02:00
Marc CornellàandGitHub 35dc26a2c0 git: use stash 'push' instead of the deprecated 'save' (#7486)
* Use stash 'push' or 'save' depending on Git version

A utility function now parses the output of git --version and set the
alias for git stash to 'git stash push' iff the current version of Git
is 2.13 or greater; it falls back to 'git stash save' otherwise.
2019-04-09 18:33:15 +02:00
Marc CornellàandGitHub 1bd72f588c Update to inline conditional syntax 2019-04-09 18:29:18 +02:00
Marc CornellàandGitHub 63291f4fcc Reword and fix formatting 2019-04-09 18:24:04 +02:00
Marc CornellàandGitHub a628b552c4 vi-mode: add CTRL+S to search history forward
Fixes #6999
2019-04-09 16:48:56 +02:00
Marc CornellàandGitHub d0efa0071c tmuxinator: fix completion file header 2019-04-09 15:37:24 +02:00
Marc Cornellà ab14068368 httpie: bundle zsh-completions completion (e5bd16f, 2016-12-18)
Source: https://github.com/zsh-users/zsh-completions/blob/master/src/_httpie

Related: #7308
2019-04-09 15:30:11 +02:00
Marc Cornellà 069df888b0 docker-compose: update completion (1f97a57, 2019-03-02)
Fixes #7480
2019-04-09 14:43:48 +02:00
Marc Cornellà 680755bbe6 iwhois: remove iwhois plugin
The whois.geek.nz resolver is now dead.

Fixes #7297
2019-04-09 12:03:28 +02:00
Marc CornellàandGitHub 7b06d01f8f gitfast: document deprecated git plugin dependency 2019-04-09 11:28:35 +02:00
Marc CornellàandGitHub f12f7b0341 swiftpm: update autocompletion for Swift 5.0 (#7744) 2019-04-08 23:22:41 +02:00
Marc CornellàandGitHub 2ec868dde4 swiftpm: improve README 2019-04-08 23:22:15 +02:00
Marc CornellàandGitHub 170575379e gulp: fix completion function name
Fixes #6620
2019-04-08 23:14:00 +02:00
Marc CornellàandGitHub 30594886bf lib: delete PS1 default
A default PS1 doesn't make sense: the user will either choose a theme or not
care about a default prompt since they can set it themselves.

Fixes #7054
2019-04-08 23:01:55 +02:00
Marc CornellàandGitHub 0c000af721 cloudapp: fix permissions of credentials file
Fixes #4151
2019-04-08 22:19:25 +02:00
Marc CornellàandGitHub 482587ccc1 vault: deprecate and update README
Fixes #6805
2019-04-08 20:39:21 +02:00
Marc CornellàandGitHub 8c95c2b6cb gitfast: update plugin (#7152)
* Stop loading git plugin
* Update completion and git-prompt to v2.10
* Update completion to v2.14
2019-04-08 20:06:17 +02:00
Marc CornellàandGitHub 9981479900 zshrc: remove SSH_KEY_PATH comment
Fixes #5741
2019-04-08 17:34:59 +02:00
Marc CornellàandGitHub c23ab00990 upgrade: fix lock-out on first upgrade check
This early return made it so the lock wasn't removed, therefore locking out
the upgrade script from ever entering the upgrade routine.

Fixes #6138 

Note: the logic needs some rework.
2019-04-07 20:39:25 +02:00
Marc CornellàandGitHub 831fba4ee4 Revert "git: delete branches in gbda only if there are any (#6079)" (#7724)
This reverts commit 0e0789fb7a.
2019-04-02 19:05:52 +02:00
Marc CornellàandGitHub 93cbc1614c git: use interactive mode in gclean
Fixes #7716
2019-03-31 15:56:35 +02:00
Marc CornellàandGitHub 8fba503667 cargo: update completion (#5757) 2019-03-25 22:43:19 +01:00
Marc CornellàandGitHub 61a7bc2d4a Update README 2019-03-25 22:42:38 +01:00
Marc CornellàandGitHub a441f64d09 Update _cargo completion to 0.34.0 version 2019-03-25 22:40:50 +01:00
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