summaryrefslogblamecommitdiff
path: root/install
blob: 86167d21c5fd4f35e4184243d14c7ed94a9228e3 (plain) (tree)























                                                                                                            
#!/bin/bash
# run this script as ./install as we set its working dir from $BASH_SOURCE
cd $(dirname $BASH_SOURCE)

# the path of the working dir
BASE=$(pwd)

# dotfiles to install
for dotfile in bashrc vimrc; do
  mkdir -pv bak  
  [ -e ~/.$dotfile ] && mv -v ~/.$dotfile bak/.$dotfile
  ln -sfv $BASE/$dotfile ~/.$dotfile
done

# git-prompt
if [ ! -e ~/.git-prompt.sh ]; then
  curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh
fi

# scripts
mkdir -pv ~/bin
for bin in $BASE/bin/*; do
  ln -svf $bin ~/bin
done

Contact - Imprint