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 e VSCode
  • Awesome
  • Bash e Git

Simplicidade como preceito

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

qualidade --> t[trabalho eficiente]

UtilizaĆ§Ć£o

cd ~
mkdir -p dev
cd dev
git clone git@github.com:nenitf/dotfiles.git
cd dotfiles
./install.sh

ConfiguraĆ§Ć£o do SSH

Baixar Nvim
# Ubuntu
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.deb
sudo apt install ./nvim-linux64.deb
Utilizar somente o Vim bƔsico
" ~/.vimrc ou %userprofile%\_vimrc
let g:dotfiles = "~/dev/dotfiles/"
exe "source ".g:dotfiles."nvim/vimrc"
exe "source ".g:dotfiles."nvim/colors/calmo.vim"
  • Sem tempo irmĆ£o (Windows):
curl https://raw.githubusercontent.com/nenitf/dotfiles/main/nvim/vimrc > %userprofile%\_vimrc
  • Sem tempo irmĆ£o (Linux):
wget https://raw.githubusercontent.com/nenitf/dotfiles/main/nvim/vimrc -O $HOME/.vimrc

ConfiguraƧƵes locais

Nvim

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

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