summaryrefslogtreecommitdiff
path: root/mksh/mkshrc
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-09 15:49:32 -0600
committerzachir <zachir@librem.one>2023-02-09 15:49:32 -0600
commit944bcb63f0b56cb1b2ac5ace64743a66a9f3b650 (patch)
tree0539a61823c9d83bb25b890bb5b2c8b55b6eecfc /mksh/mkshrc
parentc2fb36df2c383078b67462b2b93d3f77c376a2e2 (diff)
fix e alias in *ksh and zsh
Diffstat (limited to 'mksh/mkshrc')
-rw-r--r--mksh/mkshrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/mksh/mkshrc b/mksh/mkshrc
index 5b61ae3..8d17b8e 100644
--- a/mksh/mkshrc
+++ b/mksh/mkshrc
@@ -26,9 +26,12 @@
# catch non-mksh, non-lksh, trying to run this file
case ${KSH_VERSION:-} in
*LEGACY\ KSH*|*MIRBSD\ KSH*) ;;
-*) \return 0 ;;
+*) . $CONFIG/kshrc && exit ;;
esac
+[ -f "$HOME/.config/sh/aliases" ] && . "$HOME/.config/sh/aliases"
+[ -f "$HOME/.config/sh/functions" ] && . "$HOME/.config/sh/functions"
+
# give MidnightBSD's laffer1 a bit of csh feeling
function setenv {
if (( $# )); then