Giter VIP home page Giter VIP logo

dotfiles's Introduction

Overview

This repo contains my universal dotfiles for OS X, Linux (native and WSL2), and Cygwin.

Tested on:

  • macOS Sonoma (14.0)
  • Debian 10 on WSL2 (Windows 10)
  • Latest cygwin on Windows 10

Requirements

Common

  • bash 5.0+ (macOS default is fine)
  • zsh 5.7+ (macOS default is fine)
  • git 2.20+ (macOS default is fine)
  • GNU grep 3.3+
  • tmux 2.8+
  • neovim 0.8.0+

Platform specific

macOS

WSL2

Installation

Installing the dependencies

Linux

sudo apt install zsh tmux git curl

Optionally, if you want to use rxvt on X:

sudo apt install rxvt-unicode-256color

See this blog post for instructions on setting up a Vim-friendly desktop environment on Crunchbang++.

macOS

sudo port install grep coreutils tmux

To set the MacPorts zsh as the default shell:

sudo chpass -s '/opt/local/bin/zsh' $USER

Installing the dotfiles

Clone this repo somewhere (e.g. ~/.dotfiles) and then do the following:

cd ~/.dotfiles
./install.sh

The script only creates symlinks and is completely non-destructive; it creates backups of any existing files. You can also start it with -d for a dry-run.

If you are using a different location than ~/.dotfiles, you must manually set DOTFILES to point to the cloned repo in ~/.bashrc-pre and ~/.zshrc-pre after the installation.

Installing NeoVim plugins

  1. Execute the following:
git clone --depth 1 https://github.com/wbthomason/packer.nvim\ &&
    ~/.local/share/nvim/site/pack/packer/start/packer.nvim
  1. Start NeoVim, then execute :PackerSync

Refer to the packer instructions for further details

.zshrc-pre suggestions

macOS

# Aliases
alias grep=ggrep
alias vim=nvim
alias dircolors=gdircolors

# Use nvim when editing git commits
EDITOR=nvim

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.