iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
⭐

Trying out highly-starred dotfiles on GitHub

に公開
2021/02/23

Planning Objectives

In the vim-jp community, there has been an ongoing initiative since 2012 called the vimrc reading session (held every Saturday from 23:00 on Gitter! Anyone is welcome to join).

Following this example, I've decided to launch a project where I arbitrarily try out famous dotfiles. While the vimrc reading session usually gathers around 8 people with different members each time, unfortunately, I will be doing this project alone.

Since there's no end to it if I start reading every single line of code, I will focus on installing them, running them, and observing their good points and stylistic features.

Rules

  • Focus only on external features and functionality.
  • Target repositories must have been updated within the last six months.
  • Try them in descending order of star count.
  • Must run on Linux (via Docker), as I only have a Linux environment.
  • If installation fails and it doesn't work, simply note that it didn't work.
  • The project ends once I successfully run three different sets of dotfiles.
  • Items to test are mainly the shell, tmux (terminal multiplexer), and the editor.

Data Collection

I decided to collect data using GitHub's GraphQL.
https://developer.github.com/v4/explorer/

The query looks like this:


{
  search(query: """
    dotfiles
    stars:>50
    pushed:>=2020-06-01
    sort:stars
  """, type: REPOSITORY, first: 100) {
    edges {
      node {
        ... on Repository {
          nameWithOwner
          stargazerCount
          updatedAt
          url
          description
        }
      }
    }
    pageInfo {
      endCursor
      startCursor
    }
  }
}

For a quick search, there also seems to be a site called https://awesomeopensource.com/projects/dotfiles.

Investigation

I will go through the output results one by one. The work consists of the modest task of opening GitHub in a browser and checking the READMEs.
Listing them starting from those with the most stars:

url stars comment
https://github.com/mathiasbynens/dotfiles For Mac
https://github.com/gpakosz/.tmux Looks like it might work on Linux, but only contained tmux settings
https://github.com/lewagon/dotfiles Checked install.sh and it seems to be for Mac
https://github.com/skwp/dotfiles For Mac
https://github.com/thoughtbot/dotfiles For Mac
https://github.com/holman/dotfiles For Mac
https://github.com/paulirish/dotfiles For Mac
https://github.com/jessfraz/dotfiles Finally found dotfiles that work on Linux. No specific OS was mentioned, so I'll try installing on Arch Linux via Docker. Usage report here
https://github.com/elenapan/dotfiles Hit a Linux user twice in a row. It seems the top-tier dotfiles are dominated by Mac, so maybe there are more Linux users from around 2000 stars? Perhaps Linux users don't write blogs much, so their stars don't increase? (Just speculating) Usage report here
https://github.com/nicknisi/dotfiles This person also seems to work on Linux, so this will likely be the last evaluation. Many were simple, so I'm hoping for something flashy. Usage report here

Actual Usage

jessfraz

jessfraz/dotfiles

My first thought was that the repository is heavy because fonts are included... (it was 350MB). git clone just wouldn't finish...
Installation uses make. During installation, it tried to reload systemd services and failed (since I'm in a Docker environment). I ignored it and proceeded.

It seems this person is a bash user. There are also tmux settings. The editor used seems to be VSCode (so there were no settings for it within the dotfiles).

Various packages aren't installed during the setup, so manual installation of tmux etc. was required.
I tried starting tmux, but it doesn't seem to support the latest 3.1-rc-1. An error occurs.

Here's how it looks overall.
386f2547-9b5b-015b-98f0-7d11dc12a810

A simple style where minimal information is described in a starship-like prompt. The git branch is also displayed.
However, I'd like to see the exit code of command results. It seems the tmux prefix uses Ctrl-z. I wonder if that makes it impossible to suspend the shell? Since there aren't many tmux settings, it doesn't feel like a heavy terminal user setup.
The desktop environment was i3, so I checked that too, but it was a simple setup with few configurations.

Overall, it has a simple feel and seems good as a minimal dotfiles setup.

elenapan

elenapan/dotfiles

The README is quite solid. The Snoopy is cute. This user is an Arch Linux, Neovim, and zsh user. Just like me. The window manager seems to be AwesomeWM.
fc2ff6e5-87da-7d8a-7398-9baee26669b8

The installation procedure is quite complex... Five mandatory fonts? What on earth... This time, I'll configure it minimally.
There's no installer for the dotfiles, so it feels like "just copy them appropriately."

When I started zsh, it complained that oh-my-zsh was missing, so I installed it. They don't use tmux, and the shell is almost the default oh-my-zsh with very little customization. No zsh plugins are included either. It's simple, or to put it bluntly, unexciting...

d14418fd-5f1f-f76e-d194-3a5f6bd8f1ae

Since there are Neovim settings as well, I'll try launching it.

1d6dcdfa-844d-70c9-627e-d17d22be77e4

It feels simple with no plugins included. Isn't this a bit too simple? I feel like it would be quite hard to develop with this...

nicknisi

nicknisi/dotfiles

Based on the screenshots, it looks quite customized, so I have high expectations.
ba5f1230-f666-daf1-05fd-53350a78a09e

!!! There's a Dockerfile! It even describes the setup method using Docker. https://github.com/nicknisi/dotfiles#docker-setup
How innovative.

The installer is cool. Since there were many simple ones, I'm a bit impressed.
The setup uses Homebrew (Linux version). It's great because you can easily install the latest versions of software even on Ubuntu, and the configuration is simple.
da783203-b904-cf07-3c26-3e8cbe74ff56

It also handles the git setup.
4182ce2b-cd46-442c-a339-eee6b22b33a3

Let's start zsh. Oh! It automatically installed the plugins.
The prompt has a pure-like look, which is simple and nice. It seems to use fzf for completion. For zsh plugin management, it uses a custom tool called zfetch.
ee72235c-2838-2ac4-54a2-ca951f48ab66

In tmux, some characters aren't displayed, probably due to a font mismatch. It bothers me a little that colors don't appear when running ls (it doesn't appear even outside of tmux).
The tmux status line and the shell theme match, which is lovely. Is the theme based on purple?
1a2f43b8-717e-baa3-4bb1-8c642a230a2b

Neovim also has a stylish look and included about 50 plugins.
174d2cb9-e7c0-5755-4cc0-31e57e669cb4

Overall Summary

It seems that those with a high number of stars are often simple, sample-like ones. I suspect there might be more "dense" dotfiles in the 100-1000 star range, so next time I'd like to adjust my search criteria and investigate further.
Also, looking at the READMEs of the ones I investigated, I realized that high star counts aren't necessarily because the repository is incredibly sophisticated, but often because they are well-introduced on blogs or Reddit (meaning good promotion).

Finally

I've been giving these critiques quite pretentiously, so for those wondering "well, what about yours?", I'll post it here just in case.

yutkat/dotfiles

In an Arch Linux Docker environment:

pacman -Sy
pacman -S git sudo
git clone https://github.com/yutkat/dotfiles.git
./dotfiles/.bin/dotinstall.sh install

It should work if you run this.

Discussion