1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Ensure drsh starts a shell by overwriting entrypoint

This commit is contained in:
Joe Groocock 2017-08-27 16:37:17 +01:00
parent 35226c70f4
commit c4623a8622
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -159,7 +159,7 @@ alias drm-stopped='docker container prune'
alias drmi-untag='docker image prune' alias drmi-untag='docker image prune'
alias dprune='docker system prune -f' alias dprune='docker system prune -f'
alias dsh='_CMD=dsh _dsh exec' alias dsh='_CMD=dsh _dsh exec'
alias drsh='_CMD=drsh _dsh run --rm' alias drsh='_CMD=drsh _dsh run --rm --entrypoint='
_dsh() { _dsh() {
if [ $# -lt 2 ]; then if [ $# -lt 2 ]; then
echo "Usage: ${_CMD:-$0} [user@]container [program [args]]" >&2 echo "Usage: ${_CMD:-$0} [user@]container [program [args]]" >&2