-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
33 lines (27 loc) · 839 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
31
32
33
## Justfile
## Author: refcell <https://github.com/refcell>
## Defines helper targets for managing local neovim configuration
# List available targets
default:
@just --list
# Backup the current neovim config and install austere
backup-and-install: nvim-backup nvim
# Restores the previous neovim config backup if it exists
restore-backup:
if [ -d ~/.config/nvim.bak ]; then \
just nvim-restore; \
else \
echo "No backup found"; \
fi
# Removes the current neovim config and restores the neovim backup
nvim-restore:
rm -rf ~/.config/nvim
cp -R ~/.config/nvim.bak ~/.config/nvim
# Removes the current neovim config and installs the austere config
nvim:
rm -rf ~/.config/nvim
cp -R ./ ~/.config
# Backup the current neovim config
nvim-backup:
rm -rf ~/.config/nvim.bak
cp -R ~/.config/nvim ~/.config/nvim.bak