mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-12-22 15:21:30 +01:00
aliases: add dockerip to parse docker inspect's output
This commit is contained in:
parent
cd70facdd2
commit
5f952f1e98
|
@ -84,6 +84,8 @@ alias watcha='watch ' # note the space after watch. This makes watch work with a
|
|||
|
||||
# A short version of docker ps
|
||||
alias dps='docker ps --format "table {{.Image}}\t{{.RunningFor}}\t{{.Status}}\t{{.Ports}}\t{{.Names}}"'
|
||||
# Get ip for a docker container, usage: `docker inspect <container> | dockerip`
|
||||
alias dockerip="jq -r '.[].NetworkSettings.Networks.bridge.IPAddress'"
|
||||
|
||||
alias pvim='poetry run vim'
|
||||
alias pshell='poetry shell'
|
||||
|
|
Loading…
Reference in New Issue
Block a user