aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2021-04-10 23:36:03 -0400
committertdro <tdro@users.noreply.github.com>2021-04-10 23:36:03 -0400
commit084eeb10cbf9774516804067b82de8ba704dfdda (patch)
tree98d0d06adc69e86f61a8899ca0c65a45fd759c34
parentab094d728480f518c7ccede5d3542062219b00a4 (diff)
downloaddotfiles-084eeb10cbf9774516804067b82de8ba704dfdda.tar.gz
dotfiles-084eeb10cbf9774516804067b82de8ba704dfdda.tar.bz2
dotfiles-084eeb10cbf9774516804067b82de8ba704dfdda.zip
.bashrc: Add shellquote comments
-rw-r--r--.bashrc1
1 files changed, 1 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 19526ca..624c3a6 100644
--- a/.bashrc
+++ b/.bashrc
@@ -123,6 +123,7 @@ history-remove-duplicates() { awk '!visited[$0]++' "$HOME/.bash_history" | spong
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
+# press ctrl+d after writing string to standard input
shellquote() { printf '%q\n' "$(cat)"; }
# swallow