Skip to content

Commit

Permalink
refactor(docker): move aliases to which-cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasnorrby committed Nov 27, 2024
1 parent 4764a66 commit 0b0a19f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 18 deletions.
19 changes: 1 addition & 18 deletions dev/docker/aliases.zsh
Original file line number Diff line number Diff line change
@@ -1,19 +1,2 @@
# Docker aliases
alias d="docker"
alias dk="docker container"
alias dkl="docker container ls"
alias dks="docker container start"
alias dkx="docker container stop"
alias di="docker image"
alias dil="docker image ls"
alias ds="docker service"
alias dsl="docker service ls"
alias dsp="docker service ps"
alias dv="docker volume"
alias dvl="docker volume ls"
alias dn="docker node"
alias dnl="docker node ls"
alias drrm="docker run --rm"
alias drit="docker run --rm -it"

alias dc="docker-compose"
alias dc="docker compose"
36 changes: 36 additions & 0 deletions shell/which_cmd/commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,44 @@ keys:
keys:
- key: l
value: ls
immediate: true
- key: p
value: prune
- key: c
value: compose
keys:
- key: u
value: up
- key: d
value: down
- key: C
value: container
keys:
- key: l
value: ls
immediate: true
- key: p
value: prune
- key: s
value: system
keys:
- key: p
value: prune
- key: r
value: run
loop: true
keys:
- key: i
value: -it
name: interactive
fleeting: true
- key: r
value: --rm
name: remove
fleeting: true
- key: p
value: ps
immediate: true
- key: f
name: find
value: find .
Expand Down

0 comments on commit 0b0a19f

Please sign in to comment.