Giter Club home page Giter Club logo

dotfiles's Introduction

Dotfiles

Basic config

Basic list of stuff that goes in the config:

  • i3 (linux only) / amethyst (macos only)
  • alacritty
  • zsh + oh-my-zsh + zsh-autosuggestions
  • tmux
  • neovim
  • clang + ccache
  • conda (i.e miniforge)
  • rust/cargo
  • tmux-sessionizer (cargo install ...)
  • ranger
  • lazygit

Create symlinks with stow

Simply git clone this repo and cd into it.

Then stow --target=${HOME} [...] (will target home dir).

Notes / Fixes

Switch to zsh:

  • install zsh pacman -S zsh
  • activate and make permanent: zsh then chsh -s /bin/zsh and sudo chsh -s /bin/zsh
  • better theme: oh-my-zsh: git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
    • in .zshrc, use the robby theme
    • modify theme: ~/.oh-my-zsh/themes/robbyrussell.zsh-theme
    • show full path: replace the c in PROMPT += ...%c%... by ~
  • zsh autosuggestions:
    • Just do: git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    • Or visit zsh-autosuggestions INSTALL.md

Rust/cargo install (needed for tmux-sessionizer):

  • curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Switch to fish:

  • Same process as with zsh

Polybar: git clone https://github.com/adi1090x/polybar-themes.git

Tmux plugin manager:

  • First, stow tmux
  • Then: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  • Launch a new tmux server, then prefix + I (C-a + I) -> automatic install

C/C++ clangd:

  • First build your project mkdir build && cd build && cmake .. (+ other cmake flags) && make install
  • Then cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=1 .. will create a compile_commands.json which clangd will use to provide completion.

If Treesitter error has lots of lines underlined:

  • TSError is assigned to a color/behavior which is dependent only on the colorscheme used
  • We pick a colorscheme compatible with TS like gruvbox but in gruvbox, underlines (TSError or LSP reference or ...) stuff which is MEGA annoying.
  • So go there: vim ~/.vim/plugged/gruvbox.nvim/lua/gruvbox/plugins/highlights.lua and modify lines

nvim LSP support:

Nice set of cli tools

Modern unix.

  • rg (ripgrep)
  • bat (cat replacement)
  • duf (du replacement)
  • exa (ls replacement)
  • gtop (top replacement)
  • delta (git viewer)
  • ag (code searcher)
  • cheat (i.e cheat ls)
  • tldr (resuming man pages)
  • fzf
    • vim $(fzf)
    • find * -type f | fzf > selected
  • sad (sed replacement)
  • procs (see pids)
  • hyperfine (benchmarking from cli)

More vim plugins

Visit awesome-neovim.

Installing programs for arch-based distro

A list of programs is listed in programs.

Note: it's probably a bad idea but you can do: pacman -S < program/.pacman.list.

For i3, Polybar probably needs to be installed (at least the themes).

dotfiles's People

Contributors

lmontaut avatar

Stargazers

 avatar  avatar

Watchers

 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.