-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.sh
executable file
·52 lines (40 loc) · 1.26 KB
/
install.sh
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
46
47
48
49
50
51
52
#!/usr/bin/env sh
echo "Installing dotfiles"
echo "Initializing submodule(s)"
# git submodule update --init --recursive
source install/link.sh
if [ "$(uname)" == "Darwin" ]; then
echo "\n\nRunning on OSX"
source install/brew.sh
source install/osx.sh
# fix xterm problem -> <C-h> binding issue
# https://github.com/neovim/neovim/wiki/FAQ#my-ctrl-h-mapping-doesnt-work
echo "\nfixing xterm <C-h> binding issue"
echo "---------------------------------"
TERMINFO_DIR=~/.terminfo
mkdir -p $TERMINFO_DIR
cd $TERMINFO_DIR
infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
tic $TERM.ti
cd -
fi
if uname -a |grep -E "(arch|manjaro)" > /dev/null; then
echo "\n\nRunning on Arch Linux"
source install/pacman.sh
fi
source install/composer.sh
source install/pecl.sh
source install/npm.sh
source install/pip.sh
source install/shell.sh
echo "creating vim directories"
mkdir -p ~/.vim-tmp
# install spacemacs
EMACS_CONFIG_DIR=$HOME/.emacs.d
if ! ls $EMACS_CONFIG_DIR >/dev/null 2>/dev/null; then
echo "no emacs config found - install spacemacs"
git clone https://github.com/syl20bnr/spacemacs $EMACS_CONFIG_DIR
fi
# echo "Configuring zsh as default shell"
chsh -s $(which zsh)
echo "Done."