Skip to content

cristianradulescu/dotfiles

Repository files navigation

My dotfile setup

Target OS: Ubuntu

Setup

ZSH + base:

sudo apt install -y \
  zsh zsh-syntax-highlighting zsh-autosuggestions autojump \
  git \
  curl \
  mc ranger \
  vim \
  tmux \
  xclip \
  fzf \
  ripgrep \
  fd-find \
  tree \
  sqlite3 libsqlite3-dev \
  php-cli composer \
  cmake gettext g++\
  python3-neovim

chsh -s /bin/zsh

More recent version for NodeJS

curl -fsSL https://deb.nodesource.com/setup_21.x | sudo -E bash - &&\
sudo apt install -y nodejs
sudo npm install -g neovim

Dotfiles repo:

git clone https://github.com/cristianradulescu/dotfiles

Fonts

# mkdir -p ~/.local/share/fonts 

curl -L https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/JetBrainsMono/Ligatures/Regular/JetBrainsMonoNerdFont-Regular.ttf -o ~/.local/share/fonts/JetBrainsMonoNerdFont-Regular.ttf

curl -L https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/~Hack/Regular/HackNerdFont-Regular.ttf -o ~/.local/share/fonts/HackNerdFont-Regular.ttf

fc-cache -rfv

OhMyZsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

ln -s ~/dotfiles/.zshrc ~/.zshrc

TMUX Install plugin manager

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

~/.tmux/plugins/tpm/bin/install_plugins

ln -s ~/dotfiles/.tmux.conf .tmux.conf

Neovim

NEOVIM_VERSION=$(curl -s "https://api.github.com/repos/neovim/neovim/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo nvim-linux64.tar.gz "https://github.com/neovim/neovim/releases/download/v${NEOVIM_VERSION}/nvim-linux64.tar.gz"
tar xf nvim-linux64.tar.gz
sudo ln -s ~/nvim-linux64/bin/nvim /usr/local/bin
rm -rf nvim-linux64.tar.gz

Neovim nightly

curl -Lo nvim-linux64.tar.gz "https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz"
tar xf nvim-linux64.tar.gz
sudo rm /usr/local/bin/nvim
sudo ln -s ~/nvim-linux64/bin/nvim /usr/local/bin
rm -rf nvim-linux64.tar.gz

LazyVim

ln -s ~/dotfiles/.config/nvim-lazyvim ~/.config/nvim

Kickstarter-based Nvim

ln -s ~/dotfiles/.config/nvim ~/.config/nvim

LazyGit

LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit /usr/local/bin
rm -rf lazygit lazygit.tar.gz