diff options
-rw-r--r-- | kshrc | 2 | ||||
-rw-r--r-- | mksh/mkshrc | 5 | ||||
-rw-r--r-- | sh/aliases | 4 | ||||
-rw-r--r-- | zsh/.zshrc | 2 |
4 files changed, 8 insertions, 5 deletions
@@ -5,6 +5,8 @@ [ -f $HOME/.config/sh/aliases ] && . $HOME/.config/sh/aliases [ -f $HOME/.config/sh/functions ] && . $HOME/.config/sh/functions +alias e='. $ENV' + RED="\033[1;31m" GRE="\033[1;32m" YEL="\033[1;33m" 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 @@ -45,10 +45,6 @@ alias gd='git diff' ## Single Chars alias r='cd ~ && clear && exec $SHELL' -case "$(echo $0 | sed 's/^-*//' | xargs basename)" in - "zsh") alias e='. $ZDOTDIR/.zshrc' ;; - "ksh"|"oksh") alias e='. ~/.config/kshrc' ;; -esac alias q='exit' alias c='clear' alias m='make' @@ -9,6 +9,8 @@ setopt HIST_IGNORE_DUPS setopt INC_APPEND_HISTORY setopt HIST_REDUCE_BLANKS +_SH="zsh" + if [ -f "$XDG_CONFIG_HOME"/sh/aliases ]; then source "$XDG_CONFIG_HOME"/sh/aliases fi |