Finish install and add install-vim

This commit is contained in:
2019-10-18 10:56:25 +01:00
parent d089197c16
commit 40a8098710
2 changed files with 37 additions and 9 deletions

16
install
View File

@@ -13,13 +13,10 @@ BASE=$(pwd)
mkdir -pv bak
for rc in *rc *profile tmux.conf bashrc.d ; do
if [ ! -r $rc ] ; then
echo "$rc not present, skipping."
continue
fi
[ $(realpath ~/."$rc") == $BASE/$rc ]
if [ $? -eq 0 ] ; then
echo $rc already linked
else
if [ $? -ne 0 ] ; then
[ -e ~/."$rc" ] && mv -v ~/."$rc" bak/."$rc"
ln -sfv "$BASE/$rc" ~/."$rc"
fi
@@ -35,9 +32,7 @@ mkdir -p ~/bin
for bin in $BASE/bin/*; do
BIN_NAME=$(basename $bin)
[ $(realpath ~/bin/$BIN_NAME) == $bin ]
if [ $? -eq 0 ] ; then
echo $BIN_NAME already linked
else
if [ $? -ne 0 ] ; then
ln -svf "$bin" ~/bin
fi
done
@@ -78,6 +73,9 @@ git config --global user.name "Paul Walker"
# git config --global commit.gpgsign true
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
tmux source-file ~/.tmux.conf
if [ "$TMUX" != "" ] ; then
# If we're currently in tmux, source the new file.
tmux source-file ~/.tmux.conf
fi
# ./install-vim
./install-vim