From 38bab29776950ac2364ed64195b89887717c33de Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Thu, 1 Jan 1970 03:00:00 +0300 Subject: chore: init --- mksh/.mkshrc | 17 +++++++++++++++++ mksh/@install | 9 +++++++++ 2 files changed, 26 insertions(+) create mode 100644 mksh/.mkshrc create mode 100755 mksh/@install (limited to 'mksh') 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 diff --git a/mksh/@install b/mksh/@install new file mode 100755 index 0000000..7b589a4 --- /dev/null +++ b/mksh/@install @@ -0,0 +1,9 @@ +#!/bin/sh + +# Depends on "shell". + +stow \ + --target="${HOME}" \ + --ignore="^@.*" \ + --verbose \ + mksh -- cgit 1.4.1