diff options
| author | Shulhan <ms@kilabit.info> | 2024-11-10 23:46:28 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-11-10 23:55:38 +0700 |
| commit | 747fd064d6e00d46dc28b039f2ef9e27c6869d4d (patch) | |
| tree | 9fff5e4acf9e44f48eeb8282d7ef12a28cbfce82 | |
| parent | 9a283ff7532ae434b9b06f5d3804fb6ac2afa56c (diff) | |
| download | bin.sh-747fd064d6e00d46dc28b039f2ef9e27c6869d4d.tar.xz | |
bash-completion.d/tmux-session: skip line start with "#"
Any line that start with "#" is considered a comment.
| -rw-r--r-- | etc/bash_completion.d/tmux-session | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/bash_completion.d/tmux-session b/etc/bash_completion.d/tmux-session index ee5ceab..71a2c28 100644 --- a/etc/bash_completion.d/tmux-session +++ b/etc/bash_completion.d/tmux-session @@ -7,6 +7,9 @@ _tmux-session_completions() local names=() { while read name _; do + if [[ "$name" =~ ^"#" ]]; then + continue + fi names+=($name) done } < ~/.tmux.session |
