Commits (3)
FROM ubuntu
RUN apt-get -y update
RUN apt-get -y install curl git upower
RUN useradd -ms /bin/bash derf
USER derf
WORKDIR /home/derf
ADD bashrc /home/derf/.bashrc
RUN cat .bashrc | bash
Fred Smith's ~/dotfiles directory.
# Fred Smith's ~/dotfiles directory.
Mostly a standard dotfiles directory, with some magic to automatically find home depending on where bashrc is located, as well as automatically setting config files for commands like tmux, vim, screen, etc without having to copy or link them out of ~/dotfiles.
## Installation
curl https://git.smith.bz/derf/dotfiles/raw/master/bashrc | bash
## testing
check out this repo, then do `docker build .` you will be dropped into a bash shell with my dotfiles installed.
......@@ -2,8 +2,9 @@
## VIM
if [ -f $CONFIGDIR/vim/vimrc ]; then
alias vim="vim -u $CONFIGDIR/vim/vimrc"
export EDITOR="vim -u $CONFIGDIR/vim/vimrc"
if [ ! -f $HOME/.vimrc ]; then
ln -s $CONFIGDIR/vim/vimrc $HOME/.vimrc;
if ! which vim &> /dev/null; then
alias vim=vi
......@@ -25,12 +25,17 @@ else if [ -d $HOME/.dotfiles ]; then
export CONFIGDIR="$HOME/.dotfiles";
export CONFIGDIR="$HOME/dotfiles";
git clone https://git.smith.bz/derf/dotfiles $CONFIGDIR
git clone https://git.smith.bz/derf/dotfiles.git $CONFIGDIR
mv ~/.bashrc ~/.bashrc.old
ln -s $CONFIGDIR/bashrc ~/.bashrc
mv ~/.profile ~/.profile.old
ln -s $CONFIGDIR/profile ~/.profile
. ~/.bashrc
if ! [ -d $HOME/bin ]; then
. dotfiles/bash/git
gco https://git.smith.bz/derf/utils.git
ln -s src/git.smith.bz/derf/utils $HOME/bin