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

preexec & ps0 functionality #835

Open
tungstengmd opened this issue Mar 23, 2025 · 2 comments
Open

preexec & ps0 functionality #835

tungstengmd opened this issue Mar 23, 2025 · 2 comments
Labels
1.1 Issue relevant to dev branch (v1.1.*) enhancement New feature or request

Comments

@tungstengmd
Copy link

i like zsh's preexec feature and was thinking it'd be awesome for a similar feature in ksh
and also the ps0 feature from bash which replaces the prompt before a typed command is executed

@McDutchie McDutchie added enhancement New feature or request 1.1 Issue relevant to dev branch (v1.1.*) labels Mar 23, 2025
@McDutchie
Copy link

I'll think about it.

bash's PS0 variable might not be a bad thing to add, and it should be fairly trivial to implement.

As for zsh's preexec function, ksh's DEBUG trap currently provides very similar functionality, so I don't know about that one.

@tungstengmd
Copy link
Author

i did hear about the DEBUG trap, i mainly forgot about it because of mksh's lack of support for it 😔 but yea ps0 would be nice, it'll make life easier when making transient prompts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.1 Issue relevant to dev branch (v1.1.*) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants