Browse Source

alias d-e -> docker exec -it

Fabian Peter Hammerle 5 years ago
parent
commit
5e44787772
1 changed files with 1 additions and 0 deletions
  1. 1 0
      rc.xsh

+ 1 - 0
rc.xsh

@@ -176,6 +176,7 @@ except KeyError:
 docker_command_prefix = [] if docker_gid and docker_gid in os.getgroups() else ['sudo']
 aliases['c'] = docker_command_prefix + ['docker-compose']
 aliases['d'] = docker_command_prefix + ['docker']
+aliases['d-e'] = docker_command_prefix + ['docker', 'exec', '--interactive', '--tty']
 aliases['d-v'] = docker_command_prefix + ['docker', 'volume', 'list']
 aliases['dpkg-welse'] = lambda args: '\n'.join(dpkg_welse(args[0]))
 aliases['dpkg-which'] = lambda args: '\t'.join(dpkg_which(args[0]))