Skip to content

Instantly share code, notes, and snippets.

@sandalsoft
Created August 13, 2019 21:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandalsoft/3226254236a5d98140b515c8b24cc149 to your computer and use it in GitHub Desktop.
Save sandalsoft/3226254236a5d98140b515c8b24cc149 to your computer and use it in GitHub Desktop.
pi bash exports
# ------------------------------------
# Exports and aliases
# ------------------------------------
export CONTAINERS_HOME=$HOME/containers
export CONTAINER_HOME=$CONTAINERS_HOME
export JQ_EXPR_UNIQUE_DOCKER_COMPOSE_RELATIVE_PATH_VOLUMES='with_entries(.value |= .volumes) | to_entries | map(.value) | flatten | map (. | try split(":")) | map(.[0] ) | map(. | select(. | startswith("/") | not)) | unique | .[]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment