1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-30 06:03:40 +08:00
Commit Graph

3072 Commits

Author SHA1 Message Date
Jakub Chábek
0e0789fb7a git: delete branches in gbda only if there are any (#6079)
It doesn't make sense to run `git branch -d $BRANCH` if the `$BRANCH` is empty.
2019-03-29 22:56:59 +01:00
Lucas A. Rodrigues
f1799de0c9 Add drush plugin (#4490) 2019-03-29 22:39:52 +01:00
Oleg Smelov
a43cef3404 pyenv: detect pyenv from Homebrew faster (#7670) 2019-03-29 22:17:19 +01:00
Janek
15f29aacc2 gradle: also support settings files (#7014) 2019-03-29 22:16:29 +01:00
Jakub Łuczyński
b7b40b0b68 fd: fix fd-find completions for debian (#7704)
In debian package, fd executable is renamed to fdfind.
2019-03-26 14:44:58 +01:00
Marc Cornellà
8fba503667
cargo: update completion (#5757) 2019-03-25 22:43:19 +01:00
Marc Cornellà
61a7bc2d4a
Update README 2019-03-25 22:42:38 +01:00
Marc Cornellà
a441f64d09
Update _cargo completion to 0.34.0 version 2019-03-25 22:40:50 +01:00
Andrey Skurlatov
ae7d0bcdb9 golang: mod and list commands completion (#7665)
Also, add `gom` alias to `go mod`.
2019-03-25 22:36:46 +01:00
SomeDer
d79415b17d command-not-found: add support for NixOS (#7701) 2019-03-25 22:19:46 +01:00
Jonathan
9538eae3d7 Added a new plugin which adds completion for ripgrep (rg)
Based on the existing "cargo" plugin.
2019-03-25 19:51:01 +01:00
Jonathan
647537f15b Added a new plugin which adds completion for fd (fd-find)
Based on the existing "cargo" plugin.
2019-03-25 19:50:53 +01:00
Marc Cornellà
f6a9a0a498
git: fix grt on path with spaces
Fixes #7682
2019-03-25 18:46:18 +01:00
Marc Cornellà
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
Cristian Măgherușan-Stanciu
4f4985fddc aws: added an alias for changing the AWS access key set on a profile 2019-03-24 19:50:41 +01:00
Logan Lindquist
8cbdd79517 aws: set AWS_EB_PROFILE for the EB CLI (#7388)
Added AWS_EB_PROFILE environment variable to the AWS Plugin. The EB CLI uses this
variable instead of the primary AWS_PROFILE variable to keep track of what profile
it is using.

https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html
2019-03-24 19:46:27 +01:00
David Kane
532a784b80 aws: refactor AWS plugin (#7615)
* Update the AWS plugin to support disabling RPROMT display:
  Use a $SHOW_AWS_PROMPT option.

* Refactoring aws plugin:
  Exposing customizable aws_prompt_info function to be used in themes.

* Set aws prompt prefix and suffix to original values and fix README

Co-authored-by: "Vassilis S. Moustakas" <vsmoustakas@gmail.com>
2019-03-24 19:37:45 +01:00
Marc Cornellà
08b73f92c8
lighthouse: add README and clean up plugin (#7316) 2019-03-24 11:30:09 +01:00
Marc Cornellà
e4189b9a96
Clean up lighthouse plugin 2019-03-24 11:29:35 +01:00
Marc Cornellà
a055930cf8
Fix README 2019-03-24 11:27:25 +01:00
Cristian Măgherușan-Stanciu @magheru_san
729c2f796d otp: added a plugin for oathtool one-time passwords (#3862) 2019-03-23 22:08:35 +01:00
Marc Cornellà
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
Erik
f03aa42cbb react-native: add iPad and Apple TV simulator aliases (#7603) 2019-03-23 17:49:15 +01:00
Peter Theill
9975b16297 web-search: add Givero (supports good causes) as search engine (#7581)
Adds "givero" as a keyword for searching Givero, a relative new search engine donating revenue to good causes around the world.
2019-03-23 17:03:45 +01:00
Zixu Wang
6fe4ac024a web-search: update alias for stackoverflow (#7660)
Changed from `stack` because it conflicts with Haskell Tool Stack

Fixes #7659
2019-03-23 16:57:46 +01:00
Kevin Ottens
2b68600d50 suse: remove sudo from some zypper aliases (#7678)
Closes #5564
2019-03-22 20:32:29 +01:00
Tieme van Veen
9509fd6a91 Add git reset to origin alias to git plugin (#7630) 2019-03-10 09:38:06 -07:00
Ulrich Schreiner
275e5b1349 allow kubectl commands against all namespaces (#7637)
* allow kubectl commands against all namespaces

* enhance the readme too
2019-03-10 09:36:51 -07:00
Rahil Wazir
e3e0dd599e fix typo (#7643)
Extra t in `wp theme updatet`
2019-03-10 09:36:21 -07:00
Marc Cornellà
52afbf77f6 per-directory-history: update to latest version (0e090e8) 2019-03-03 20:32:59 +01:00
Marc Cornellà
f99b58a37c
fancy-ctrl-z: fix "hurt sme" typo (#7613) 2019-02-25 17:29:02 +01:00
Marc Cornellà
8837782b5d
fixed aplay conflict (#7617) 2019-02-25 14:40:07 +01:00
akinnane
25d0a10cda Revert "Fix emacs client terminal" (#7597)
Reverts robbyrussell/oh-my-zsh#5714
2019-02-25 14:37:41 +01:00
Deepankumar
243c46b7cd fixed aplay conflict 2019-02-23 09:00:05 +01:00
Thomas Hutterer
ca1123a044
Fix "hurt sme" typo
Just found this typo while browsing through the `plugins` folder ... and it "hurt sme" :hurtrealbad:
2019-02-20 16:59:57 +01:00
Muhannad Fakhouri
dfd1b4f8df adb: improve adb -s completion to show helpful info (#7532)
Currently it shows for example the following:

  DEVICE_ID  -- transport_id:2

which doesn't really ease device selection. I've adapted the awk script to print
device name with it's model name, see the example below:

  DEVICE_ID  -- Pixel_3(blueline)
2019-02-17 23:10:17 +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
kubamarchwicki
fff756069f mvn: add dynamic profile support to mvn completion
* Maven profiles for current pom.xml file
* Maven profiles for pom hierarchy
* Ommiting comments in profiles
2019-02-17 20:36:44 +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
Bryan Banz
9afaa0c406 mvn: add integration-test options to mvn autocomplete 2019-02-17 20:35:15 +01:00
Bryan Banz
0a5e69b87e mvn: add alias to run maven from a project's subdirectory 2019-02-17 20:34:59 +01:00
Bryan Banz
283dcab64f mvn: colorize [DEBUG] statements in mvn-color 2019-02-17 20:34:34 +01:00
Laurent Vaills
7ebd80fc7d mvn: add mvncvst alias 2019-02-17 20:34:19 +01:00
sparsick
0dbe7ecedc mvn: add alias to 'mvn clean deploy' 2019-02-17 20:34:10 +01:00
Alexey Merezhin
4d4a2fac58 mvn: add mvncp alias to 'mvn clean package' 2019-02-17 20:34:04 +01:00
Wajdi Al-Hawari
35539fd6e4 mvn: add initialize support in mvn completion 2019-02-17 20:33:52 +01:00
Neil Green
e056aee794 mvn: enable completion for mvnw 2019-02-17 20:33:34 +01:00
nslqqq
df002539f8 mvn: enable completion for maven colorizer 2019-02-17 20:33:12 +01:00
Robby Russell
965a27aa69
Merge pull request #7475 from iamantu93/master
Added stackoverflow to web-search plugin
2019-02-13 11:42:10 -08:00
Robby Russell
e91478eb26
Merge pull request #7499 from ykocaman/master
Changing namespace and restarting pods with kubectl
2019-02-13 11:39:40 -08:00
Robby Russell
f7fa3df160
Merge pull request #7541 from jessefarinacci/master
add brew install path to search
2019-02-13 11:38:35 -08:00
Robby Russell
7af85aae43
Merge pull request #7567 from genevera/PLUGIN-update-shpotify_7567
Plugin: Updates spotify plugin to current master (as of 2019-01-31)
2019-02-13 11:37:11 -08:00
Robby Russell
ca978897a6
Merge pull request #7540 from Z-Shang/master
Added Plugin for Roswell (LISP)
2019-02-13 11:36:44 -08:00
Robby Russell
bc14a2c578
Merge pull request #7194 from luizguilhermefr/master
[Laravel] Add aliases and README
2019-02-13 11:28:26 -08:00
Robby Russell
e8318e4abe
Merge pull request #4627 from strackr/timer_plugin
Adding Timer plugin
2019-02-13 11:24:49 -08:00
Robby Russell
6cec86203a
Merge pull request #5714 from dluksza/master
Fix emacs client terminal
2019-02-13 11:21:45 -08:00
Robby Russell
7d6f754b68
Merge pull request #7535 from pahakalle/master
Ads brew cask update to brew plugin
2019-02-12 11:34:22 -08:00
eric-christian
86ea319536 asdf: fix homebrew installation path (#7582)
* The check for the asdf installation directory is more precise:

    The existence of the directory `$HOME/.asdf` does not mean that it is the installation
    directory of `asdf`. It will also be created after installing at least one asdf plugin.

* Completions, while installed with homebrew, are now expected on an alternative location.
2019-02-08 15:14:09 +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
genevera
e634730e35
update spotify to newest version 2019-02-05 05:21:37 -05:00
Marc Cornellà
83ce8d05df
transfer: add newline after showing the link
Fixes #7562
2019-01-30 16:35:16 +01:00
Bartlomiej Tartanus
932d611c90 git: properly indent ggfl function (#7556)
Fixes (probably MacOS) issue:
> ggfl
zsh: command not found: ggfl
2019-01-30 16:22:14 +01:00
Gianluca Recchia
308b046875
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 greater than 2.13; it falls back to 'git stash save' otherwise.
2019-01-29 04:11:02 +01:00
Erwan ROUSSEL
ea6ec09b9c cake: add README (#7473) 2019-01-25 12:16:20 +01:00
Jesse Farinacci
12c516822c
add brew install path to search
recent `brew install jenv` installs to `/usr/local/bin/jenv`, auto-discover it for recent brew installs to avoid secondary, slower search
2019-01-22 10:09:07 -05:00
Marc Cornellà
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
Z.Shang
bf4937270a Merge branch 'master' of https://github.com/Z-Shang/oh-my-zsh 2019-01-22 04:50:40 +11:00
Z.Shang
fcf1fe72c0 init ros plugin 2019-01-22 04:49:21 +11:00
neeasade
3c16466a14 git: quote branch name in ggpull and ggpush (#7472) 2019-01-20 20:19:07 +01:00
pahakalle
7dab4f07e6 Added brew cask update 2019-01-20 04:24:52 +02:00
Marc Cornellà
9d1dd24e35
ssh-agent: add default keys if no zstyle identities were set (#7520) 2019-01-19 18:00:04 +01:00
Ing. Jan Kaláb
586ca16902 extract: add AAR Android archive support (#7511) 2019-01-15 19:03:07 +01:00
Andreas
9329efd252 ssh-agent: autoload identities in one go (#7507)
With this PR the ssh-agent plugin loads all identities which are not yet
loaded in a single call to ssh-add. If a passphrase is shared between
loaded identities it only needs to be entered once.

Fixes #7506
2019-01-14 16:42:14 +01:00
François Scala
2a60385659 ssh-agent: use key signatures to check loaded ids (#7504)
Use fingerprint of ssh key instead of file name to control if the key is already loaded.

Also check for .ssh folder presence (#5128)
2019-01-14 16:38:45 +01:00
Marc Cornellà
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
Yusuf Kocaman
d8c71bbce1
added details about kcn and kres 2019-01-07 17:35:39 +03:00
Yusuf Kocaman
2596aef866
added change namespace and rolling restart functions for kubectl 2019-01-07 17:24:44 +03:00
Robby Russell
a29950146b
Merge pull request #7386 from deepan10/features/ansible-plugin
ansible plugin added
2018-12-31 11:18:24 -08:00
Robby Russell
8961fda153
Add keychain plugin (#7385)
This plugin integrates the Keychain tool[1] in to the project.

[1] [keychain](https://www.funtoo.org/Keychain)
2018-12-31 11:17:29 -08:00
Anton Stamenov
0cc1266c17 aws_porfiles regex is catching more lines than profiles, thus breaking completion (#7469) 2018-12-31 11:15:56 -08:00
Alexander Huynh
3c3766fdf5 Provide even spacing between marks (#7456)
Before, when typing the `marks` command, longer mark keys would cause
the tabs to spill over to the next tab stop, like so:

    rc      -> /home/ahlex/.rc
    repos   -> /home/ahlex/repos
    a-longer-string         -> /tmp

Implement better key display by running through all of the marks twice,
once to get the longest key length, and the second time to format
everything according to that length:

                 rc -> /home/ahlex/.rc
              repos -> /home/ahlex/repos
    a-longer-string -> /tmp
2018-12-31 11:15:14 -08:00
Ben Davies
d0c06d9ec8 added svcat plugin (#7452)
Including a Kubernetes Service Catalog plugin
2018-12-31 11:14:22 -08:00
Andrew Imeson
64976138b6 Add new vagrant commands (#7455)
* vagrant: Add `cloud` subcommand to completion

* vagrant: Add `port` subcommand to completion

* vagrant: Add `validate` subcommand to completion
2018-12-31 11:13:31 -08:00
Patrick Artounian
990104730c Update docker plugin from upstream docker/cli (#7470) 2018-12-31 11:12:34 -08:00
Antu Acharjee
722af459fd Added stackoverflow in /plugins/web-search/-web-search 2018-12-20 10:41:33 +06:00
Antu Acharjee
a244d47131 Added stackoverflow in /plugins/web-search/-web-search 2018-12-20 10:25:36 +06:00
Frederick Zhang
cf07fe2c6f -r is not available for bsd sed 2018-11-28 14:50:45 +11:00
Igor Kapkov
2614b7ecdf osx: fix rmdsstore function definition (#7443) 2018-11-27 22:58:36 +01:00
Sagar Patil
0a59baf4c5 debian: add README (#7438) 2018-11-27 22:57:07 +01:00
Marc Cornellà
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
Ricardo Seriani
e8aba1bf59 golang: support "go help environment" in autocompletion (#7404)
Signed-off-by: Ricardo Seriani <ricardo.seriani@gmail.com>
2018-11-16 22:53:29 +01:00
Marc Cornellà
ad69c7a82f fabric: rename completion back to _fab
Fixes #7405
2018-11-16 18:55:07 +00:00
Marc Cornellà
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