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

23 lines
650 B
Bash
Raw Normal View History

#!/bin/bash
2024-03-20 20:24:10 +00:00
pushd "${BASH_SOURCE%/*}" > /dev/null;
. "../bash/profile.sh";
. "../fish/profile.sh";
NEXTCLOUD_DIR="${NEXTCLOUD_DIR}";
2024-03-20 14:18:39 +00:00
themeDir="/usr/local/share/oh-my-posh/themes";
sudo install -dm755 "$themeDir";
2024-03-20 14:18:39 +00:00
cat ~/.mnt/$NEXTCLOUD_DIR/.omp/manuel.omp.json | sudo tee "$themeDir/manuel.omp.json" > /dev/null;
2024-03-20 20:24:10 +00:00
{
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 init fish | source";
echo "oh-my-posh completion fish | source";
} | addFishProfile "oh-my-posh" "Oh My Posh!";
2024-03-20 20:24:10 +00:00
2024-03-25 17:02:16 +00:00
sudo pwsh -NoProfile ./install.ps1;
2024-03-20 20:36:52 +00:00
2024-03-20 20:24:10 +00:00
popd > /dev/null;