GithubHelp home page GithubHelp logo

dotfiles's Introduction

dotfiles

My personal toolkit. Locally I use neovim for my editor, zsh for my shell with starship.rs for the prompt and tmux for window managment. For my terminal I am currently using wezterm but I keep configuration for alacritty and kitty handy. bashrc, vimrc and gitconfig are standalone and can be copied to remote hosts if I need.

screenshot

dependencies

The setup script will do most of the work but there are a few dependencies that need to be installed manually with the system package manager or built from source. cargo can be used for the rust dependencies:

  • zsh
  • tmux (greater than 3.2a, prefer head)
  • neovim (greater than 0.8, prefer nightly)
  • bat / batcat
  • rg / ripgrep

Fonts also need to be configured on the base host (the system that runs the terminal). I haven't automated this because terminal installation is also manual:

if [ uname = "Darwin" ]; then
  FONT_DIR="$HOME/Library/Fonts"
else
  FONT_DIR="$HOME/.local/share/fonts"
fi

wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/Hack.zip
mkdir -p $FONT_DIR
unzip Hack.zip -d $FONT_DIR

setup

git clone [email protected]:kevinhughes27/dotfiles.git ~/dotfiles
cd ~/dotfiles
./setup.sh

neovim will bootstrap itself on first open. npm and pip will be needed for Mason to successfully install language servers.

From a configured system ./setup.sh -r <remote> can be used to copy my standalone bashrc, vimrc and gitconfig to a remote host. fzf will also be copied.

.localrc

My zshrc will source a ~/.localrc file if it exists for any system or work specific settings. This lets me maintain one set of dotfiles while still having flexability. It is pretty common for programs to automatically add config to your dotfiles and when that happens I can see the changes in git and move them to localrc.

dotfiles's People

Contributors

kevinhughes27 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

awaselnuk

dotfiles's Issues

Git Rebase Function may not be needed

# rebase the current branch against fresh master
r = "!git_rebase() { \
  local curbranch=`git rev-parse --abbrev-ref HEAD`; \
  git checkout master; \
  git pull origin master; \
  git checkout $curbranch; \
  git rebase master; \
}; git_rebase"

should be equivalent to pull --rebase. Git added this at some point.

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.