This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DOCKER_ORIG=$(which docker) | |
DOCKER_BASH_HIST=$HOME/.docker_bash_history | |
touch $DOCKER_BASH_HIST | |
docker () { | |
if [[ $1 == "run" ]]; then | |
shift | |
$DOCKER_ORIG run -v $DOCKER_BASH_HIST:/root/.bash_history "$@" | |
else | |
$DOCKER_ORIG "$@" | |
fi | |
} |
No hay comentarios:
Publicar un comentario