Skip to content

Commit 860e913

Browse files
author
Jonathan Dahan
committed
create geometry_newline for two-line prompts
1 parent a64391a commit 860e913

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
88
### Improved
99
- lazy load functions with autoload instead of sourcing (thanks @alxbl!)
1010

11+
### Added
12+
- geometry_newline for two-line prompts (thanks @ducklin5)
13+
1114
### Fixed
1215
- geometry_git complaining when not in a work-tree
1316

functions/geometry_newline

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# geometry_newline - add to the end of GEOMETRY_PROMPT to get a 2-line prompt!
2+
3+
geometry_newline() { echo '\n\r'; }

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ Please check out and share third-party functions on our [functions wiki page][]
6060

6161
For more details on how to create a function, check out [our contribution guide][]
6262

63+
If you prefer a two-line prompt, try `GEOMETRY_PROMPT+=(geometry_newline)`
64+
6365
## Configuration
6466

6567
You can configure everything in geometry by defining a variable.

0 commit comments

Comments
 (0)