Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: parameters for custom pre- and post- CWD chars #41

Open
AndydeCleyre opened this issue Jun 20, 2023 · 1 comment
Open

Request: parameters for custom pre- and post- CWD chars #41

AndydeCleyre opened this issue Jun 20, 2023 · 1 comment
Assignees

Comments

@AndydeCleyre
Copy link
Contributor

Without needing to assemble a full custom prompt component array, it would be useful to specify some arbitrary content to precede and follow the current working directory component.

For example, one might prefix with a folder icon, and maybe some spaces:

AGKOZAK_PRE_DIR_CHAR='  '

or maybe put it in a "bubble":

AGKOZAK_PRE_DIR_CHAR='%F{#081937}%K{#081937}%F{green}'
AGKOZAK_POST_DIR_CHAR='%F{#081937}%k%f'
@agkozak agkozak self-assigned this Jun 20, 2023
@AndydeCleyre
Copy link
Contributor Author

I would also like to use this to italicize the directory, with \e[3m and \e[0m. Though I tried adding those directly in the source and they always came out literally on the other side, so maybe italics would need their own handling, meaning I should open a separate issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants