summaryrefslogtreecommitdiff
path: root/Base/home
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-06-17 19:37:44 +0430
committerAndreas Kling <kling@serenityos.org>2020-07-05 15:43:14 +0200
commitbc3285abb02c13918cf2653deb39dd9c9d71c202 (patch)
tree0d7571952661133f3c47e5eaeb90f0dbcdcb76ac /Base/home
parent3d6a035d0f2b8022ce7026c675ab395d30d2582c (diff)
downloadserenity-bc3285abb02c13918cf2653deb39dd9c9d71c202.zip
Shell: Read and evaluate an init file on start
This behaviour is overridable with the `--skip-init' flag. The default file is at '~/shell-init.sh'
Diffstat (limited to 'Base/home')
-rw-r--r--Base/home/anon/shell-init.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Base/home/anon/shell-init.sh b/Base/home/anon/shell-init.sh
new file mode 100644
index 0000000000..21821bef78
--- /dev/null
+++ b/Base/home/anon/shell-init.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# IFS controls what $(...) (inline evaluate) would split its captured
+# string with. the default is \x0a (i.e. newline).
+IFS="\x0a"