Giter Club home page Giter Club logo

Comments (6)

juanibiapina avatar juanibiapina commented on July 20, 2024

~/.basher/bin is used by the main basher binary.

~/.basher/cellar/bin is used by package binaries. This is added to your path by the basher init call.

In summary, everything is working as intended.

from basher.

 avatar commented on July 20, 2024

does basher call that on its own? Am I supposed to add that in .bashrc? I don't remember that being explicitly told in the docs. Also...

qu@qu:~$ basher init
export BASHER_SHELL=bash
export BASHER_ROOT=/home/qu/.basher
export BASHER_PREFIX=/home/qu/.basher/cellar
export PATH="$BASHER_ROOT/cellar/bin:$PATH"
. "$BASHER_ROOT/lib/include.bash"
. "$BASHER_ROOT/completions/basher.bash"
for f in $(command ls "$BASHER_ROOT/cellar/completions/bash"); do source "$BASHER_ROOT/cellar/completions/bash/$f"; done
qu@qu:~$ eval `basher init`
bash: syntax error near unexpected token `do'
qu@qu:~$ command ls
Desktop  Documents  Downloads  failops	fo  go	Music  Pictures  Public  Templates  Videos
qu@qu:~$ command ls $BASHER_ROOT/cellar/completions/bash
ls: cannot access '/cellar/completions/bash': No such file or directory
qu@qu:~$ ls $BASHER_ROOT
Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos
qu@qu:~$ ls $BASHER_ROOT/cellar
ls: cannot access '/cellar': No such file or directory
qu@qu:~$ eval `basher init`
bash: syntax error near unexpected token `do'
qu@qu:~$ $(basher init)
bash: export: `.': not a valid identifier
bash: export: `"$BASHER_ROOT/lib/include.bash"': not a valid identifier
bash: export: `.': not a valid identifier
bash: export: `"$BASHER_ROOT/completions/basher.bash"': not a valid identifier
bash: export: `$(command': not a valid identifier
bash: export: `"$BASHER_ROOT/cellar/completions/bash");': not a valid identifier
bash: export: `"$BASHER_ROOT/cellar/completions/bash/$f";': not a valid identifier
qu@qu:~$ 

basher init doesn't work xD

from basher.

icasimpan avatar icasimpan commented on July 20, 2024

Hi @toxik-io

basher init works fairly ok from my end. Tried in both CentOS7 and Mac 10.12.6.

Can you perhaps run the following:

  • set -xv
  • basher init

And paste here the results?

from basher.

 avatar commented on July 20, 2024
basher init
+ basher init
export BASHER_SHELL=bash
export BASHER_ROOT=/home/toxik/.basher
export BASHER_PREFIX=/home/toxik/.basher/cellar
export PATH="$BASHER_ROOT/cellar/bin:$PATH"
. "$BASHER_ROOT/lib/include.bash"
. "$BASHER_ROOT/completions/basher.bash"
for f in $(command ls "$BASHER_ROOT/cellar/completions/bash"); do source "$BASHER_ROOT/cellar/completions/bash/$f"; done

though there's no completions in cellar/completions/bash, I can't find any syntax errors as it goes along. :/

from basher.

pawamoy avatar pawamoy commented on July 20, 2024

What about eval "$(basher init - bash)"?

from basher.

juanibiapina avatar juanibiapina commented on July 20, 2024

Closing since there has been no reply.

from basher.

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.