Comments (17)
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:
from geometry.
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.
@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.
Do you mean that you configure GEOMETRY_PROMPT_PREFIX
like so:
GEOMETRY_PROMPT_PREFIX=$'\n'
and it doesn't show up?
from geometry.
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.
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.
Awesome! How about if I wanted to keep the right side on the same line as the path?
from geometry.
I'm wondering the same 😅 I will experiment a little more and post my results
from geometry.
@alittlebitweird Wondering you show us how you configured geometry in order to produce rendering that way.
from geometry.
@desyncr this is what I did: GEOMETRY_PROMPT_PREFIX=$'\n'
from geometry.
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.
I ended up doing what @SamuelM333 did and it's working out great for me. Beautiful theme dude!
from geometry.
Cool. @alittlebitweird Closing this for now as it seems it was most likely a configuration issue.
from geometry.
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.
Is this not possible anymore? setting GEOMETRY_PROMPT_PREFIX=$'\n'
in .zshrc does nothing
from geometry.
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.
Actually figured it out:
newline() { echo '\n\r' }
GEOMETRY_PROMPT+=(newline)
from geometry.
Related Issues (20)
- exec_time doesn't show in prompt HOT 2
- possibility to deactivate `hostname` HOT 12
- command not found: geometry_plugin_register when installing plugins both manually and with antigen HOT 5
- Explicit args for default plugins HOT 3
- Investigate supporting gitstatus
- Git reports errors in git submodules HOT 5
- clobber ASYNC_FD HOT 2
- Update async prompt functions independently
- Holding enter crashes on macOS HOT 7
- Prompt displays hostname after empty command HOT 1
- geometry::wrap prints unneeded space if output of called function is empty or single-space HOT 1
- GEOMETRY_INFO is surprising HOT 2
- Custom git GEOMETRY_RPROMPT spews to stderr
- GEOMETRY_CMDTITLE has issues with escape codes HOT 1
- git init produces an error: fatal: ambiguous argument 'HEAD' HOT 2
- geometry swallows output without trailing \n HOT 2
- Request - Add install tool Oh-My-Zsh HOT 3
- Newlines being removed from custom command in magic enter
- Request: Python Virtualenv as a prompt element HOT 1
- Make new gifs using vhs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geometry.