Neovim, fish & tmux for Beginners / Chapter 1 — Starting with fish (lessons 1–5) / Lesson 1

The big picture of fish, Neovim and tmux

Time needed: about 4 min (estimate)

☆ Read later

You can try the opening of this lesson without an account.

Is it true that "commands from the internet do not work"?

Look into fish and you will always meet the claim that it is not POSIX compatible, and many people turn back there.

Let us settle it now: what fish cannot interpret is shell syntax, and commands such as git and docker work exactly as they are.

Things only fail when shell-specific syntax is mixed in.

&& and || work from fish 3.0 onwards — articles telling you to use ; and are about the 2.x series.

fish

# all of this works as it is git status docker compose up -d curl -fsSL https://example.com | tar xz find . -name '*.log' -mtime +7 -delete mkdir build && cd build # && works from 3.0 onwards # only "shell syntax" fails export FOO=bar # X in fish: set -x FOO bar for i in {1..5}; do ...; done # X in fish: for i in (seq 5) ... end if [ -f file ]; then ...; fi # X in fish: if test -f file ... end # let bash run install scripts /bin/bash -c "$(curl -fsSL https://example.com/install.sh)" # when it is a nuisance, just drop into bash bash exit

What you get in return

Create a free account to keep reading

With an account you can read the rest of this lesson, take the quiz, and read every free lesson in this course. Lessons you answer correctly are recorded as complete.

Report a problem with this lesson

Log in to send a report.

Keyboard shortcuts

Keys available in a lesson
KeyAction
[ or Alt + ←Go to the previous lesson
] or Alt + →Go to the next lesson
?Open this list
EscClose this list

The keys do not work while the cursor is in a code editor or an input field.