-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
executable file
·72 lines (53 loc) · 2.02 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/bash
if [ -z "$USER" ]; then
USER=$(id -un)
fi
echo >&2 "====================================================================="
echo >&2 " Setting up codespaces environment (linux based)"
echo >&2 ""
echo >&2 " USER $USER"
echo >&2 " HOME $HOME"
echo >&2 "====================================================================="
cd "$HOME" || exit
# Make passwordless sudo work
export SUDO_ASKPASS=/bin/true
# No thank you
rm -rf .oh-my-bash
rm -rf .oh-my-zsh
rm .zshrc
# Install fzf
FZF_VERSION=0.30.0
curl -L https://github.com/junegunn/fzf/releases/download/"${FZF_VERSION}"/fzf-"${FZF_VERSION}"-linux_amd64.tar.gz | tar xzC "$HOME"/bin
# Install neovim
NVIM_VERSION=0.7.0
sudo apt-get install -y libfuse2
curl -L -o "$HOME"/bin/nvim https://github.com/neovim/neovim/releases/download/v"${NVIM_VERSION}"/nvim.appimage
chmod a+x "$HOME"/bin/nvim
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# - Run these two commands in your terminal to add Homebrew to your PATH:
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >>/home/codespace/.profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# - Install Homebrew's dependencies if you have sudo access:
sudo apt-get install build-essential
# - We recommend that you install GCC:
brew install gcc
brew install stow
stow base16-shell -t "$HOME"
stow fish -t "$HOME"
stow gh -t "$HOME"
stow git -t "$HOME"
git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 && nvim
ln -s "$HOME"/working/src/github.com/carlisia/dotfiles/nvim/lua/custom/ ~/.config/nvim/lua/
bash <(curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/master/utils/installer/install.sh)
stow lvim -t "$HOME"
stow starfish -t "$HOME"
# for nvim, need to install:
brew install luarocks
luarocks install luacheck
luarocks install lanes
npm install -g @fsouza/prettierd
# the language servers
brew install lua-language-server
npm i -g bash-language-server
go install mvdan.cc/sh/v3/cmd/shfmt@latest
npm i @johnnymorganz/stylua