Skip to content

Instantly share code, notes, and snippets.

@xgvargas
Last active August 18, 2019 02:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xgvargas/092eafb7a961fa362bf7d587d4ac0c06 to your computer and use it in GitHub Desktop.
Save xgvargas/092eafb7a961fa362bf7d587d4ac0c06 to your computer and use it in GitHub Desktop.
Kicad configuration

Kicad

.gitignore

*.bak
*.kicad_pcb-bak
*.sch-bak

# only include the cache and rescue libs
*.lib
!**/*-cache.lib
!**/*-rescue.lib

# useful to allow auto rescue lib inclusion
# sym-lib-table
# fp-lib-table
# *.dcm

# no one knows what is this anyway :)
fp-info-cache

# include step files only inside 3dshapes folders
*.step
!**/*.3dshapes/*.step

# include only the packed gerber files
**/gerber/*
!**/gerber/*.zip

.gitattributes

# explicacao: https://jnavila.github.io/plotkicadsch/

# antes de instalar qualquer coisa verifique se a instalacao já nao foi feita com:

# git config --list

# procure pelas linhas de filtros do kicad

# para estes filtros funcionares os 4 comandos abaixo devem ser executados no
# repositorio do projeto. ou pode ser executado uma unica vez no `config --global`

# git config --local filter.kicad_project.clean "sed -E 's/^update=.*$/update=Date/'"
# git config --local filter.kicad_project.smudge cat
# git config --local filter.kicad_sch.clean "sed -E 's/#(PWR|FLG)[0-9]+/#\1?/'"
# git config --local filter.kicad_sch.smudge cat

# ou ainda um arquivo .gitconfig poderia ser criado com o seguinte conteúdo:

# [filter "kicad_project"]
# 	clean = sed -E 's/^update=.*$/update=Date/'
# 	smudge = cat

# e depois instalado no repositorio local com:

# git config --local include.path $(realpath --relative-to=$(git rev-parse --git-dir) .gitconfig)

# NOTA: a versao que usa incluide eh legal mas nao funciona por causa de algum bug do git.
# como o filtro do SCH usa o simbolo hash ele eh interpretado como comentario durante a inclusao.

*.pro filter=kicad_project
*.sch filter=kicad_sch

color schemes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment