These are my messy messy dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.4 KiB

echo "Upgrading packages**"
sudo pacman -Syu
echo "**Installing packages: vim, tmux, python3, cmake, stow, fonts-powerline, snapd, etc.**"
sudo pacman -S --no-confirm git curl zsh gvim tmux python python-pip cmake stow lastpass-cli rust
echo "source $HOME/.cargo/env" >> ./zsh/.zshrc
echo "**Installing powerline and tmuxp**"
# pip3 install powerline-status
pip3 install --user tmuxp
echo "**Installing plug.vim**"
curl -fLo ~/.vim/autoload/plug.vim --create-dirs
echo "**Installing diff-so-fancy**"
curl -fsSL -o ~/.local/bin/diff-so-fancy
sudo chmod 755 ~/.local/bin/diff-so-fancy
echo "**Backing up config files**"
[[ -f ~/.zshrc ]] && mv -v ~/.zshrc ~/.zshrc.bak
[[ -f ~/.vimrc ]] && mv -v ~/.vimrc ~/.vimrc.bak
[[ -f ~/.tmux.conf ]] && mv -v ~/.tmux.conf ~/.tmux.conf.bak
[[ -f ~/.git-completion ]] && mv -v ~/.git-completion ~/.git-completion.bak
[[ -f ~/.gitconfig ]] && mv -v ~/.gitconfig ~/.gitconfig.bak
[[ -f ~/.oysttyerrc ]] && mv -v ~/.oysttyerrc ~/.oysttyerrc.bak
[[ -f ~/.oysttyerkey ]] && mv -v ~/.oysttyerkey ~/.oysttyerkey.bak
[[ -f ~/.egrc ]] && mv -v ~/.egrc ~/.egrc.bak
[[ -f /usr/local/bin/consolidate-path ]] && mv -v /usr/local/bin/consolidate-path /usr/local/bin/consolidate-path.bak
echo "**Installing new config files**"
stow -t ~ zsh
stow -t ~ vim
stow -t ~ tmux
stow -t ~ git
stow -t ~ newsboat
stow -t ~ eg
stow -t ~ oysttyer
stow -t /usr/local/bin bin
# echo "**Installing ddgr**"
# pip3 install ddgr
echo "**Installing NVM**"
curl -o- | bash
# echo "**Installing Yarn**"
# curl -sS | sudo apt-key add -
# echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
# sudo apt-get update && sudo apt-get install --no-install-recommends yarn
# echo "**Installing Oh My Zsh**"
# git clone ~/.oh-my-zsh
# echo "**Installing zsh-nvm**"
# git clone ~/.oh-my-zsh/custom/plugins/zsh-nvm
echo "**Switching to zsh**"
chsh -s /bin/zsh
echo "[TODO] **Download and install bat cb eg exa fd newsboat consolidate-path**"
echo "**Please restart the system and run ~/dotfiles/**"