Fix out of scope opt variable (#10020)

* Fix out of scope opt variable

* Update ls.fish
This commit is contained in:
Mathijs Henquet 2023-10-07 18:00:17 +02:00 committed by GitHub
parent 098b7093da
commit a809672412
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -49,6 +49,7 @@ function ls --description "List contents of directory"
# Set the colors to the default via `dircolors` if none is given.
__fish_set_lscolors
set -l opt
isatty stdout
and set -a opt -F