1
0

restart der bash hinzugefügt

This commit is contained in:
schiwagoa
2024-03-26 22:45:39 +01:00
parent c370dc1c22
commit 4d892bd0cb

View File

@@ -6,22 +6,21 @@
# Autor: Patrick Asmus # Autor: Patrick Asmus
# Web: https://www.media-techport.de # Web: https://www.media-techport.de
# Git-Reposit.: https://git.retronerd.at/schiwagoa/asciinema.git # Git-Reposit.: https://git.retronerd.at/schiwagoa/asciinema.git
# Version: 1.0.2 # Version: 1.0.4
# Datum: 23.03.2024 # Datum: 26.03.2024
# Modifikation: readme angehängt # Modifikation: readme angehängt
##################################################### #####################################################
# asciinema client Installation
# URL zum asciinema-server
ASCIINEMA_API_URL="https://asciinema.retronerd.at" ASCIINEMA_API_URL="https://asciinema.retronerd.at"
# Software installieren # Software installieren
sudo apt update && sudo apt install asciinema -y sudo apt update && sudo apt install asciinema -y
# Überprüfen, ob die Oh-my-ZSH-Konfigurationsdatei '.zshrc' existiert # Eintragung in die bash
if [ -f "/root/.zshrc" ]; then
CONFIG_FILE="/root/.zshrc"
else
CONFIG_FILE="/root/.bashrc" CONFIG_FILE="/root/.bashrc"
fi
# Konfigurationsdatei bearbeiten # Konfigurationsdatei bearbeiten
echo "export ASCIINEMA_API_URL=$ASCIINEMA_API_URL" >> $CONFIG_FILE echo "export ASCIINEMA_API_URL=$ASCIINEMA_API_URL" >> $CONFIG_FILE
@@ -29,6 +28,8 @@ echo "export ASCIINEMA_API_URL=$ASCIINEMA_API_URL" >> $CONFIG_FILE
# Info an Benutzer # Info an Benutzer
echo "----------------------------------------------------" echo "----------------------------------------------------"
echo "Bitte starte das Terminal neu, um die Änderungen zu übernehmen." echo "Bitte starte das Terminal neu, um die Änderungen zu übernehmen."
source ~/.bashrc
echo "Bash neu gestartet und Aenderungen übernommen"
# Weitere Befehle für die Verwendung von asciinema # Weitere Befehle für die Verwendung von asciinema
echo "----------------------------------------------------" echo "----------------------------------------------------"