• Stars
    star
    1
  • Language
  • License
    MIT License
  • Created almost 3 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This repository contains the EditorConfig file I share across all my projects.

Personal Editor Configuration

This repository houses the editorconfiguration I use for my projects and packages. Because the config is not static and may subject to change, I created this repository in order to synchronize the file across my projects.

Installation

Run the following commands in a project to fetch the latest version of the editorconfig:

git remote add editorconfig [email protected]:ralphjsmit/editorconfig.git
git remote set-url --push editorconfig DISABLED
git remote -v
git fetch editorconfig
git checkout editorconfig/main .editorconfig
# Commit editorconfig to your own repos history

Updating the editorconfig

Run the following commands in order to update the editorconfig to the latest version:

git fetch editorconfig
git checkout editorconfig/main .editorconfig
# Commit editorconfig to your own repos history

Shell aliases

Add the following aliases to your .zshrc or .bashrc file to speed up the process:

alias editorConfig="git remote add editorconfig [email protected]:ralphjsmit/editorconfig.git && git remote set-url --push editorconfig DISABLED && git remote -v && git fetch editorconfig && git checkout editorconfig/main .editorconfig"
alias fetchEditorConfig="git fetch editorconfig && git checkout editorconfig/main .editorconfig"
alias ec="editorConfig"
alias fec="fetchEditorConfig"

Now you can just run ec to install the editorconfig file in a project or fec to fetch the latest version.