Code Monkey home page Code Monkey logo

dotfiles's Introduction

My personal configs

This is mine, it probably doesn't fit your desires :-)

Required packages

Arch

on Arch, simply run:

yay -S bat chezmoi eza fd fish fzf git go gojq jaq jq kitty neovim nodejs npm python-pip python-pynvim riff ripgrep starship tmux tokei tokei ttf-fira-code yay yq

Ubuntu

Canonical being a pain in the ass, you have to do this:

sudo add-apt-repository ppa:fish-shell/release-3
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo add-apt-repository ppa:git-core/ppa
sudo add-apt-repository ppa:longsleep/golang-backports
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - # gotta love nodesource

sudo apt install fish fonts-firacode git golang-go gojq jq kitty neovim nodejs python3-pip ripgrep tmux
python3 -m pip install pynvim

# Install Python "binaries" in pipx
python3 -m pip install --user pipx
python3 -m pipx ensurepath

pipx install yq

# Build remaining packages that are not available on Ubuntu repos..
cargo install --locked bat eza fd-find hyperfine jaq riffdiff ripgrep starship tokei
go install github.com/junegunn/fzf@latest

Chezmoi

Chezmoi is managing all of these configs, initialize it like so:

# assuming an ssh-key is setup
sh -c "$(curl -fsLS get.chezmoi.io/lb)" -- init --apply [email protected]:magnuslarsen/dotfiles.git

# or preinstalled:
chezmoi init --apply [email protected]:magnuslarsen/dotfiles.git

Tmux

Tmux also has a couple of plugins that need to be installed:

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# press CTRL+B I

Fish (fisherman)

Simply run:

rm ~/.config/fish/functions/fzf_configure_bindings.fish && fisher update && chezmoi update --force

NerdFont

Some of this config, besides the original FiraCode, requires FireCode NerdFont to work properly, it can be fetched like so:

mkdir -p ~/.local/share/fonts && \
wget -q "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FiraCode.tar.xz" -O - |\
tar --wildcards -xJC ~/.local/share/fonts/ "*.ttf" && \
fc-cache -f && echo "Finished downloading Nerd Font"

PyLSP

For PyLSP, additional tools needs to be installed, which is not done by Mason:

:PylspInstall python-lsp-ruff ruff

dotfiles's People

Contributors

magnuslarsen avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.