feat: Initial bootstrap scripting

Currently only creating a symbolic link for x* configs
This commit is contained in:
Ahmad Ansori Palembani 2024-05-20 09:38:35 +07:00
parent af4234464f
commit f0098cbd82
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
4 changed files with 17 additions and 2 deletions

View file

@ -1 +0,0 @@
/home/ziro/.config/xinitrc

View file

@ -1 +0,0 @@
/home/ziro/.config/xprofile

View file

@ -31,8 +31,13 @@ My Setup:
> [!WARNING]
> This section is still WIP!
> [!TIP]
> It's recommended to [configure zsh to follow XDG directory specs](#zsh-setup) before proceeding.
First time setup only: run `./pre-bootstrap` then follow the instruction. (Or run `./pre-bootstrap - > ~/.config/zsh/include/dotfiles`)
Then run `./bootstrap`.
## Recommended Project/Software
- TBSM
- Fonts

12
bootstrap Executable file
View file

@ -0,0 +1,12 @@
#!/bin/zsh
[ $ZI_DOTFILES ] || { >&2 echo "Please run pre-bootstrap first!"; exit 1; }
[ -d $ZI_DOTFILES ] || { >&2 echo "Invalid dotfiles path, please re-run pre-bootstrap!"; exit 1; }
link_x_configs() {
ln -si $ZI_DOTFILES/.config/xinitrc $HOME/.xinitrc
ln -si $ZI_DOTFILES/.config/xprofile $HOME/.xprofile
}
link_x_configs