Skip to content

nenitf/dotfiles

main
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

dotfiles

emojicom

Versionamento dos meus arquivos de configuraĆ§Ć£o, scripts, instruƧƵes e templates usados no Windows e/ou Linux.

  • Nvim e VSCode
  • Awesome
  • Bash e Git

Vimrc simplificado e "estilizado"

Download

No Windows %userprofile% equivale ~

  • nvim
# Ubuntu
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.deb
sudo apt install ./nvim-linux64.deb

# instalar rg xclip node php dart gopls

nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
# instalar lsp com :LspInstallInfo e i
  • configurar Nvim, Git e Bash
cd ~
mkdir -p dev
cd dev
git clone git@github.com:nenitf/dotfiles.git
cd dotfiles
./install.sh

ConfiguraƧƵes locais

Nvim

  • ~/.vimrc-pre.vim
  • ~/.vimrc-local.vim
  • /path/do/projeto/.exvrc

Compatibilidade bƔsica com o vim

" ~/.vimrc ou %userprofile%\_vimrc
let g:dotfiles = "~/dev/dotfiles/"
exe "source ".g:dotfiles."nvim/vimrc"
exe "source ".g:dotfiles."nvim/colors/calmo.vim"

Bash

  • ~/.extra-bashrc.sh

Git

  • ~/.gitconfig-extra

Exemplo

# `~/.gitconfig-extra`
[includeIf "gitdir:~/dev/trampo/projetox/"]
    path = dev/trampo/.gitconfig-projetox
# `~/dev/trampo/.gitconfig-projetox`
[include]
    path = .gitconfig-geral-trampo
[core]
    excludesfile = ~/dev/trampo/.gitignore-projetox
# `~/dev/trampo/.gitconfig-geral-trampo`
[user]
    name = Felipe Silva
    email = felipe@trampo.com
    username = felipe_silva
[alias]
    s = status
    commit-guide = !cat ~/dev/dotfiles/modelos/git/.gitcommit
    pr = "!f() { git fetch upstream && rebase upstream/$@; }; f"

AtualizaĆ§Ć£o forƧada

git fetch --all
git reset --hard origin/main

Adendos