From 9f33f3e258644a2c2918aec7aab699688c1cda22 Mon Sep 17 00:00:00 2001 From: Raine Date: Sun, 19 Nov 2023 01:19:47 +0100 Subject: [PATCH] feat: add container function --- crates/10-zsh/files/.zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/10-zsh/files/.zshrc b/crates/10-zsh/files/.zshrc index 6ce5b9b..ec5a17b 100644 --- a/crates/10-zsh/files/.zshrc +++ b/crates/10-zsh/files/.zshrc @@ -32,4 +32,13 @@ share_cdn() { echo "https://cdn.ixvd.net/random/${2:-$(basename $1)}" } +container() { + docker run \ + -ti \ + --rm \ + --name tmp-$(id -u)-$(openssl rand -hex 8) \ + alpine \ + ash +} + alias q="exit" \ No newline at end of file