1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-11-22 01:37:14 +01:00

install tweaks

This commit is contained in:
Matthias Kretschmann 2016-11-03 22:22:31 +01:00
parent 3aec37074f
commit fc95097724
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
2 changed files with 7 additions and 41 deletions

View File

@ -15,15 +15,9 @@
dir=$DOTFILES_DIR dir=$DOTFILES_DIR
# list of files/folders to symlink in homedir # list of files/folders to symlink in homedir
files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc private tm_properties npmrc bin" files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin"
# ----------------------------------------------------------------------
# change to the dotfiles directory
# ----------------------------------------------------------------------
cd $dir
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# create symlinks from the homedir to any files in the dotfiles directory # create symlinks from the homedir to any files in the dotfiles directory
# specified in $files # specified in $files
@ -51,7 +45,7 @@ echo " Brewing all the things. "
echo "=============================================" echo "============================================="
echo "$(tput sgr0)" # reset echo "$(tput sgr0)" # reset
./brew.sh $dir/brew.sh
echo "$(tput setaf 64)" # green echo "$(tput setaf 64)" # green
echo "---------------------------------------------" echo "---------------------------------------------"
@ -68,7 +62,7 @@ echo " npm all the things. "
echo "=============================================" echo "============================================="
echo "$(tput sgr0)" # reset echo "$(tput sgr0)" # reset
./npm.sh $dir/npm.sh
echo "$(tput setaf 64)" # green echo "$(tput setaf 64)" # green
echo "---------------------------------------------" echo "---------------------------------------------"
@ -85,7 +79,7 @@ echo " Ruby all the things. "
echo "=============================================" echo "============================================="
echo "$(tput sgr0)" # reset echo "$(tput sgr0)" # reset
./ruby.sh $dir/ruby.sh
echo "$(tput setaf 64)" # green echo "$(tput setaf 64)" # green
echo "---------------------------------------------" echo "---------------------------------------------"

View File

@ -15,31 +15,7 @@
dir=$DOTFILES_DIR dir=$DOTFILES_DIR
# list of files/folders to symlink in homedir # list of files/folders to symlink in homedir
files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc private tm_properties npmrc bin" files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc private npmrc bin"
# ----------------------------------------------------------------------
# change to the dotfiles directory
# ----------------------------------------------------------------------
cd $dir
# ----------------------------------------------------------------------
# pull in changes
# ----------------------------------------------------------------------
echo "$(tput setaf 136)"
echo " Getting changes "
echo "============================================="
echo "$(tput sgr0)" # reset
#git pull
echo "$(tput setaf 64)" # green
echo "---------------------------------------------"
echo " ✓ done"
echo "$(tput sgr0)" # reset
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
@ -50,6 +26,7 @@ for file in $files; do
rm ~/.$file rm ~/.$file
done done
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# create symlinks from the homedir to any files in the ~/dotfiles directory # create symlinks from the homedir to any files in the ~/dotfiles directory
# specified in $files # specified in $files
@ -60,14 +37,9 @@ for file in $files; do
echo "$(tput setaf 64)$(tput sgr0) Created symlink to $(tput setaf 37)$file$(tput sgr0)" echo "$(tput setaf 64)$(tput sgr0) Created symlink to $(tput setaf 37)$file$(tput sgr0)"
done done
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# source what we just created # source what we just created
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
source ~/.bash_profile source ~/.bash_profile
echo "$(tput setaf 64)" # green
echo "---------------------------------------------"
echo " ✓ all done"
echo "$(tput sgr0)" # reset