Skip to content

Commit

Permalink
chore: update readme & bash test file
Browse files Browse the repository at this point in the history
  • Loading branch information
uchars authored and lewis6991 committed Apr 23, 2023
1 parent 69fb92e commit 8cd2563
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ use 'nvim-treesitter/nvim-treesitter-context'
- [ ] `embedded_template`
- [ ] `erlang`
- [ ] `fennel`
- [ ] `fish`
- [x] `fish`
- [ ] `foam`
- [ ] `fsh`
- [ ] `func`
Expand Down
85 changes: 85 additions & 0 deletions test/test.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
#!/bin/bash
foo() {

if [ 1 -eq 1 ]; then
echo 1








fi

case "$i" in
1) echo 1







;;
2|3) echo 2 or 3
;;
*) echo default
;;
esac


while [ $x -le 5 ]
do
echo "Welcome $x times"





x=$(( $x + 1 ))
done

# until is also a while loop
until [ $x -gt 5 ]
do
echo Counter: $x






((x++))
done

# select is a for statement
select character in Sheldon Leonard Penny Howard Raj
do
echo "Selected character: $character"





echo "Selected number: $REPLY"
done


}















0 comments on commit 8cd2563

Please sign in to comment.