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

Add minimal bash support #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

erikw
Copy link

@erikw erikw commented Nov 4, 2021

This PR adds support for bash, that works along-side (an unaffecting) the zsh support. Completion for bash is added as well, including relative path completion ($ cd-bookmark -c BOOKMARKID/path<tab>)!

This patch was tested on zsh 5.8 and bash 5.1.8 on macOS and it works with both shells.

This is a minimal support patch. I can understand if you don't want to merge this PR as-is, as maybe you would like to structure it differently. In that case, let's use this PR as a start of the conversation.

Otherwise, this PR does add working bash support without compromising zsh support. I've encountered no issues so far.

Bash users should add to their .bashrc:
source path/to/dir/cd-bookmark/cd-bookmark

Reference for completion implementation:
https://opensource.com/article/18/3/creating-bash-completion-script

Fixes mollifier#6
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

Successfully merging this pull request may close these issues.

1 participant