{"id":18666674,"url":"https://github.com/phaalonso/dotfiles","last_synced_at":"2026-04-11T08:02:36.379Z","repository":{"id":45506920,"uuid":"320560534","full_name":"phaalonso/dotfiles","owner":"phaalonso","description":"Dotfiles from my linux setup.","archived":false,"fork":false,"pushed_at":"2024-03-15T03:58:29.000Z","size":4035,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T05:33:18.764Z","etag":null,"topics":["dotfiles","linux","setup"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phaalonso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-11T11:55:11.000Z","updated_at":"2023-09-05T16:51:08.000Z","dependencies_parsed_at":"2023-12-09T02:28:22.021Z","dependency_job_id":"9b41a41a-34d1-4413-b022-7c520145d57f","html_url":"https://github.com/phaalonso/dotfiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phaalonso/dotfiles","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaalonso%2Fdotfiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaalonso%2Fdotfiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaalonso%2Fdotfiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaalonso%2Fdotfiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phaalonso","download_url":"https://codeload.github.com/phaalonso/dotfiles/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phaalonso%2Fdotfiles/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31673068,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dotfiles","linux","setup"],"created_at":"2024-11-07T08:33:32.435Z","updated_at":"2026-04-11T08:02:36.345Z","avatar_url":"https://github.com/phaalonso.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dotfiles\n\n![Terminal with termux](./screenshots/termial_with_termux.png)\n![Screenshot 001](./screenshots/2022_06_20_001.png)\n\n## Install in a new system\n - https://www.atlassian.com/git/tutorials/dotfiles\n - https://news.ycombinator.com/item?id=11071754\n\nAntes de começar garanta que o alias esteja presente no .bashrc or .zsh:\n```bash\nalias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'\n```\n\nAdicione o repositório no .gitignore para evitar problemas estranhos de recursao:\n```bash\necho \".cfg\" \u003e\u003e .gitignore\n```\nFaça o clone do seu dotfiles em um repositório bare:\n```bash\ngit clone --bare git@github.com:phaalonso/dotfiles.git $HOME/.cfg\n```\nConfigure o alias no shell atual:\n```bash\nalias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'\n```\nRealize checkout pro conteudo do seu repositório para o $HOME:\n```bash\nconfig checkout\n```\nDurante esse processo, pode ocorrer conflitos de arquivos. Nesse caso voce pode apagar manualemente, ou executar o seguinte script que ira mover tudo pra uma pasta de backup:\n```bash\nmkdir -p .config-backup \u0026\u0026 \\\nconfig checkout 2\u003e\u00261 | egrep \"\\s+\\.\" | awk {'print $1'} | \\\nxargs -I{} mv {} .config-backup/{}\n```\nEntao rode o checkout novamente\n```bash\nconfig checkout\n```\nConfigure a flag para nao mostrar arquivos que nao estao no controle de versao:\n```bash\nconfig config --local status.showUntrackedFiles no\n```\n\nExemplos:\n```\nconfig status\nconfig add .vimrc\nconfig commit -m \"Add vimrc\"\nconfig add .bashrc\nconfig commit -m \"Add bashrc\"\nconfig push\n```\nAgain as a shortcut not to have to remember all these steps on any new machine you want to setup, you can create a simple script, store it as Bitbucket snippet like I did, create a short url for it and call it like this:\n\n```bash\ngit clone --bare git@github.com:phaalonso/dotfiles.git $HOME/.cfg\nfunction config {\n   /usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@\n}\nmkdir -p .config-backup\nconfig checkout\nif [ $? = 0 ]; then\n  echo \"Checked out config.\";\n  else\n    echo \"Backing up pre-existing dot files.\";\n    config checkout 2\u003e\u00261 | egrep \"\\s+\\.\" | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}\nfi;\nconfig checkout\nconfig config status.showUntrackedFiles no\n```\n\n\n\nHyperland config baseada em [JaKooLit](https://github.com/JaKooLit?tab=repositories)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphaalonso%2Fdotfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphaalonso%2Fdotfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphaalonso%2Fdotfiles/lists"}