Skip to content

joseph-pq/dotfiles

Repository files navigation

Joseph's Dotfiles

Getting Started

Prerequisites

Execute this command in order to execute dependencies:

sudo apt update
sudo apt install -y tmux git curl zsh zsh-syntax-highlighting xclip ripgrep libfuse2

Initialize git for Dotfiles following the procedure from Atlassian:

git init --bare $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.bashrc

Then link the Dotfiles git to this repository:

source ~/.bashrc
config remote  add origin https://github.com/JosephPenaQuino/dotfiles.git
config checkout master
config branch --set-upstream-to=origin/master master
config pull

Directory structure

Execute the commands below:

mkdir -p ~/programs
mkdir -p ~/projects

Installing Packages

NVM

https://github.com/nvm-sh/nvm?tab=readme-ov-file#git-install

Then check in https://nodejs.org/en and install the latest version

nvm install vX.Y.Z

Neovim

Based on Neovim's repository:

cd ~/programs
wget https://github.com/neovim/neovim/releases/download/v0.10.0/nvim.appimage
chmod u+x nvim.appimage
sudo ln -s $HOME/programs/nvim.appimage /usr/local/bin/nvim
sudo ln -s $HOME/programs/nvim.appimage /usr/local/bin/v

Based on packer's repository

git clone --depth 1 https://github.com/wbthomason/packer.nvim\
 ~/.local/share/nvim/site/pack/packer/start/packer.nvim

Then, open Neovim and run:

:PackerInstall

Finally, restart Neovim.

Alacritty

Follow the steps to install Alacritty from repository, but clone the repository in ~/programs

config submodule update --init --remote
# set as default
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/local/bin/alacritty 50
sudo update-alternatives --config x-terminal-emulator

PYENV

Follow the steps to install PYENV from repository

sudo apt install -y python3-notcurses libffi-dev libreadline-dev libssl-dev libsqlite3-dev python3-tk tk-dev lzma liblzma-dev libbz2-dev

pyenv install 3.12
pyenv global 3.12

Poetry

From Poetry's documentation:

curl -sSL https://install.python-poetry.org | python -

Oh-my-zsh

Follow the steps to install oh-my-zsh from repository

TMUX

This section is based on the TMUX plugin manager repository. Go to the TMUX file:

v ~/.tmux.conf

Execute to install the plugins.

Fuzzy finder

In order to use the zsh fuzzy finder, you must clone their repository. Remember, install fzf from the repository instead of using the apt source. the repository version is higher than the apt source.

Latex

Install Perl and full-texlive

sudo apt install -y perl texlive-full
cargo install tree-sitter-cli # for nvim-treesitter with vimtex

Then, follow latexmk's repository to install it.

Vale

From Vale's documentation:

sudo snap install vale