Compare commits

...

2 commits

Author SHA1 Message Date
odrling 0a76ee9456
[zsh] fix prompt for fzf bindings 2024-04-15 10:58:13 +02:00
odrling db80ace55e
[git] add ruff-format hook 2024-04-15 10:56:39 +02:00
2 changed files with 3 additions and 2 deletions

View file

@ -32,6 +32,7 @@ runif() {
runif "isort" isort . --check
runif "black" black . --check
runif "ruff" ruff check .
runif "ruff-format" ruff format --check .
runif "pyright" pyright .
runif "clangformat" 'fd --glob \*.c | xargs clang-format -Werror -n'
runif "gofmt" '[ "$(gofmt -l . | wc -l)" -eq 0 ] || (gofmt -l -d .; exit 1)'

View file

@ -49,9 +49,9 @@ function __fzy_cmd
local -a args=( )
local value
if zstyle -s ":fzy:${widget}" prompt value ; then
args+=( -p "${value}" )
args+=( "--prompt=${value}" )
else
args+=( -p "${widget} >> " )
args+=( "--prompt=${widget} >> " )
fi
if zstyle -s ":fzy:${widget}" lines value ; then
if [[ ${value} = min:* ]]; then