2016-11-05 10:08:48 +08:00
|
|
|
# check if command fish_indent works and is the same version that
|
2016-09-23 21:17:17 +08:00
|
|
|
# came with this fish. This will happen one time.
|
2016-11-28 13:27:22 +08:00
|
|
|
command -s fish_indent >/dev/null
|
2016-11-05 10:08:48 +08:00
|
|
|
and command fish_indent --version 2>&1 | string match -rq $FISH_VERSION
|
2016-09-23 21:17:17 +08:00
|
|
|
# if alias doesn't define the function here, this is an autoloaded "nothing".
|
|
|
|
# the command (if there is one) will be used by default.
|
2016-11-05 10:08:48 +08:00
|
|
|
or alias fish_indent=(string escape $__fish_bin_dir/fish_indent)
|