Giter Site home page Giter Site logo

Comments (4)

javruben avatar javruben commented on July 17, 2024

It should be there. It works by parsing the prompt. If the prompt doesn't contain a path it won't work.

from core.

ludoo0d0a avatar ludoo0d0a commented on July 17, 2024

I debug deeper and found that 'ls' command failed too and hover link in general.
I found that findPrompt in aceterm/hover_linkjs failed on the regex

I have something like this

//var m = promptRe.exec(line);
/([~\/](?:[^\\\s'"\(<]|\\.)*)[^$]*?\$/.exec("[user@ip-172-10-10-10 my_website]$ ls")

I'm not quite enough good in regex to clearly understand this one..

compared to c9.io , prompt has this pattern

user@my-website:~/workspace/myws (master) $ ls

Something goes wrong with prompt formatting on my local cloud9.

from core.

nightwing avatar nightwing commented on July 17, 2024

hover_link needs to find working directory to be able to display links for ls and git.
The prompt you are using ([user@ip-172-10-10-10 my_website]$ ) doesn't provide that information, It displays only the folder name.
You can set PS1='\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' in your bash config, to get a prompt similar to the one on c9.io.

from core.

ludoo0d0a avatar ludoo0d0a commented on July 17, 2024

Perfect, thanks a lot 👍
I finally inspired me of nightwing PS1, .bashrc from c9.io and the git-prompt script to customize my prompt.

It would be great to put this the fact that prompt should be customized to include path into the doc ;)

from core.

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.