Last active
April 15, 2022 17:15
-
-
Save manojuppala/15ff7820315549bf1baac787f5f63777 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ "$1" == "neovim" || "$1" == "all" ]]; then | |
# install neovim | |
sudo add-apt-repository ppa:neovim-ppa/unstable | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 55F96FCF8231B6DD | |
sudo apt update | |
sudo apt install neovim | |
elif [[ "$1" == "apps" || "$1" == "all" ]]; then | |
# install applications | |
sudo apt install imagemagick figlet scrot youtube-dl cheese kitty mutt ranger rofi redshift | |
elif [[ "$1" == "grub" || "$1" == "all" ]]; then | |
sudo apt install --reinstall -o Dpkg::Options::="--force-confmiss" grub2-theme-mint | |
elif [[ "$1" == "dotfiles" || "$1" == "all" ]]; then | |
# install dotfiles | |
# git clone https://github.com/manojuppala/dotfiles.git | |
echo "installing dotfiles" | |
fi | |
#DOTFILES=`ls -a old-dotfiles` | |
#for FILE in $DOTFILES; do | |
# if [ $FILE != .git ] || [ $FILE != . ] || [ $FILE != .. ]; then | |
# if [ $FILE = .config ]; then | |
# for CONFIG in `ls -a old-dotfiles/$FILE`; do | |
# if [ -f ~/.config/$CONFIG ]; then | |
# rm -rf ~/.config/$CONFIG | |
# fi | |
# mv old-dotfiles/.config/$CONFIG ~/.config | |
# done | |
# else | |
# if [ -f ~/$FILE ]; then | |
# cp old-dotfiles/$FILE ~/$FILE; | |
# else | |
# mv old-dotfiles/$FILE ~/ | |
# fi | |
# fi | |
# fi | |
#done | |
#mkdir dotfiles && cd dotfiles | |
#git init --bare | |
# add conf alias to bashrc | |
#conf config --local status.showUntrackedFiles no | |
#conf remote add origin git@github.com:manojuppala/dotfiles.git | |
#conf pull origin main --allow-unrelated-histories | |
#conf push --set-upstream origin main | |
#conf push --set-upstream origin main -f #ignore merge conflicts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment