Add Auto Install Scripts

This commit is contained in:
Snoweuph 2024-11-23 19:30:46 +01:00
parent 71d1b1e979
commit 275145e822
Signed by: Snoweuph
GPG key ID: BEFC41DA223CEC55
7 changed files with 51 additions and 8 deletions

5
.config/.gitignore vendored
View file

@ -1,7 +1,10 @@
# Ignore Everything By Default
/*
#Unignore Ignore
# Install Script
!install.sh
# Unignore Ignore
!.gitignore
# Oh My Bash

3
.config/glow/install.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
command -v glow &>/dev/null || go install github.com/charmbracelet/glow@latest

9
.config/install.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/sh
$HOME/.config/nvim/install.sh
$HOME/.config/glow/install.sh
$HOME/.config/systemd/install.sh
# Git
command -v delta &>/dev/null || sudo dnf install -y git-delta
command -v git-graph &>/dev/null || cargo install git-graph

@ -1 +1 @@
Subproject commit 5fc2baefbe0ff240406b33ec9828dd4da29510af
Subproject commit 61d0f5cf4cbd89f5c3676f72e2a3bd31b85880cd

3
.config/systemd/install.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
command -v ra-multiplex &>/dev/null || cargo install ra-multiplex

15
.zshrc
View file

@ -64,7 +64,7 @@ export npm_config_log="$HOME/.local/share/npm/logs"
# Volta
export VOLTA_HOME="$HOME/.local/share/volta"
[ ! -d $VOLTA_HOME ] && curl https://get.volta.sh | bash -s -- --skip-setup
[ ! -d $VOLTA_HOME ] && curl https://get.volta.sh | bash -s -- --skip-setup && volta install node@lts
# Go
export GOPATH=~/.local/share/go
@ -76,6 +76,7 @@ export RUSTUP_HOME=$HOME/.local/share/rustup
zinit snippet OMZP::rust
# Php
export COMPOSER_HOME=$HOME/.local/share/composer
zinit snippet OMZP::composer
zinit snippet OMZP::symfony6
@ -86,13 +87,21 @@ export HSA_OVERRIDE_GFX_VERSION=10.3.0 # RX 6650 XT
export JUST_UNSTABLE=1
# PATH
export PATH=$PATH:$VOLTA_HOME/bin:$GOBIN:$CARGO_HOME/bin
export PATH=$PATH:$VOLTA_HOME/bin:$GOBIN:$CARGO_HOME/bin:$COMPOSER_HOME/vendor/bin
# Install Dependencies
command -v go &>/dev/null || sudo dnf install go
[ ! -d $RUSTUP_HOME ] && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path -y
command -v composer &>/dev/null || sudo dnf install composer
# Install Scripts
$HOME/.config/install.sh
# Aliases
#########################################################
alias edit-nvim-conf="nvim ~/.config/nvim"
alias edit-zsh-conf="nvim ~/.zshrc"
alias todo="nvim ~/Dokumente/Notes/Todo.md"
alias hist="eval \$(cat $HISTFILE | fzf)"
alias nano="nvim"
alias neofetch="fastfetch"

View file

@ -7,10 +7,26 @@
## Setup
### Fedora
### Install Dependencies
#### Install System Packages
> [NOTE]
> Parts of the Dotfiles automatic Dependency resolution relies on **dnf** the Fedora package Manager.
> This is why only **dnf** is listed here.
```sh
dnf install -y test
sudo dnf install -y curl wget tar unzip gzip git make just fzf
```
### Install
> [CAUTION]
> This is a **destructive installation** and will **overwrite** existing conflicting files.
```sh
cd ~ && \
git init -b neo && \
git remote add origin https://git.euph.dev/Snoweuph/Dotfiles.git && \
git fetch --all && \
git reset --hard origin/neo && \
git submodule update --init --recursive
```