mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-23 10:51:14 -03:00
Run fish_indent on all our fish scripts
It's now good enough to do so.
We don't allow grid-alignment:
```fish
complete -c foo -s b -l barnanana -a '(something)'
complete -c foo -s z -a '(something)'
```
becomes
```fish
complete -c foo -s b -l barnanana -a '(something)'
complete -c foo -s z -a '(something)'
```
It's just more trouble than it is worth.
The one part I'd change:
We align and/or'd parts of an if-condition with the in-block code:
```fish
if true
and false
dosomething
end
```
becomes
```fish
if true
and false
dosomething
end
```
but it's not used terribly much and if we ever fix it we can just
reindent.
This commit is contained in:
@@ -34,11 +34,15 @@ math -- '-4 * 2'
|
||||
# CHECK: -8
|
||||
|
||||
# Validate some rounding functions
|
||||
math 'round(3/2)' ; math 'floor(3/2)' ; math 'ceil(3/2)'
|
||||
math 'round(3/2)'
|
||||
math 'floor(3/2)'
|
||||
math 'ceil(3/2)'
|
||||
# CHECK: 2
|
||||
# CHECK: 1
|
||||
# CHECK: 2
|
||||
math 'round(-3/2)' ; math 'floor(-3/2)' ; math 'ceil(-3/2)'
|
||||
math 'round(-3/2)'
|
||||
math 'floor(-3/2)'
|
||||
math 'ceil(-3/2)'
|
||||
# CHECK: -2
|
||||
# CHECK: -2
|
||||
# CHECK: -1
|
||||
|
||||
Reference in New Issue
Block a user