sudo cp ../../sesh /usr/bin
cp ../tmux/tmux.conf ~/.tmux.conf

sudo dnf install zig -y
sudo dnf install neovim -y
sudo dnf install curl git -y
sudo dnf install npm -y
sudo dnf install go -y
sudo dnf install ripgrep -y
sudo dnf install zlib -y
sudo dnf install zlib-devel -y
sudo dnf install ruby -y
sudo dnf install ruby-devel -y
sudo dnf install postgresql-devel -y
sudo dnf install gh -y

sudo dnf copr enable atim/lazygit -y
sudo dnf install lazygit -y
sudo dnf install alacritty -y
sudo dnf install tmux -y

sh ./add-openai-token.sh
sudo flatpak install org.wezfurlong.wezterm -y

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
dnf check-update
sudo dnf install code -y

sudo dnf copr enable zawertun/hack-fonts -y
sudo dnf install hack-fonts -y

# asdf
sudo dnf groupinstall "Development Tools"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >>/home/carlos/.bashrc
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >>~/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew install gcc

# asdf -depends on brew-
brew install asdf
echo -e "\n. \"$(brew --prefix asdf)/libexec/asdf.sh\"" >>~/.bashrc
echo -e "\n. \"$(brew --prefix asdf)/etc/bash_completion.d/asdf.bash\"" >>~/.bashrc

asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git

# Docker
sudo dnf -y install dnf-plugins-core
sudo dnf-3 config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y
sudo systemctl start docker

sudo npm i -g @railway/cli
sudo npm i -g vercel
sudo npm i -g vercel@latest

cd ~/.config/

git config --global user.email "noisycarlos@hey.com"
git config --global user.name "Carlos Aldana"

git clone https://git.noisyserver.sbs/noisycarlos/nvim
git clone https://git.noisyserver.sbs/noisycarlos/wezterm

sudo rm -r lazygit
git clone https://git.noisyserver.sbs/noisycarlos/lazygit

#git clone https://git.noisyserver.sbs/tmux-plugins/tpm ~/.tmux/plugins/tpm
#git clone https://git.noisyserver.sbs/noisycarlos/kitty
