Code Monkey home page Code Monkey logo

Comments (17)

SamuelM333 avatar SamuelM333 commented on May 27, 2024 2

I managed to configure the theme with the style I said before. I made a copy of the .zsh file and edited the line 67

Was:

PROMPT="$GEOMETRY_PROMPT_PREFIX %${#PROMPT_SYMBOL}{%(?.$GEOMETRY_PROMPT.$GEOMETRY_EXIT_VALUE)%} %F{$GEOMETRY_COLOR_DIR}%3~%f "

And I wrote:

NEWLINE=$'\n'

PROMPT="$GEOMETRY_PROMPT_PREFIX %F{$GEOMETRY_COLOR_DIR}%3~%f ${NEWLINE} %${#PROMPT_SYMBOL}{%(?.$GEOMETRY_PROMPT.$GEOMETRY_EXIT_VALUE)%} "

Result:

screenshot_2017-02-01_17-09-09

from geometry.

desyncr avatar desyncr commented on May 27, 2024 1

From my side configuring PROMPT_PREFIX with $'\n' seems to work as expected. Be sure you are not quoting it this way: "$'\n'".

We are also working on a suffix configuration that would enable @SamuelM333 setup. We've also plans to make PROMPT more flexible on it's configuration. See #51.

from geometry.

jedahan avatar jedahan commented on May 27, 2024 1

@ducklin5 if you pull the latest mnml branch (haven't cut a release yet), I just added geometry_newline. You can get a second line prompt with GEOMETRY_PROMPT+=(geometry_newline), thanks for bringing this to our attention!

from geometry.

desyncr avatar desyncr commented on May 27, 2024

Do you mean that you configure GEOMETRY_PROMPT_PREFIX like so:

GEOMETRY_PROMPT_PREFIX=$'\n'

and it doesn't show up?

from geometry.

alittlebitweird avatar alittlebitweird commented on May 27, 2024

I mean that I configured it like that and it shows up like in the screenshot. I thought it was supposed to render the prompt on a new line, separate from the path/git information. Instead it displays the quoted code

from geometry.

SamuelM333 avatar SamuelM333 commented on May 27, 2024

I'm having the same problem. I would like to have the path, python env, git info, etc on one line and the geometry symbol with the prompt on the next one.

from geometry.

alittlebitweird avatar alittlebitweird commented on May 27, 2024

Awesome! How about if I wanted to keep the right side on the same line as the path?

from geometry.

SamuelM333 avatar SamuelM333 commented on May 27, 2024

I'm wondering the same 😅 I will experiment a little more and post my results

from geometry.

desyncr avatar desyncr commented on May 27, 2024

@alittlebitweird Wondering you show us how you configured geometry in order to produce rendering that way.

from geometry.

alittlebitweird avatar alittlebitweird commented on May 27, 2024

@desyncr this is what I did: GEOMETRY_PROMPT_PREFIX=$'\n'

from geometry.

desyncr avatar desyncr commented on May 27, 2024

Applied the same configuration both interactively and in .zshrc and both ways worked correctly.

Does the issue still reproduces? Can you share your dotfiles?

from geometry.

alittlebitweird avatar alittlebitweird commented on May 27, 2024

I ended up doing what @SamuelM333 did and it's working out great for me. Beautiful theme dude!

from geometry.

desyncr avatar desyncr commented on May 27, 2024

Cool. @alittlebitweird Closing this for now as it seems it was most likely a configuration issue.

from geometry.

mustaqimM avatar mustaqimM commented on May 27, 2024

I'm getting the same problem, if I don't quote it in "$'\n'", it doesn't put a newline, but if I do, it prints like this

~$'
' 

from geometry.

ducklin5 avatar ducklin5 commented on May 27, 2024

Is this not possible anymore? setting GEOMETRY_PROMPT_PREFIX=$'\n' in .zshrc does nothing

from geometry.

jedahan avatar jedahan commented on May 27, 2024

The closest I could get with current geometry is
newline() { echo '\n ' }; GEOMETRY_PROMPT+=(newline)
This is not ideal because of the extra space needed for some reason

from geometry.

jedahan avatar jedahan commented on May 27, 2024

Actually figured it out:

newline() { echo '\n\r' }
GEOMETRY_PROMPT+=(newline)

from geometry.

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.