Fix bashrc (regarding oh my bash)

This commit is contained in:
Tobias Reisinger 2022-09-13 21:41:48 +02:00
parent 866bbcae20
commit 8e9d15cc24
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 4 additions and 2 deletions

View file

@ -3,11 +3,13 @@ source "$HOME/.config/environment"
if [ ! -f "$OSH/oh-my-bash.sh" ] if [ ! -f "$OSH/oh-my-bash.sh" ]
then then
echo "Installing oh-my-bash (it will load the wrong config on the first launch)" echo "Installing oh-my-bash (it will load the wrong config on the first launch)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" > /dev/null bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" > /dev/null
mv $HOME/.bashrc.pre-oh-my-bash $HOME/.bashrc mv $HOME/.bashrc.* $HOME/.bashrc
exit exit
fi fi
autoinstall-packages
# Set name of the theme to load. Optionally, if you set this to "random" # Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-bash is loaded. # it'll load a random theme each time that oh-my-bash is loaded.
OSH_THEME="brainy" OSH_THEME="brainy"