PortValhalla/scripts/Common/Config/Oh My Posh/install.sh

20 lines
609 B
Bash
Executable file

#!/bin/bash
pushd "${BASH_SOURCE%/*}" > /dev/null;
. "../bash/profile.sh";
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}";
themeDir="/usr/local/share/oh-my-posh/themes";
install -d644 "$themeDir";
cat ~/.mnt/$NEXTCLOUD_DIR/.omp/manuel.omp.json | sudo tee "$themeDir/manuel.omp.json" > /dev/null;
{
echo 'eval "$(oh-my-posh init bash)"';
echo 'eval "$(oh-my-posh completion bash)"';
} | addBashProfile "oh-my-posh" "Oh My Posh!";
{
echo "# Oh My Posh!";
echo "oh-my-posh init fish | source";
echo "oh-my-posh completion fish | source";
} | sudo tee /etc/fish/conf.d/oh-my-posh.fish;
popd > /dev/null;