mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
parent
7bdcbc1775
commit
65b80da60b
1 changed files with 10 additions and 0 deletions
|
@ -450,6 +450,16 @@ else
|
|||
end
|
||||
\endfish
|
||||
|
||||
<a href="#tut_combiners">Combiners</a> can also be used to make more complex conditions, like
|
||||
|
||||
\fish
|
||||
if grep fish /etc/shells; and command -sq fish
|
||||
echo fish is installed and configured
|
||||
end
|
||||
\endfish
|
||||
|
||||
For even more complex conditions, use `begin` and `end` to group parts of them.
|
||||
|
||||
There is also a `switch` command:
|
||||
|
||||
\fish{cli-dark}
|
||||
|
|
Loading…
Reference in a new issue