SHELL_CONFIG=".mkshrc" COLOR=0 export EDITORS="ed vi vim " export PATH="$HOME/bin:$PATH" UPDATE_URL="https://www.rygel.us/etc/" VIM_GIT_URL="https://git.riedstra.us/mitch/vim-cfg.git" VIM_BASIC_URL="https://git.riedstra.us/mitch/vim-cfg.git/plain/basic.vim" PRELOAD="$HOME/${SHELL_CONFIG}.pre" LOCAL="$HOME/${SHELL_CONFIG}.local" # Don't put any variables below this, as they can't be overridden before the # functions if you do that # Load pre config if [ -e $PRELOAD ] ; then . $PRELOAD fi set_pager set_editor # requires misc set_go setaliases setsudoaliases # Nasty conditional for support of many different shells if [ $SHELL = "/bin/ksh" ] || [ $SHELL = "/bin/mksh" ] || [ $SHELL = "/usr/bin/mksh" ] || [ $SHELL = "/usr/local/bin/mksh" ] || ! [ -z "$KSH_VERSION" ] then export HISTFILE="$HOME/.ksh_history" set -o emacs bind ^L=clear-screen if [ $COLOR -eq 1 ] ; then set_prompt else set_basic_prompt fi elif [ $SHELL = "/bin/sh" ] && [ "$(uname)" = "FreeBSD" ] ; then set -o emacs export PS1="$(whoami)"'@\h:\w \$ ' else [ $SHELL = "/bin/sh" ] && export PS1="$ " fi if [ $COLOR -eq 1 ] ; then colormanpages setcolorterminal setcoloraliases setlscolors fi # Include local configuration options if [ -f $LOCAL ] ; then . $LOCAL fi