-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
30 lines (23 loc) · 904 Bytes
/
justfile
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
os := `cat /etc/os-release | grep "^NAME=" | cut -d "=" -f2 | tr -d '"'`
default:
just --list
install-deps:
#!/bin/bash
if [ "{{os}}" = "Debian GNU/Linux" ] || [ "{{os}}" = "Ubuntu" ]; then
sudo apt-get install build-essential curl tar git ripgrep stow xclip fd-find
if ! type brew; then /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"; fi
brew install luarocks neovim gh lazygit
elif [ "{{os}}" = "Arch Linux" ]; then
sudo pacman -S base-devel curl tar git ripgrep stow luarocks neovim github-cli xclip lazygit fd
fi
install: install-deps config config-gh
config:
mkdir -p {{home_dir()}}/.config/nvim
stow -t {{home_dir()}}/.config/nvim .
[confirm]
config-gh:
if [[ ! $(gh auth status) ]]; then gh auth login; fi
unset-config:
stow -D -t {{home_dir()}}/.config/nvim .
clean-lazy:
rm -rf ~/.local/share/nvim/lazy