forked from jackcasey/.dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathsetup_all.sh
More file actions
executable file
·29 lines (24 loc) · 794 Bytes
/
setup_all.sh
File metadata and controls
executable file
·29 lines (24 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
pushd $HOME/.dotfiles
source ./functions.sh
source ./check_os.sh
echo System is $OS
echo 'Checking requirements...'
command -v curl >/dev/null 2>&1 || { echo >&2 " Please install curl to run this script."; exit 1; }
command -v vim >/dev/null 2>&1 || { echo >&2 " Please install vim to run this script."; exit 1; }
command -v git >/dev/null 2>&1 || { echo >&2 " Please install git to run this script."; exit 1; }
echo ' OK'
echo 'Linking all symlinks into homedir:'
for file in `find \`pwd\` -iname '*.symlink'`; do
basefile=$(basename $file)
basefile=.${basefile%%.symlink}
homefile=$HOME/$basefile
safelink $file $homefile
done
echo 'Calling all auto setups:'
for i in `find . -maxdepth 2 -iname 'auto_setup.sh'`; do
echo
echo "• ${i:2}"
bash $i
done
popd