Split oh-my-posh
installation commands
This commit is contained in:
parent
ecc0370321
commit
c66f5c6175
5 changed files with 11 additions and 9 deletions
5
scripts/Common/Config/Oh My Posh/install.sh
Executable file
5
scripts/Common/Config/Oh My Posh/install.sh
Executable 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;
|
|
@ -19,7 +19,8 @@ cloudRoot="$configRoot/rclone";
|
||||||
source "../Fonts/NerdFont/install.sh";
|
source "../Fonts/NerdFont/install.sh";
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
source "../../Software/Oh My Posh/install.sh";
|
source "../bash/oh-my-posh.sh";
|
||||||
|
source "../Oh My Posh/install.sh";
|
||||||
popd > /dev/null;
|
popd > /dev/null;
|
||||||
} &
|
} &
|
||||||
|
|
||||||
|
|
3
scripts/Common/Config/bash/oh-my-posh.sh
Executable file
3
scripts/Common/Config/bash/oh-my-posh.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
echo 'eval "$(oh-my-posh init bash --config ~/.omp/manuel.omp.json)"' \
|
||||||
|
| tee -a ~/.bashrc;
|
|
@ -15,12 +15,4 @@ else
|
||||||
|
|
||||||
popd > /dev/null;
|
popd > /dev/null;
|
||||||
rm -rf "$contextRoot";
|
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
|
fi
|
||||||
|
|
|
@ -15,6 +15,7 @@ EXTENSION_POLICY_DIR=/opt/brave.com/brave/extensions \
|
||||||
source "../../Debian/Software/Google Chrome/install.sh";
|
source "../../Debian/Software/Google Chrome/install.sh";
|
||||||
|
|
||||||
# Install further software
|
# Install further software
|
||||||
|
source "../../Common/Software/Oh My Posh/install.sh";
|
||||||
source "../../Debian/Software/git/install.sh";
|
source "../../Debian/Software/git/install.sh";
|
||||||
source "../../Debian/Software/logo-ls/install.sh";
|
source "../../Debian/Software/logo-ls/install.sh";
|
||||||
source "../../Debian/Software/VSCodium/install.sh";
|
source "../../Debian/Software/VSCodium/install.sh";
|
||||||
|
|
Loading…
Reference in a new issue