feat(fish): add support for fish

This commit is contained in:
Hoang Nguyen 2023-08-20 00:00:00 +07:00
parent f86a3bcaff
commit 7768cead0d
No known key found for this signature in database
GPG key ID: B0567C20730E9B11
3 changed files with 22 additions and 1 deletions

View file

@ -22,7 +22,6 @@ queries. Contributions are welcome.
- devicetree
- elm
- fish
- gdscript
- graphql
- kotlin

View file

@ -0,0 +1,15 @@
(command_substitution
"(" @opening
")" @closing) @container
(concatenation
"[" @opening
"]" @closing) @container
(list_element_access
"[" @opening
"]" @closing) @container
(brace_expansion
"{" @opening
"}" @closing) @container

View file

@ -0,0 +1,7 @@
set -l shells "$SHELL" /bin/{zsh,bash,sh} (which nu) /usr/bin/xonsh
echo "Your first few shells is $shells[1..3]"
if set -q shells[10]
echo "You defined at least 10 shells"
end