restart der bash hinzugefügt
This commit is contained in:
@@ -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
|
||||
# Eintragung in die bash
|
||||
CONFIG_FILE="/root/.bashrc"
|
||||
fi
|
||||
|
||||
# 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 "----------------------------------------------------"
|
||||
|
||||
Reference in New Issue
Block a user