diff options
Diffstat (limited to 'shell/conf')
| -rw-r--r-- | shell/conf | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -1,11 +1,15 @@ SHELL_CONFIG=".mkshrc" COLOR=0 +case "$TERM" in + xterm*) COLOR=1;; + *256color) COLOR=1;; +esac export EDITORS="ed vi vim " export PATH="$HOME/bin:$PATH" -UPDATE_URL="https://www.rygel.us/etc/" +UPDATE_URL="https://git.riedstra.us/mitch/dotfiles.git/plain/" 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" @@ -23,33 +27,30 @@ fi set_pager set_editor # requires misc -set_go +# set_go setaliases setsudoaliases + +# checkSSHAgent # Nasty conditional for support of many different shells if + ! [ -z "$KSH_VERSION" ] || [ $SHELL = "/bin/ksh" ] || [ $SHELL = "/bin/mksh" ] || [ $SHELL = "/usr/bin/mksh" ] || - [ $SHELL = "/usr/local/bin/mksh" ] || - ! [ -z "$KSH_VERSION" ] + [ $SHELL = "/usr/local/bin/mksh" ] 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="$ " +elif ! [ -z "$BASH" ] ; then + export PROMPT_COMMAND="set_my_title" fi if [ $COLOR -eq 1 ] ; then |
