Skip to content

Commit

Permalink
docs: quote tmux session name in code sample (#745)
Browse files Browse the repository at this point in the history
A tmux session name could contain a space. Quote the variable to avoid
the session name being split on spaces.
  • Loading branch information
oalders authored Dec 6, 2024
1 parent 29250f8 commit a5fb6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ $EDITOR $(gum filter)

```bash
SESSION=$(tmux list-sessions -F \#S | gum filter --placeholder "Pick session...")
tmux switch-client -t $SESSION || tmux attach -t $SESSION
tmux switch-client -t "$SESSION" || tmux attach -t "$SESSION"
```

- Pick a commit hash from `git` history
Expand Down

0 comments on commit a5fb6b1

Please sign in to comment.