Skip to content

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

License

Notifications You must be signed in to change notification settings

ralphjsmit/editorconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published