Skip to content

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

Open
@daniboygg

Description

@daniboygg

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions