Skip to content

Commit d2533fd

Browse files
committed
Use [[ ]]
1 parent f8ff748 commit d2533fd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

plugins/tmux-autoattach/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ This tmux plugin will automatically attach a tmux session to your shell session.
2424
**Wayland**
2525

2626
```bash
27-
[ ${DISPLAY_WAYLAND-} ] && plugins+=(tmux-autoattach)
27+
[[ ${DISPLAY_WAYLAND-} ]] && plugins+=(tmux-autoattach)
2828
```
2929

3030
**X11**
3131

3232
```bash
33-
[ ${DISPLAY-} ] && plugins+=(tmux-autoattach)
33+
[[ ${DISPLAY-} ]] && plugins+=(tmux-autoattach)
3434
```
3535

3636
**Multiple**
3737

3838
```bash
39-
if [ ${DISPLAY-} ] || [ ${SSH-} ]; then
39+
if [[ ${DISPLAY-} ]] || [[ ${SSH-} ]]; then
4040
plugins+=(tmux-autoattach)
4141
fi
4242
```

plugins/zellij-autoattach/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@ This zellij plugin will automatically attach a zellij session to your shell sess
2424
**Wayland**
2525

2626
```bash
27-
[ ${DISPLAY_WAYLAND-} ] && plugins+=(zellij-autoattach)
27+
[[ ${DISPLAY_WAYLAND-} ]] && plugins+=(zellij-autoattach)
2828
```
2929

3030
**X11**
3131

3232
```bash
33-
[ ${DISPLAY-} ] && plugins+=(zellij-autoattach)
33+
[[ ${DISPLAY-} ]] && plugins+=(zellij-autoattach)
3434
```
3535

3636
**Multiple**
3737

3838
```bash
39-
if [ ${DISPLAY-} ] || [ ${SSH-} ]; then
39+
if [[ ${DISPLAY-} ]] || [[ ${SSH-} ]]; then
4040
plugins+=(zellij-autoattach)
4141
fi
4242
```

0 commit comments

Comments
 (0)