about summary refs log tree commit diff
path: root/configs/shared/zsh/functions.zsh
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-05-13T15·37+0100
committerWilliam Carroll <wpcarro@gmail.com>2019-05-13T15·37+0100
commit5cb0aebbd332ffd6d68fe2a976b38e64f9e073aa (patch)
tree582db561eb1d3fd224aff9b05550f5b828d2b603 /configs/shared/zsh/functions.zsh
parent011d302b9eed55ac92422c631432e0563b091a61 (diff)
Support sandboxes for Elixir, Haskell, Clojure
The dream is to create an offline version of something like repl.it.
Diffstat (limited to 'configs/shared/zsh/functions.zsh')
-rw-r--r--configs/shared/zsh/functions.zsh12
1 files changed, 3 insertions, 9 deletions
diff --git a/configs/shared/zsh/functions.zsh b/configs/shared/zsh/functions.zsh
index 4c395897d660..b72ca582d639 100644
--- a/configs/shared/zsh/functions.zsh
+++ b/configs/shared/zsh/functions.zsh
@@ -104,15 +104,9 @@ dkcsh() {
 }
 
 dkish() {
-  # Runs a Docker container with `/usr/bin/env bash`.
-  # `dkish` stands for DocKer Image SHell.
-  # Note: This defers from `dksh`, which accepts a container instead of an
-  # image.
-  # Usage: dkrit <container_name> [command]
-  image=$1
-  cmd=${2-/bin/bash}
-
-  docker run -it "$image" "$cmd"
+  # Runs a Docker container interactively
+  # Usage: dkrit <container_name> <command> [...args]
+  docker run -it $@
 }
 
 # Emacs