1
1
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:
Daiderd Jordan 2017-07-18 22:34:09 +02:00
parent 0a1461ce7d
commit 61cd181a0f
No known key found for this signature in database
GPG Key ID: D02435D05B810C96

View File

@ -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
}