From 092f3cb92f1321511424f65a0e538b54f50e2d9e Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Wed, 25 Nov 2015 11:37:51 +0100 Subject: [PATCH] [zsh][mmaret-geny]remove lollidocker function Use sdocker instead --- .zsh/host:mmaret-geny/function.zsh | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .zsh/host:mmaret-geny/function.zsh diff --git a/.zsh/host:mmaret-geny/function.zsh b/.zsh/host:mmaret-geny/function.zsh deleted file mode 100644 index 088e247..0000000 --- a/.zsh/host:mmaret-geny/function.zsh +++ /dev/null @@ -1,20 +0,0 @@ -lollidocker (){ - if [ -n "$SSH_AUTH_SOCK" ]; then - SSH_AUTH_ARGS="-v $SSH_AUTH_SOCK:/tmp/ssh_auth -e SSH_AUTH_SOCK=/tmp/ssh_auth" - fi - AOSP_ARGS=${AOSP_ARGS:--it} - img=$(docker ps | grep lollipop | awk '{print $1}'); - if [ -z $img ]; then - img=$(docker ps -a | grep lollipop | awk '{print $1}') | head -1; - if [ -z $img ]; then - echo "Running a new container" - echo "docker run $AOSP_ARGS $SSH_AUTH_ARGS -v /home/mmaret/Project:/aosp/Project -i -t lollipop" - else - echo "Starting $img" - docker start -i -a $img - fi - else - echo "Attach to $img" - docker exec -it $img /bin/bash - fi -}