mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 10:47:19 +00:00
zsh: use container names for fzf docker completion
This commit is contained in:
parent
0a1461ce7d
commit
61cd181a0f
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue