Skip to content

nenitf/dotfiles

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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
  • VSCode
  • AwesomeWM
  • Bash
  • Git

Simplicidade como preceito

graph LR
simplicidade --> manutenibilidade --> qualidade
simplicidade --> performance --> qualidade

qualidade --> t[trabalho eficiente]

UtilizaĆ§Ć£o

  1. Download e link dos arquivos
cd ~
mkdir -p dev
cd dev
git clone git@github.com:nenitf/dotfiles.git
cd dotfiles
./install.sh
  1. ConfiguraĆ§Ć£o de ambiente do nvim
-- nvim/lua/env.lua
local M = {}

M.clickup = {
  token = "TOKEN",
  user_id = "USER",
  space_id = "SPACE",
  workspace_id = "WORKSPACE",
  filter = {
    statuses = {
      "ready for development",
      "backlog",
      "code review",
      "in development",
    },
  },
}

return M

ConfiguraĆ§Ć£o do SSH

Baixar Nvim
# Ubuntu
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x nvim.appimage
sudo mv ./nvim.appimage /usr/bin/nvim
Suporte ao Vim (sem plugins)
  • Com todos vimscripts
" ~/.vimrc ou %userprofile%\_vimrc
let g:dotfiles = "~/dev/dotfiles/"
exe "source ".g:dotfiles."nvim/vimrc"
exe "source ".g:dotfiles."nvim/colors/calmo.vim"
  • O mais simples possĆ­vel (Windows):
curl https://raw.githubusercontent.com/nenitf/dotfiles/main/nvim/vimrc > %userprofile%\_vimrc
  • O mais simples possĆ­vel (Linux):
wget https://raw.githubusercontent.com/nenitf/dotfiles/main/nvim/vimrc -O $HOME/.vimrc

ConfiguraƧƵes locais

Nvim

  • ~/.vimrc-pre.vim: antes do carregamento de vĆ”rios mĆ³dulos
  • ~/.vimrc-local.vim: depois do carregamento completo
  • /path/do/projeto/.exvrc, /path/do/projeto/.exrc, /path/do/projeto/.nvim.lua ou .rgignore (rg): depois do carregamento completo, somente no projeto aberto

Bash

  • ~/.bashrc-local.sh
Exemplo
alias cdi='cd ~/dev/i10'
alias cdia='cd ~/dev/i10/api'
alias sailclear='sail artisan optimize:clear'
. "$HOME/.cargo/env"

alias toggl='flatpak run com.toggl.TogglDesktop'
alias outline='sudo ~/bin/Outline-Client.AppImage --no-sandbox'
alias cu='sudo ~/bin/ClickUp-3.0.6.AppImage --no-sandbox'

export GPG_TTY=$(tty)

export XDG_DATA_DIRS='/var/lib/flatpak/exports/share:/home/neni/.local/share/flatpak/exports/share'

Git

  • ~/.gitconfig-local
Exemplo
# `~/.gitconfig-local`
[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/.gitignore-projetox`
meumakefile
up.sh
# `~/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