Add Auto Install Scripts

This commit is contained in:
Snoweuph 2024-11-23 19:30:46 +01:00
parent 71d1b1e979
commit 084b0e3a38
Signed by: snoweuph
GPG key ID: BEFC41DA223CEC55
7 changed files with 34 additions and 9 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 3911d847ee92b8ac17c24b546590dc3f3ca0a4e6

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,8 @@
## Setup
### Fedora
#### Install System Packages
### Install Dependencies
```sh
dnf install -y test
sudo dnf install -y curl wget git make just
```