mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-10-05 17:07:29 +03:00
zsh: use container names for fzf docker completion
This commit is contained in:
parent
0a1461ce7d
commit
61cd181a0f
@ -125,8 +125,8 @@ _fzf_complete_docker_post() {
|
||||
local cmd
|
||||
cmd=${tokens[2]}
|
||||
case $cmd in
|
||||
image|push|rmi|run) awk '{print $1 ":" $2}' ;;
|
||||
*) awk '{print $1}' ;;
|
||||
image|push|rmi|run) awk '{ print ($2 == "<none>") ? $3 : $1 ":" $2}' ;;
|
||||
*) awk '{print $NF}' ;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user