aboutsummaryrefslogtreecommitdiff
path: root/shell/conf
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-10-15 20:56:41 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-10-15 20:56:41 -0400
commiteefbd029b55b2782b0d7b11b4989ce0ca9b256cd (patch)
tree535511fd3154342117d67171e28a312bd30c7f87 /shell/conf
parent5840f413825e053b645a338d71c1916a06094335 (diff)
downloaddotfiles-eefbd029b55b2782b0d7b11b4989ce0ca9b256cd.tar.gz
dotfiles-eefbd029b55b2782b0d7b11b4989ce0ca9b256cd.tar.xz
Massive organization of my dotfiles
Diffstat (limited to 'shell/conf')
-rw-r--r--shell/conf23
1 files changed, 12 insertions, 11 deletions
diff --git a/shell/conf b/shell/conf
index 8ea9d27..efd8710 100644
--- a/shell/conf
+++ b/shell/conf
@@ -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