rstacruz / cheatsheets

Cheatsheets for web development - devhints.io
https://devhints.io
13.63k stars 3.58k forks source link

Two changes : Correction on Fish cheatsheet & version update on Docker compose #2115

Closed BSD-Yassin closed 3 months ago

BSD-Yassin commented 4 months ago

For the Fish cheatsheet :

I was using this cheatsheet to brush back on fish conditionals.

Turns out when you use something like

test $TMUX_PROGRAM == '/usr/bin/tmux'

An error is returned : test: unexpected argument at index 2: '=='

test $TMUX_PROGRAM = '/usr/bin/tmux'

Works fine.

The official documentation uses the same operator https://fishshell.com/docs/current/cmds/test.html

For the Docker compose cheatsheet :

I changed the documentation to follow the newer docker compose out of the box and summarized the migration for everyone.

The official documentation : https://docs.docker.com/compose/ https://docs.docker.com/compose/migrate/

I also took the opportunity to remind a few others useful docker compose commands, just in case they didn't exist back in last update in 2020.

rstacruz commented 3 months ago

This is great, thank you so much for your contribution!