about summary refs log tree commit diff
path: root/mksh/.mkshrc
blob: ecf7cb2cf9419a8d57e4f5e1847b10526d8c2bd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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