We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e39b789 commit 9d30ed1Copy full SHA for 9d30ed1
1 file changed
.bashrc
@@ -265,13 +265,20 @@ if [ -f ~/.git-completion.bash ]; then
265
. ~/.git-completion.bash
266
fi
267
268
-# Docker logs for conatiner with name
+# Docker logs for conatiner by name
269
dlog() {
270
local cid=`docker ps -a | grep $1 | awk '{print $1}'`
271
echo "docker logs -f ${cid}"
272
docker logs -f ${cid}
273
}
274
275
+# Start shell on container by name
276
+dbash() {
277
+ local cid=`docker ps -a | grep $1 | awk '{print $1}'`
278
+ echo "docker exec -it ${cid} /bin/sh"
279
+ docker exec -it ${cid} /bin/sh
280
+}
281
+
282
alias here='open .'
283
284
# ln -s /Applications/MacVim.app/Contents/bin/mvim /usr/local/bin/mvim
0 commit comments