Split oh-my-posh installation commands

This commit is contained in:
Manuel Thalmann 2023-04-02 04:00:32 +02:00
parent ac4e58def3
commit 08f4753eb9
5 changed files with 11 additions and 9 deletions

View file

@ -0,0 +1,5 @@
#!/bin/bash
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}";
mkdir -p ~/.omp;
cp ~/$NEXTCLOUD_DIR/.omp/manuel.omp.json ~/.omp/manuel.omp.json;

View file

@ -19,7 +19,8 @@ cloudRoot="$configRoot/rclone";
source "../Fonts/NerdFont/install.sh";
fi;
source "../../Software/Oh My Posh/install.sh";
source "../bash/oh-my-posh.sh";
source "../Oh My Posh/install.sh";
popd > /dev/null;
} &

View file

@ -0,0 +1,3 @@
#!/bin/bash
echo 'eval "$(oh-my-posh init bash --config ~/.omp/manuel.omp.json)"' \
| tee -a ~/.bashrc;

View file

@ -15,12 +15,4 @@ else
popd > /dev/null;
rm -rf "$contextRoot";
homeDir="$(sudo -u "$1" bash -c 'realpath ~')";
sudo -u "$1" mkdir -p "$homeDir/.omp";
sudo -u "$1" cp "$homeDir/$NEXTCLOUD_DIR/.omp/manuel.omp.json" "$homeDir/.omp/manuel.omp.json";
echo 'eval "$(oh-my-posh init bash --config ~/.omp/manuel.omp.json)"' \
| sudo -u "$1" tee -a "$homeDir/.bashrc";
fi

View file

@ -15,6 +15,7 @@ EXTENSION_POLICY_DIR=/opt/brave.com/brave/extensions \
source "../../Debian/Software/Google Chrome/install.sh";
# Install further software
source "../../Common/Software/Oh My Posh/install.sh";
source "../../Debian/Software/git/install.sh";
source "../../Debian/Software/logo-ls/install.sh";
source "../../Debian/Software/VSCodium/install.sh";