-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·67 lines (53 loc) · 1.46 KB
/
setup.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/usr/bin/env bash
set -x
if [ ! -d ~/.config ]; then
mkdir ~/.config
fi
cd ~/.dotfiles
# make sure .vim submodules are installed
cd ~/.dotfiles/.vim
git submodule init
git submodule update --init --recursive
# TODO: Add YouCompleteMe back in when
# the distros get a newer version of vim
# https://github.com/Valloric/YouCompleteMe
#
# Need to build and install YouCompleteMe
# need cmake and gcc-c++
# sudo zypper in cmake gcc-c++ python-devel
#cd bundle/YouCompleteMe
#./install.py
#cd $oldpwd
# use this to setup the basic shell and pull what is needed
if [ ! -d ~/.oh-my-zsh ]; then
git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
else
cd ~/.oh-my-zsh
git submodule update --init --recursive
fi
# install starship prompt
tmp=`pwd`
cd /tmp && \
wget https://starship.rs/install.sh && \
chmod +x install.sh && \
./install.sh -y && \
rm install.sh && \
cd $tmp
# try and setup fish
cd ~/.dotfiles
source setup_zsh.sh
source setup_fish.sh
source setup_xonsh.sh
#iszsh=`command -v zsh | wc -l`
# only set to zsh if it exists
#if [ $iszsh -eq 1 ]; then
# chsh -s $(which zsh)
#fi
# Install the vim setup
curl -L https://raw.githubusercontent.com/hemna/spf13-vim/walt/bootstrap.sh | bash
cd ~/.dotfiles
./link.sh
# now install the iterm2 integration
curl -L https://iterm2.com/misc/install_shell_integration.sh | bash
# Install notes
curl -L https://raw.githubusercontent.com/pimterry/notes/latest-release/install.sh | bash