navi/scripts/fix
Denis Isidoro ce9c22100a
Allow overriding FZF variables (#235)
`$FZF_DEFAULT_OPTS` won't work in some use cases because it has lower precedence then hardcoded settings such as `--exact`.

Usage:
```
export NAVI_FZF_OVERRIDES=" --no-exact"
navi
```

Fixes #232
2020-03-12 14:57:02 -03:00

22 lines
448 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
export NAVI_HOME="$(cd "$(dirname "$0")/.." && pwd)"
source "${NAVI_HOME}/scripts/install"
cd "$NAVI_HOME"
header "Cargo nighly fix..."
cargo +nightly fix --clippy -Z unstable-options || true
header "Cargo fix..."
cargo fix || true
header "Cargo fmt..."
cargo fmt || true
header "dot code beautify..."
find scripts -type f | xargs -I% dot code beautify % || true
header "clippy..."
cargo clippy || true