Skip to content

leandro-lugaresi/dotfiles.fish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

header image

Leandro' dotfiles

Config files for Fish, Go, Editors, Terminals and more.


Detatched fork from caarlos0 dotfiles.fish, thanks for this amazing repository.

Installation

Dependencies

First, make sure you have all the following installed:

  • git: to clone the repository
  • curl: to download files
  • tar: to extract downloaded files
  • fish: the shell
  • sudo: some configurations may need that

Install

Then, run these steps:

git clone https://github.com/leandro-lugaresi/dotfiles.fish.git ~/.dotfiles
cd ~/.dotfiles
./script/bootstrap.fish

All changed files were backed up with a .backup suffix.

Update

To update, you need to git pull and run the bootstrap script again:

cd ~/.dotfiles
git pull origin master
./script/bootstrap.fish

Revert

Reverting is not totally automated, but it pretty much consists in removing the fish configuration and the .dotfiles folder, as well as moving back some other configuration files:

rm -rf ~/.dotfiles $__fish_config_dir

The bootstrap script created a bunch of symbolic links that are now invalid. You will have to investigate those manually. In cases a file already existed, the script/bootstrap.fish script should have created a .backup file with the same name.

Recommended Software

  • Ghostty a fast, cross-platform terminal emulator;
  • bat a cat(1) clone with wings;
  • delta for better git diffs;
  • fd a simple, fast and user-friendly alternative to find;
  • fzf for a fuzzy-finder;
  • gum A tool for glamorous shell scripts;
  • gh for more GitHub integration with the terminal;
  • grc to colorize command's outputs;
  • kubectx for better Kubernetes context and namespaces switch;
  • neovim extensible Vim-based text editor;
  • starship.rs the shell prompt we are using;
  • tms A Tmux sessionizer

To install them all with brew:

brew install \
  bat \
  eza \
  fd \
  fish \
  fzf \
  gh \
  git-delta \
  grc \
  kubectx \
  neovim \
  starship \
  zoxide \
  wezterm \
  ghostty \
  ripgrep \
  gpg2 \
  gnupg \
  pinentry-mac \
  overmind \
  watchexec

On Ubuntu:

sh -c "$(curl -fsSL https://starship.rs/install.sh)"
sudo apt install fish grc fzf zoxide fd-find exa bat alacritty kitty neovim
# TODO: install delta, kubectx

After that, install the tmux-sessionizer:

cargo install tmux-sessionizer

macOS defaults

You use it by running:

~/.dotfiles/macos/set-defaults.sh

And logging out and in again or restart.

Themes and fonts

Catppuccin and IosevkaTerm Font.

The system is set up to automatically switch between dark and light modes based on the current system configuration. Additionally, tools such as Ghostty, Neovim, and Fish include automated checks that adjust their appearance according to the macOS settings.

Screenshots

neovim with LSP, git signs, etc

image

neovim telescope

image

tmux-sessionizer and tmux tabs with icons

image

dark theme and light theme

image image

About

My dotfiles

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published