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 -}