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
# Web: https://www.media-techport.de
# Git-Reposit.: https://git.retronerd.at/schiwagoa/asciinema.git
# Version: 1.0.2
# Datum: 23.03.2024
# Version: 1.0.4
# Datum: 26.03.2024
# Modifikation: readme angehängt
#####################################################
# asciinema client Installation
# URL zum asciinema-server
ASCIINEMA_API_URL="https://asciinema.retronerd.at"
# Software installieren
sudo apt update && sudo apt install asciinema -y
# Überprüfen, ob die Oh-my-ZSH-Konfigurationsdatei '.zshrc' existiert
if [ -f "/root/.zshrc" ]; then
CONFIG_FILE="/root/.zshrc"
else
CONFIG_FILE="/root/.bashrc"
fi
# Eintragung in die bash
CONFIG_FILE="/root/.bashrc"
# Konfigurationsdatei bearbeiten
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
echo "----------------------------------------------------"
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
echo "----------------------------------------------------"