Install oh-my-posh only if necessary
This commit is contained in:
parent
97e5b6a33c
commit
b772868f73
1 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo 'eval "$(oh-my-posh init bash --config ~/.omp/manuel.omp.json)"' \
|
if ! grep "\boh-my-posh\b" ~/.bashrc
|
||||||
| tee -a ~/.bashrc;
|
then
|
||||||
|
{
|
||||||
|
echo "";
|
||||||
|
echo "# Oh My Posh!";
|
||||||
|
echo 'eval "$(oh-my-posh init bash --config ~/.omp/manuel.omp.json)"'
|
||||||
|
} | tee -a ~/.bashrc;
|
||||||
|
fi;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue