-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split code + remove cpu usage for zsh 5.0.2
- Loading branch information
1 parent
c62fed5
commit 740a00c
Showing
30 changed files
with
1,135 additions
and
681 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Examples | ||
|
||
## Git async on left | ||
|
||
```bash | ||
promptor_config::prompt '[left_half_circle_thick]237 231 %~ [left_hard_divider] {{unwritten}} [left_hard_divider] {{exit_code}} [left_hard_divider] {{git_async}} [left_hard_divider]' | ||
promptor_config::rprompt '[right_hard_divider] 25 231 %n@%m [right_hard_divider] 237 231 %D{%H:%M}[right_half_circle_thick]' | ||
``` | ||
|
||
<p align="center"> | ||
<img src="images/left_git.drawio.png" > | ||
</p> | ||
|
||
## Bullets | ||
|
||
```bash | ||
promptor_config::prompt '[left_half_circle_thick]237 231 %~[right_half_circle_thick][left_half_circle_thick]{{unwritten}}[right_half_circle_thick][left_half_circle_thick]{{exit_code}}[right_half_circle_thick]' | ||
promptor_config::rprompt '[left_half_circle_thick]{{git_async}}[right_half_circle_thick][left_half_circle_thick]25 231 %n@%m[right_half_circle_thick][left_half_circle_thick]237 231 %D{%H:%M}[right_half_circle_thick]' | ||
``` | ||
|
||
<p align="center"> | ||
<img src="images/bullets.drawio.png" > | ||
</p> | ||
|
||
## Multiline | ||
|
||
```bash | ||
promptor_config::prompt '[left_half_circle_thick]240 231 %D{%H:%M} [left_hard_divider] {{git_async}} [left_hard_divider] 237 231 %~[right_half_circle_thick][\n][left_half_circle_thick]25 231 %n@%m [left_hard_divider] {{unwritten}} [left_hard_divider] {{exit_code}} [left_hard_divider]' | ||
promptor_config::rprompt '' | ||
``` | ||
|
||
<p align="center"> | ||
<img src="images/multiline.drawio.png" > | ||
</p> | ||
|
||
## Multiline2 | ||
|
||
```bash | ||
promptor_config::prompt '[left_half_circle_thick]39 232 %D{%H:%M:%S} [left_hard_divider] 204 232 %1d [left_hard_divider] {{unwritten}} [left_hard_divider] {{exit_code}} [left_hard_divider] {{git_async}}[right_half_circle_thick][\n]-1 2 \ue285' | ||
promptor_config::rprompt '' | ||
``` | ||
|
||
<p align="center"> | ||
<img src="images/multiline2.drawio.png" > | ||
</p> | ||
|
||
## Multiline3 | ||
|
||
```bash | ||
promptor_config::prompt '[left_half_circle_thick]39 232 %D{%H:%M:%S} [left_hard_divider][left_hard_divider_inverse] 204 232 %1d [left_hard_divider] {{unwritten}} [left_hard_divider] {{exit_code}} [left_hard_divider][left_hard_divider_inverse] {{git_async}}[right_half_circle_thick][\n]-1 2 \ue285' | ||
promptor_config::rprompt '' | ||
``` | ||
<p align="center"> | ||
<img src="images/multiline3.drawio.png" > | ||
</p> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
promptor_function_echo() { | ||
local bg="$1" | ||
local fg="$2" | ||
local content="$3" | ||
|
||
echo "$bg" "$fg" "$content" | ||
} |
3 changes: 1 addition & 2 deletions
3
promptor/promptor_functions/example → promptor/functions/example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.