GithubHelp home page GithubHelp logo

dotfiles's Introduction

dotfiles

Overview

  • Repo primarily concerns itself with vim, bash, git, and tmux on Mac OSX using iTerm2
  • GNU stow is used to manage the symlinks and installation.
  • Packages can be installed using install.sh, which should work on mac or linux
  • Other dependencies, such as vim plugins, are managed using git submodules

Setting up

  1. Run the following to set up symlinks:
# Clone repo and all submodules
git clone --recursive https://github.com/Nathan-Schwartz/dotfiles.git ~/dotfiles

cd ~/dotfiles

# Install stow however you like.
# The install script (./scripts/install.sh) will install stow but also many other things.

# Set up symlinks
stow vim bash git iterm tmux
  1. To identify yourself with git, create a ~/.gitconfig.local with the following structure:
[user]
  name = Replace Me
  email = [email protected]

Tearing down

To disable configs without removing the repo

# remove symlinks
stow --delete vim bash git iterm tmux

Feature tour

Vim

  • File Navigation
    • Fuzzy file search with CtrlP (using ag)
    • Project search with Ack.vim (using ag)
    • Browse directories with NERDTree
  • Integrations
    • linter, typecheck, autocomplete, and autofix support with ALE
    • Tmux panes and vim windows share key binding (vim-tmux-navigator)
  • Editing
    • Multi-cursor editing with vim-multi-cursor
    • camelcase support, persistent undo, repeat, vim-surround, and more
  • UI
    • Quick access to MRU files & sessions on startup with vim-startify
    • Solarized theme, lightline, polyglot syntax highlighting, inertia scroll

Tmux

  • Tmux and Tmate support for Mac and Linux
  • Can resurrect tmux sessions
  • Vim inspired key bindings
  • Solarized dark theme to match vim

Bash

  • aliases to quickly edit config files
  • sets readline to vi mode and shows vi-mode in prompt.
  • To support computer specific configs, the first thing .bash_profile will do is source ~/.env, and the last thing is to source ~/.bash_profile.local

Scripts

  • install.sh: idempotent script which will:
    • optionally install any available OSX updates
    • install (or update if already installed): brew, n, Node.js LTS, global npm packages, pip packages, and brew formulae
  • configure-macosx.sh: Set some OS defaults (inpsired by mathiasbynens dotfiles)

Git

  • My approach to .gitconfig is inspired by nicksp's dotfiles.
  • I have a global gitignore and various git aliases

Working with git submodules

Documented here for my convenience.

Install additional plugins with:

git submodule add -f https://github.com/foo/bar.git ./vim/.vim/bundle/bar

Update all submodules with:

git submodule foreach --recursive git pull --rebase origin master

Update one submodule

cd mySubmodule
git pull --rebase origin master

dotfiles's People

Contributors

nathan-schwartz avatar kosticus avatar

Watchers

 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.