-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathsetup_all.sh
More file actions
executable file
·33 lines (27 loc) · 1018 Bytes
/
setup_all.sh
File metadata and controls
executable file
·33 lines (27 loc) · 1018 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
30
31
32
33
#!/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
echo 'QMK for flashing keyboards: IE idobo 75'
echo 'setup QMK and set default keyboard to idobo and keymap to jackcasey'
echo 'then symlink ./keyboards/idobo/keymaps/jackcasey into ~/projects/qmk_firmware/keyboards/idobo/
popd