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

[Feature]: Add completion for -c option to tmux new-session command #2245

Open
daniboygg opened this issue Mar 13, 2024 · 0 comments
Open

[Feature]: Add completion for -c option to tmux new-session command #2245

daniboygg opened this issue Mar 13, 2024 · 0 comments

Comments

@daniboygg
Copy link

daniboygg commented Mar 13, 2024

Expected behavior

When creating a new tmux session, there is a -c option to set the start-directory. So, tmux new-session -c <tab><tab> should show you the paths of the current dir, just like cdcommand

Current behavior

There is no autocompletion for -c argument in tmux new-session comand

Possible solution

I think adding the line -c) COMPREPLY=( $(compgen -d -S / -- "${cur}") ); return 0;; to new-session file in https://github.com/Bash-it/bash-it/blob/master/completion/available/tmux.completion.bash should do it.

I'm not experience enough in bash to know if there is a better way to do this...

Context

No response

Notes

No response

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

No branches or pull requests

1 participant