Code Monkey home page Code Monkey logo

maven-bash-completion's People

Contributors

agebhar1 avatar albfan avatar bakulinav avatar bartoszmajsak avatar caspark avatar delibes avatar dimaj avatar dmalch avatar dscorbett avatar fboulay avatar fbricon avatar ghostcity avatar godin avatar jiri-pejchal avatar johnament avatar juven avatar kidlike avatar kubamarchwicki avatar mnuessler avatar mosabua avatar mwl avatar natros avatar netj avatar obazoud avatar obourgain avatar oschrenk avatar sausage-todd avatar thikade avatar wengych avatar zsergua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

maven-bash-completion's Issues

在Windows7 64位下通过 Cygwin 使用 Maven,出现下面的内容

$ mvn -bash: _git_reassemble_comp_words_by_ref: command not found
-bash: words
: bad array subscript
-bash: _git_reassemble_comp_words_by_ref: command not found
-bash: words
: bad array subscript

clean package test
compile process-resources test-compile
deploy process-test-resources verify
install site

使用其它命令也是一样的,只列出几个生命同期

Should this work on Windows under Git Bash?

Should this work on Windows under Git Bash?

Paul@aspire MINGW64 /d/Workspaces/workspace-sts-3.8.2.RELEASE/com.example.spring.starter
$ cat ~/.bash_profile
. ~/.maven_bash_completion.bash
Paul@aspire MINGW64 /d/Workspaces/workspace-sts-3.8.2.RELEASE/com.example.spring.starter
$ mvn cl

I can't get completion for cl

Provide tagged releases

Would it be possible to provide tagged releases?

The homebrew-completions project contains a homebrew formula for installing the maven bash completion. I recently opened a PR (Homebrew/homebrew-completions#116) to upgrade to the latest commit, but the maintainers would prefer to reference a tagged release instead of a git commit hash.

Consider writing a plugin for oh-my-zsh

I have moved to ZSH with oh-my-zsh and its MVN plugin is not as awesome as your script. I really miss autocompleting of the profiles (among other stuff).

So please consider porting this script to oh-my-zsh plugin (call it maven, not to conflict with current mvn, or simply overwrite it).

Easier installation

Hello!

Here is more correct way of installing bash completion in Debian/Ubuntu (may be for other distribs too)

sudo wget https://raw.github.com/juven/maven-bash-completion/master/bash_completion.bash --output-document /etc/bash_completion.d/mvn

Distribution packaging

Debian (Ubuntu, ...) package should be very easy.
Put the script in /etc/bash_completion.d and voilà.

Support Spring Boot command line arguments

Spring Boot command line arguments are passed by the option -Dspring-boot.run.arguments= (for Spring Boot 2.x) or -Drun.arguments (for Spring Boot 1.x). It would be nice if maven-bash-completion can support this option.

get plugin homepage url

As a mvn user, I want a handy way to get the homepage url of a plugin I'm interested, so I don't need to search it with Google.

This script should auto complete the plugin name for me.
But for now I'm not sure what kind of command I should use, it needs to be very handy, and not interfere ordinary mvn commands.

Not working on windows 11

I put the path in
C:\Users\name\maven_bash_autocomplete\bash_completion.bash

and updated
C:\Users\name\.bashrc

to

eval "$(oh-my-posh init bash --config ~/oh-my-posh-themes/amro.omp.json)"

# Bash aliases
alias .='explorer .'
alias ..='cd ..'
alias ....='cd ../../'
alias ......='cd ../../../'
alias ........='cd ../../../../'
alias ls='ls -lah --color --group-directories-first'

alias komis-be='cd c:/Dev/komis/cvti-gitlab/komis-skcris-netgrif-be/'
alias komis-fe='cd c:/Dev/komis/cvti-gitlab/komis-skcris-netgrif-fe/'
alias sawo='cd c:/Dev/SAWO/'
alias iwcp='cd c:/Dev/iwaycloud/service-broker/'

# Bash shell settings
# Typing a directory name just by itself will automatically change into that directory.
shopt -s autocd

# Automatically fix directory name typos when changing directory.
shopt -s cdspell

# Automatically expand directory globs and fix directory name typos whilst completing. 
# Note, this works in conjuction with the cdspell option listed above.
shopt -s direxpand dirspell

# Ignore lines which begin with a <space> and match previous entries.
# Erase duplicate entries in history file.
HISTCONTROL=ignoreboth:erasedups

# kubectl autocomplete
source <(kubectl completion bash)
alias k=kubectl
#complete -F __start_kubectl k

. ~/maven_bash_autocomplete/bash_completion.bash

What it does is it opens explorer right after I start Gitbash session in Windows terminal. So it seems that it gets loaded up, but something is not working.

On mvn cl[tab] it fills in mvn clr

Typo in repository name in homebrew installation steps

The readme has a typo in the homebrew installation steps.

It contains:

brew tap homebrew/completion

However the correct repository name ends with an 's':

brew tap homebrew/completions

Without the 's' homebrew asks for github login data, which is confusing and hides the real error message.

Completion is sometimes ending my Bash Session on Mac OS

Output then looks like this ("mvn cl[TAB]"):

> mvn clgrep: /{PARENT_PATH}/pom.xml
Saving session...
...saving history...truncating history files...
...completed.: No such file or directory
ean 

FYI: The /{PARENT_PATH}/pom.xml does exist and is parent with pom packaging.

Does not work for ./mvnw

It works for mvnw but not for ./mvnw which is the way mvnw is usually invoked.

Maybe it is due to a change in bash, because I would swear it used to work.

My version of bash is GNU bash, version 5.1.16(1)-release.

Installation with homebrew

Hello, I installed mvn-bash-completion using homebrew (brew install maven-completion).
I don't know if this installation is maintained by you, but after the installation I opened a new terminal and the completion was not working.
Are there follow up steps that should be followed after the installation with homebrew?
I will install it manually for now.

Incomplete support for Tomcat

Hi,

When I press [TAB] twice, the list of completions does not include any of the tomcat plugins (e.g. tomcat, tomcat6, tomcat7). However it does work if I start typing "tom" then [TAB].

Moreover, and this is the most annoying IMHO, the goal "redeploy" is not completed when using "tomcat7" phase.
Adding |tomcat7:redeploy in the variable "local plugin_goals_tomcat7" on line 177 seems to solve this second problem, but I can't find a workaround for the first.

Thank you in advance for your answers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.