0
0
Просмотр исходного кода

feat(brew): add `Brewfile` to config

Joe 1 год назад
Родитель
Сommit
3e04e46c49
6 измененных файлов с 176 добавлено и 0 удалено
  1. 5 0
      .config/.gitignore
  2. 6 0
      .config/brew/.gitignore
  3. 106 0
      .config/brew/Brewfile
  4. 37 0
      .config/brew/README.md
  5. 21 0
      .github/README.md
  6. 1 0
      .gitignore

+ 5 - 0
.config/.gitignore

@@ -0,0 +1,5 @@
+# ignore everything...
+/*
+!.gitignore
+# ...except for these:
+!brew/

+ 6 - 0
.config/brew/.gitignore

@@ -0,0 +1,6 @@
+# ignore everything...
+*
+!.gitignore
+# ...except for these:
+!Brewfile
+!README.md

+ 106 - 0
.config/brew/Brewfile

@@ -0,0 +1,106 @@
+tap "common-fate/granted"
+tap "homebrew/bundle"
+tap "homebrew/services"
+tap "koekeishiya/formulae"
+# Cross-platform make
+brew "cmake"
+# Strongly specified, highly compatible implementation of Markdown
+brew "cmark"
+# GNU File, Shell, and Text utilities
+brew "coreutils"
+# Configurable talking characters in ASCII art
+brew "cowsay"
+# Library for command-line editing
+brew "readline"
+# Secure runtime for JavaScript and TypeScript
+brew "deno"
+# Pack, ship and run any application as a lightweight container
+brew "docker"
+# Device tree compiler
+brew "dtc"
+# Simple, fast and user-friendly alternative to find
+brew "fd"
+# Infamous electronic fortune-cookie generator
+brew "fortune"
+# Command-line fuzzy finder written in Go
+brew "fzf"
+# GitHub command-line tool
+brew "gh"
+# Distributed revision control system
+brew "git"
+# Interpreted, interactive, object-oriented programming language
+brew "python@3.12"
+# Open source programming language to build simple/reliable/efficient software
+brew "go"
+# GitHub Markdown previewer
+brew "grip"
+# Lightweight and flexible command-line JSON processor
+brew "jq"
+# Lazier way to manage everything docker
+brew "lazydocker"
+# Simple terminal UI for git commands
+brew "lazygit"
+# Clone of ls with colorful output, file type icons, and more
+brew "lsd"
+# Package manager for the Lua programming language
+brew "luarocks"
+# Utility for directing compilation
+brew "make"
+# Text-based UI library
+brew "ncurses"
+# Ambitious Vim-fork focused on extensibility and agility
+brew "neovim"
+# Small build system for use with gyp or CMake
+brew "ninja"
+# PostgreSQL syntax beautifier
+brew "pgformatter"
+# Object-relational database system
+brew "postgresql@16"
+# Code formatter for JavaScript, CSS, JSON, GraphQL, Markdown, YAML
+brew "prettier"
+# Generic machine emulator and virtualizer
+brew "qemu"
+# Search tool like grep and The Silver Searcher
+brew "ripgrep"
+# Extremely fast Python linter, written in Rust
+brew "ruff"
+# Safe, concurrent, practical language
+brew "rust"
+# Autoformat shell script source code
+brew "shfmt"
+# Command-line tool to customize Spotify client
+brew "spicetify-cli"
+# Terminal multiplexer
+brew "tmux"
+# Maintained ctags implementation
+brew "universal-ctags"
+# Executes a program periodically, showing output fullscreen
+brew "watch"
+# Internet file retriever
+brew "wget"
+# Fish-like fast/unobtrusive autosuggestions for zsh
+brew "zsh-autosuggestions"
+# Fish shell like syntax highlighting for zsh
+brew "zsh-syntax-highlighting"
+# The easiest way to access your cloud.
+brew "common-fate/granted/granted"
+# Simple hotkey-daemon for macOS.
+brew "koekeishiya/formulae/skhd"
+# A tiling window manager for macOS based on binary space partitioning.
+brew "koekeishiya/formulae/yabai"
+# GPU-accelerated terminal emulator
+cask "alacritty"
+# Display management tool
+cask "betterdisplay"
+# Preference Pane for controlling cursor hiding
+cask "cursorcerer"
+# Google Chromium, sans integration with Google
+cask "eloston-chromium"
+# Web browser
+cask "firefox"
+# Vector graphics editor
+cask "inkscape"
+# Knowledge base that works on top of a local folder of plain text Markdown files
+cask "obsidian"
+# Administration and development platform for PostgreSQL
+cask "pgadmin4"

+ 37 - 0
.config/brew/README.md

@@ -0,0 +1,37 @@
+# [Homebrew](https://brew.sh/)
+
+- The Missing Package Manager for macOS
+
+## Installing `brew`
+
+Homebrew (`brew`) can be installed with the following command:
+
+```sh
+/bin/zsh -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+```
+
+## [Brewfile](./Brewfile)
+
+The [`Brewfile`](./Brewfile) describes the
+[Homebrew Bundle](https://github.com/Homebrew/homebrew-bundle) of packages
+currently installed with `brew`. It can be managed with `brew bundle`. It should
+not be managed automatically, as currently-running applications should not be
+updated.
+
+The `Brewfile` can be generated with the following command:
+
+```sh
+cd $XDG_CONFIG_HOME/brew/ && brew bundle dump --force --describe
+```
+
+The content of the `Brewfile` can be installed with the following command:
+
+```sh
+cd $XDG_CONFIG_HOME/brew/ && brew bundle install
+```
+
+Clean up installed packages with the following command:
+
+```sh
+cd $XDG_CONFIG_HOME/brew/ && brew bundle cleanup --force
+```

+ 21 - 0
.github/README.md

@@ -12,3 +12,24 @@ elegance, readability, and piquing niche interest certainly are. That is to say,
 cloning this repository into your home directory probably won't get you
 anywhere, but poking around and pilfering interesting snippets could turn out to
 be a great use of your time.
+
+The contents of the repository is described below:
+
+<table frame="void">
+<tbody><tr>
+<td>
+### [brew (`~/.config/brew/`)](./.config/brew/)
+
+Package list for [Homebrew](https://brew.sh/), the missing package manager for
+MacOS. See the subdirectory's [README.md](./.config/brew/README.md) for details.
+
+### [git (`~/.config/git/`)](./.config/git/)
+
+Configuration for [Git](https://git-scm.com/docs/), a free and open source
+distributed version control system.
+
+</td>
+</td>
+<td>
+</td>
+</tr></tbody></table>

+ 1 - 0
.gitignore

@@ -4,4 +4,5 @@
 # ...except for these:
 # Anything in these subfolders
 # These should have their own .gitignore!
+!.config/
 !.github/