summaryrefslogtreecommitdiff
path: root/src/content/en/pastebins/2020/02/14/guix-shebang.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/en/pastebins/2020/02/14/guix-shebang.adoc')
-rw-r--r--src/content/en/pastebins/2020/02/14/guix-shebang.adoc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/content/en/pastebins/2020/02/14/guix-shebang.adoc b/src/content/en/pastebins/2020/02/14/guix-shebang.adoc
new file mode 100644
index 0000000..d415d36
--- /dev/null
+++ b/src/content/en/pastebins/2020/02/14/guix-shebang.adoc
@@ -0,0 +1,11 @@
+= Guix shebang
+:categories: guix
+
+[source,sh]
+----
+#!/usr/bin/env -S guix environment --ad-hoc bash -- bash
+set -Eeuo pipefail
+cd "$(dirname "${BASH_SOURCE[0]}")"
+
+pwd
+----