-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall
executable file
·45 lines (37 loc) · 855 Bytes
/
install
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
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/env bash
WORKING_DIR="$HOME/dotfiles"
cd "$WORKING_DIR"
DOTFILES="alacritty.yml \
zshrc \
zshenv \
zlogin \
bashrc \
tmux.conf \
vim \
vimrc \
config/nvim/init.vim \
config/lambda-term-inputrc \
gitconfig \
cvsignore \
psqlrc \
sqliterc \
irbrc \
gemrc"
echo "Symlinking:"
mkdir -p config/nvim 2>/dev/null
for file in $DOTFILES; do
ln -snf "$WORKING_DIR/$file" "$SRC/.$file"
echo " * $file"
done
echo "Use ctrl-w and ctrl-u everywhere on macOS"
KEY_BINDINGS="$HOME/Library/KeyBindings"
[ ! -d "$KEY_BINDINGS" ] && mkdir "$KEY_BINDINGS" && \
cp "$WORKING_DIR/macos_DefaultKeyBinding.dict" "$KEY_BINDINGS/DefaultKeyBinding.dict"
if command -v brew > /dev/null && [ -f "$WORKING_DIR/Brewfile" ]; then
brew bundle
else
cat <<MSG
Homebrew is not installed. Install then run:
$ brew bundle
MSG
fi