-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·49 lines (42 loc) · 1.09 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
#!/bin/bash
function osx() {
# Check for Homebrew install,
# install if not found
if test ! $(which brew); then
echo "Installing homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
# Install dotfile dependencies and other userful things
brew update
brew tap iveney/mocha # has realpath
brew install realpath
brew install neovim
brew install tmux
brew install fish
brew install lazygit
brew install node
brew install nvm
brew install jandedobbeleer/oh-my-posh/oh-my-posh
brew install fd
brew install fzf
brew install ripgrep
# Fish
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
}
function doIt() {
mkdir -p ~/.config
mkdir -p ~/.nvm
touch ~/.secrets
for SOURCE in nvim fish; do
ln -hfis "$(realpath $SOURCE)" ~/.config
done
ln -hfis "$(realpath tmux/.tmux)" ~
ln -hfis "$(realpath tmux/.tmux.conf)" ~
unset SOURCE
}
if [[ "$OSTYPE" == "darwin"* ]]; then
osx
fi
doIt
unset doIt
unset osx