Coder Social home page Coder Social logo

benmezger / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
99.0 5.0 4.0 10.22 MB

My collection of dotfiles

License: MIT License

Shell 15.49% Python 63.14% Perl 14.36% Emacs Lisp 4.12% Vim Snippet 0.23% Dockerfile 0.07% YASnippet 0.25% Ruby 0.34% Makefile 0.89% Vim Script 1.11%
dotfiles linux osx config unix shell scripts tmux i3 fish ipython git tmuxzsh vim chezmoi archlinux emacs ansible neomutt

dotfiles's Introduction

Installing this configuration

Requirements

  • Chezmoi
  • Archlinux or OSX

Installing

Note: You need to set the env variable SECRETS_OFF=1 to disable 1password. Not passing will make chezmoi fail when connecting to my 1password account ¯_(ツ)_/¯.

The following environment variables can be set to configure chezmoi when applying changed:

  • ASK: Set to 1 if you want to enable chezmoi prompt
  • SECRETS_OFF: Set to 1 to enable 1Password (uses my personal secrets set in .chezmoi.yaml)
  • DOTFILES_MINIMAL: Set to 1 if you want to install the minimal version
  • WORKCONF: Set to 1 to enable work configuration (work email, etc)

For example: ASK=1 chezmoi apply to enable prompt or DOTFILES_MINIMAL=1 chezmoi apply for applying the minimal version.

Install with chezmoi

SECRETS_OFF=1 chezmoi init https://github.com/benmezger/dotfiles.git -S ~/dotfiles

Minimal version

The minimal version installs only the essentials.

  • zsh
  • git
  • vim
  • emacs
  • tmux
  • curl
  • alacritty
  • neovim
  • user-dirs
  • editorconfig
  • dircolors
SECRETS_OFF=1 DOTFILES_MINIMAL=1 chezmoi init https://github.com/benmezger/dotfiles.git -S ~/dotfiles

Makefile

You can clone this repository and use the Makefile to apply the changes + install dependencies.

make apply or make all
make fix-permissions
make install-required-dependencies
make install-extra-dependencies
make install-pyenv
make install-go-dependencies
make install git-dependencies
make configure-osx
make configure-linux

Keybindings

OSX

  • fn + cmd - e - opens emacs
  • fn + cmd - i - opens firefox
  • fn + cmd - f - opens finder in $HOME
  • cmd + return - opens alacritty

MPC

  • fn + cmd - f1 - mpc play
  • fn + cmd - f2 - mpc pause
  • fn + cmd - f3 - mpc prev
  • fn + cmd - f4 - mpc next
  • fn + cmd - f5 - mpc volume -10
  • fn + cmd - f6 - mpc volume +10

Troubleshooting

Chezmoi does not seem to reload the configuration

Run chezmoi init <dotfiles-path> again. This should reload the configuration by copying chezmoi.yaml to $HOME/.config/chezmoi/chezmoi.yaml.

Sourcing env with i3

For some reason, i3 is sourcing .xprofile instead of xinitrc, so for getting Github plugin for the i3status-rust you need to set up a variable in your .xprofile

export I3RS_GITHUB_TOKEN="your-github-token"

Screenshots

OSX

Archlinux

Weechat IRC

Emacs

Contributing

  1. Feel free to contribute and/or report issues.

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.