Coder Social home page Coder Social logo

bashly add completions error about bashly HOT 8 CLOSED

dddachui avatar dddachui commented on June 22, 2024
bashly add completions error

from bashly.

Comments (8)

dddachui avatar dddachui commented on June 22, 2024

The three ways I read the document report errors. Is it my operation problem

from bashly.

dddachui avatar dddachui commented on June 22, 2024

OS: centos7.9
ruby : ruby 2.0.0p648 (2015-12-16) [x86_64-linux]

from bashly.

DannyBen avatar DannyBen commented on June 22, 2024

There is a difference in the completion command name between the 0.9.x version and the pre-release 1.0.x

Since you are using the docker image, pull the latest release candidate:

$ docker pull dannyben/bashly

Then check version:

$ docker run --rm -it dannyben/bashly --version
1.0.0.rc1

then run this command to see available libraries to add:

$ docker run --rm -it dannyben/bashly add --list

If you are using the 0.9.x version, it is bashly add comp function instead of bashly add completions

from bashly.

DannyBen avatar DannyBen commented on June 22, 2024

I will release the final 1.0 version in a few days (maybe tomorrow), so everything will be in sync.

from bashly.

dddachui avatar dddachui commented on June 22, 2024

ok, i know ,thank you very much!!

from bashly.

DannyBen avatar DannyBen commented on June 22, 2024

Sure thing - sorry for the confusion, and thanks for taking the time to report.

from bashly.

dddachui avatar dddachui commented on June 22, 2024

When I click the TAB auto-complete command, is this "Bash complete" the same as Linux's "bash-complete"?

from bashly.

DannyBen avatar DannyBen commented on June 22, 2024

the bashly add completions (or bashly add comp in the old version) adds a completions function that provides tab completion. See https://bashly.dannyb.co/advanced/bash-completion/

You can either create a standalone completions script, or a function that is a part of your bashly-generated bash script.
If you do the function, there are a couple of additional steps you need to take, as noted in the documentation.

from bashly.

Related Issues (20)

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.