diff options
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -121,5 +121,8 @@ history-remove-duplicates() { awk '!visited[$0]++' "$HOME/.bash_history" | spong # extract docker container as rootfs docker-rootfs() { id=$(docker run -d "$1" /bin/true) && docker export "$id" -o "$2.tar" && docker container rm "$id"; } +# https://til.simonwillison.net/bash/escaping-a-string +shellquote() { printf '%q\n' "$(cat)"; } + # swallow swallow() { "$@" & disown; exit; } |