Skip to content

build my setup and workflow in the blink of an eye

Notifications You must be signed in to change notification settings

greg-is-kub/setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup

Build my setup and workflow in the blink of an eye. This whole git is meant to be used also for dockers that have $HOME mounted.

summary

packages that will be installed

contains scripts to automatically install my fav utils

Terminal configuration :

  • Alacritty a good terminal TODO
  • zellij terminal multiplexer like tmux but easy to use
  • starship terminal prompt to make your term look fancy
  • nerd-font fancy font to go with startship NEED TO DO THE TUTORIAL (git clone --depth 1) TODO
  • gdb-dashboard Fancy dashboard for gdb written in python
  • ipdb Better python debugger

CLI-tools :

  • delta enhanced diff that can be used to replace git diff as well
  • thefuck corrects your input errors by suggestion
  • helix code editor
  • gitui git gui allowing line-by-line commits, very efficient, very useful
  • lsd enhanced ls command
  • zoxide enhanced cd command
  • bat enhanced cat command
  • ripgrep enhanced grep command
  • fzf Fuzzy file finder TODO
  • yazi Simple file finder TODO
  • serpl Simple find & replace tool TODO
  • tokei to know how many lines of codes a specific repo contains

LSP

install

pre-requisite

Many packages used here are hosted on cargo, rust's pkg manager. To install cargo you must first install rust :

./install_rust.sh  # will install rust and cargo its pkg manager
echo "source $HOME/.cargo/env" >> ~.bashrc

terminal and multiplexer

Alacritty

# alacritty needed system libraries
apt install cmake pkg-config libfreetype6-dev libfontconfig1-dev libxcb-xfixes0-dev libxkbcommon-dev python3
cargo install alacritty
  • [OPTIONNAL] copy my alacritty .dotfile to your ~/.config/ folder to have my setup instead of the default one
cp ./dotfiles/alacritty/ ~/.config/alacritty

Zellij

cargo install --locked zellij
  • [OPTIONNAL] copy my zellij .dotfile to your ~/.config/ folder to have my setup instead of the default one
cp ./dotfiles/zellij/ ~/.config/zellij

installing the tools

Install scripts are split in 3 for 3 reasons :

  1. You need to install rust to use cargo, its package manager. Installing rust multiple times is useless.
  2. apt-get needs sudo & sudo cargo install won't work properly.
  3. instaling w/ cargo will install in $HOME so if you are in a docker w/ $HOME mounted you don't need to reinstall them. You only need to reinstall the apt pkg.You will only need to add them in your path with .setup_dockerrc that mainly adds stuff to the $PATH and creates aliases.
cd install/
sudo ./install_tools.sh # will install apt pkg
# no need to add cargo to your .bashrc for now this is in the next step
source "$HOME/.cargo/env"
./install_cargo_tools.sh # will install the cargo binaries

! Warning : sccache cargo pkg has apt pkg deps : openssl & pkg config, they are installed in install-tools.sh hence you need to run these commands in this specific order.

setup

Copy .files using stow

Use stow to create symlinks from dotfiles/* to your config files (mostly goes to ~/.config except for gdb) to configure the utils that need it.

apt install stow
cd
stow -d <path/to/this/repo>/dotfiles -t . <pkg_name>

with pkg_name one being one the folders located in ./dotfiles

  1. .append_bashrc contains most of the setup you will need, you just need to append it to your .bashrc
bat append_bashrc >> .bashrc

Helix : code editor

Tutorial to install helix

Note: you can also use my helix config, set it up using stow as just shown above

Zellij plugins

They are voluntarily taken of the repo to keep it lightweight. List of plugins to install :

About

build my setup and workflow in the blink of an eye

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages