Commit 1525da47 by Fred Smith

move dotfiles to src path

parent e9101cf3
......@@ -9,7 +9,8 @@ export XDG_CONFIG_HOME=$CONFIGDIR;
# environment
export TZ=US/Eastern
export FULLNAME="Fred Smith"
export EMAIL="fred.smith@fredsmith.org"
export EMAIL="fred@smith.bz"
export CONFIGDIR="$HOME/src/git.smith.bz/derf/dotfiles";
export PATH=~/bin:/usr/local/bin:/usr/local/sbin:/usr/local/opt/coreutils/libexec/gnubin:$PATH:/sbin:/usr/sbin:$HOME/.rvm/bin
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
......@@ -18,13 +19,8 @@ if ! [[ -t "$fd" || -p /dev/stdin ]]; then
return
fi
#set -x
if [ -d $HOME/dotfiles ]; then
export CONFIGDIR="$HOME/dotfiles";
else if [ -d $HOME/.dotfiles ]; then
export CONFIGDIR="$HOME/.dotfiles";
else
export CONFIGDIR="$HOME/dotfiles";
if [ ! -d $CONFIGDIR ]; then
mkdir -p $CONFIGDIR
git clone https://git.smith.bz/derf/dotfiles.git $CONFIGDIR
mv ~/.bashrc ~/.bashrc.old
ln -s $CONFIGDIR/bashrc ~/.bashrc
......@@ -32,12 +28,11 @@ else if [ -d $HOME/.dotfiles ]; then
ln -s $CONFIGDIR/profile ~/.profile
. ~/.bashrc
if ! [ -d $HOME/bin ]; then
. dotfiles/bash/git
. $CONFIGDIR/bash/git
gco https://git.smith.bz/derf/utils.git
ln -s src/git.smith.bz/derf/utils $HOME/bin
fi
fi
fi
# source system profile scripts
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment