feat: Initial bootstrap scripting
Currently only creating a symbolic link for x* configs
This commit is contained in:
parent
af4234464f
commit
f0098cbd82
4 changed files with 17 additions and 2 deletions
1
.xinitrc
1
.xinitrc
|
@ -1 +0,0 @@
|
|||
/home/ziro/.config/xinitrc
|
|
@ -1 +0,0 @@
|
|||
/home/ziro/.config/xprofile
|
|
@ -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
12
bootstrap
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue