Code Monkey home page Code Monkey logo

dotfiles's Introduction

Cid's dotfiles

Config files for fish, Editors, Terminals and more.

screenshot

Installation

Dependencies

First, make sure you have all those things installed:

  • git: to clone the repo
  • curl: to download some stuff
  • tar: to extract downloaded stuff
  • fish: to actually run the dotfiles
  • sudo: some configs may need that

Install

Then, run these steps:

git clone https://github.com/supercid/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
./script/bootstrap
zsh # or just close and open your terminal again.

All changed files will be backed up with a .backup suffix.

Recommended Software

For macOS, I recommend:

  • iTerm: a better terminal emulator; You can install by running brew cask install iterm2

  • diff-so-fancy: better git diffs (you'll need to run dot_update to apply it);

  • fzf: fuzzy finder, used in ,t on vim, for example;

  • bat a cat replacement

  • exa a ls replacement

  • jq a json processor with syntax highlighting

  • starship.rs the shell we are using

  • kubectx for better Kubernetes context and namespace switch;

  • grc to colorize command's outputs;

  • gh for more GitHub integration with the terminal;

macOS defaults

You use it by running: Read and tweak it first!

$DOTFILES/macos/set-defaults.sh

And logging out and in again/restart.

Default EDITOR and PROJECTS

The default EDITOR right now is subl, which is the Sublime Text editor. You can change that by adding your custom override.

PROJECTS is default to ~/Developer. The shortcut to that folder in the shell is dev.

Topical

Everything's built around topic areas. If you're adding a new area to your forked dotfiles โ€” say, "Erlang" โ€” you can simply add a erlang directory and put files in there. Anything with an extension of .fish will get automatically included into your shell. Anything with an extension of .symlink will get symlinked without extension into $HOME when you run script/bootstrap.fish.

Compatibility

Since i pretty much only use macOS, i dropped the support for linux from the original fork of this project.

Personalization

How to add custom configuration without messing the local repository

For git

You can just change the default ~/.gitconfig file, since it includes the dotfiles managed one.

For ssh

You can edit the ~/.ssh/config.local file.

iTerm 2 tips

I've wrote a detailed instructions of how I use iTerm2 and its various functions. https://gist.github.com/supercid/1be22a2f5ecd93ea1ce7112aaf929fb8

License:

Contributing

Feel free to contribute. Pull requests will be automatically checked/linted with Shellcheck and shfmt.

dotfiles's People

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mathitz

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.