about summary refs log tree commit diff
path: root/mksh/.mkshrc
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>1970-01-01 03:00:00 +0300
committerAzat Bahawi <azat@bahawi.net>2022-09-20 11:51:54 +0300
commit38bab29776950ac2364ed64195b89887717c33de (patch)
treeedaaf366a55dbe96d268019124536bc504c64e87 /mksh/.mkshrc
chore: init HEAD master
Diffstat (limited to 'mksh/.mkshrc')
-rw-r--r--mksh/.mkshrc17
1 files changed, 17 insertions, 0 deletions
diff --git a/mksh/.mkshrc b/mksh/.mkshrc
new file mode 100644
index 0000000..ecf7cb2
--- /dev/null
+++ b/mksh/.mkshrc
@@ -0,0 +1,17 @@
+set -o vi
+
+HOSTNAME="$(builtin print -r -- "$(hostname 2>/dev/null)")"
+builtin export HOSTNAME
+
+USER="$(id -un 2>/dev/null)"
+builtin export USER
+
+MKSH="$(builtin whence -p mksh)"
+builtin export SHELL="$MKSH"
+
+if [ -d "$HOME/.shell.d" ]
+then
+    builtin source "$HOME/.shell.d/"*.sh
+fi
+
+# vim: filetype=sh

Consider giving Nix/NixOS a try! <3