Hacker GitHub

← All repos

kbd/setup

View on GitHub ↗ ★ 74 Python

My config, system settings, utilities, etc.

25 mentions on Hacker News by 2 people: 0 stories, 25 comments · first 2018-04-25 · latest 2025-10-03

Mentions per year 25 mentions · busiest year 2021 (6)
20082026
  1. …of my Hammerspoon config I could replace with this... Edit: upon reflection, not much actually: https://github.com/kbd/setup/blob/2eaeaecf76c22be3ecef5c8563...
  2. …it has the key tiling functions[1]. Check set-window-fraction function and its callsites. [1]: https://github.com/kbd/setup/blob/main/HOME/.hammerspoon/ini...
  3. …that live in a terminal tab instead of their own bloated poorly-keyboard-driven Electron apps. [1] https://github.com/kbd/setup/blob/main/HOME/.config/litecli/... [2] https://github.com/kbd/setup/blob/main/HOME/bin/kw [3]…
  4. …config to Fennel and haven't looked back either. The code becomes much more concise vs Lua. https://github.com/kbd/setup/blob/master/HOME/.hammerspoon/i...
    comment by kbd · 2023-09-13 · in Why Fennel?
  5. Agree I use fzf extensively in my git aliases: https://github.com/kbd/setup/blob/master/HOME/.config/git/co... Perfect example: my "cherry pick" alias: cp = !git pick-branch | xargs git pick-commits | tac | xargs -t git cherry-pick Those…
  6. To show off the power of fzf, I should share my fzr ("fzf repl") script: https://github.com/kbd/setup/blob/master/HOME/bin/fzr Basically, prefix any jq command (or rg, or anything you can think of) with fzr and it'll give you an…
  7. …kitty makes all that possible. I didn't know he was also the author of Calibre for a long time. [1] https://github.com/kbd/setup/blob/master/HOME/bin/kw
    comment by kbd · 2022-07-11 · in New in Calibre 6.0
  8. Everything is source-controlled: https://github.com/kbd/setup
  9. Here’s what I do for that (aliased to ‘p’): https://github.com/kbd/setup/blob/d95653da5ab367b1e628b97537...
  10. …alias all my short git aliases (as well as a few special cases). So “gcp” -> “git cp” etc. https://github.com/kbd/setup/blob/d95653da5ab367b1e628b97537...
  11. If anyone cares, I do something similar with my git aliases: https://github.com/kbd/setup/blob/master/HOME/.config/git/co... So, "ga" similarly gives a fuzzy finder of files to "git add" that are actually in git status, "gcp" lets me…
  12. If anyone cares, here's my config: https://github.com/kbd/setup/blob/master/HOME/.hammerspoon/i... It shows off a tiny bit of what you can do with Hammerspoon: - window and app management - keyboard shortcuts for common apps (eg. hyper+T…
  13. …most of the time. Here's an example of its use in my script that creates a new Python project: https://github.com/kbd/setup/blob/master/HOME/bin/create-pyt... I haven't figured out a convenient way to implement shell piping well with…
    comment by kbd · 2021-11-25 · in The fish shell is amazing
  14. Just sharing my take on that interactive jq (or anything else) repl: https://github.com/kbd/setup/blob/master/HOME/bin/fzr It's just an fzf wrapper that sets up temporary files and so on. It works really well; it's amazing all the things…
  15. …to my setup[2] repo with my dotfiles showing how I use symgr. [1] https://github.com/kbd/symgr [2] https://github.com/kbd/setup
    comment by kbd · 2021-05-13 · in A Way to Manage Dotfiles
  16. …(along with using Karabiner Elements for a 'hyper' key) to open or switch to common apps. [1] https://github.com/kbd/setup/blob/1a05e5df545db0133cf7b6f1bc... [2] https://github.com/kbd/setup/blob/1a05e5df545db0133cf7b6f1bc...
  17. …to my 'cp' alias that lets me choose a branch, then a commit to cherry pick into my current branch: https://github.com/kbd/setup/blob/e23b3e8e2363284c3c766c0be2...
    comment by kbd · 2021-03-30 · in Improving Shell Workflows with Fzf
  18. …branches in most-recent order and interactively pick the branch to switch to using fzf: https://github.com/kbd/setup/blob/f3ebd5ef2bc8a010357b574c02...
  19. Here's the equivalent setting for zsh: https://github.com/kbd/setup/blob/2e61b4d22adfadd05dbb4a7b95...
    comment by kbd · 2019-10-10 · in A Useful Thing in Bash
  20. Sure: https://github.com/kbd/setup Here's my git config with a bajillion aliases: https://github.com/kbd/setup/blob/master/HOME/.config/git/co... Since git commands are one of the most common things to type, I alias all short git aliases…
    comment by kbd · 2019-05-31 · in Better Bash History (2012)
  21. …a "bootstrap" script that starts from a clean Mac and installs and configures everything I need: https://github.com/kbd/setup/blob/master/bootstrap.py There are still some things that are manual: * some macOS settings that can't easily be…
  22. …using libgit2 someday, but something like that would be unusable if it was written in Clojure. [1] https://github.com/kbd/setup/blob/master/HOME/bin/repo.py
    comment by kbd · 2018-12-18 · in Clojure 1.10 release
  23. …the commandline is very usable (don't have to 'git add' and type filenames manually). [1] https://github.com/kbd/setup/blob/65b3d0abcb34540b43880792e8... [2] https://github.com/kbd/setup/blob/65b3d0abcb34540b43880792e8...
  24. …of my setup that is particular to a new machine is my bootstrap, which is like 30 lines of code: https://github.com/kbd/setup/blob/master/bootstrap.py Also, ever set up a new machine and then for days you keep finding system config that's…
    comment by kbd · 2018-04-25 · in Installing Fonts Using Homebrew
  25. Here's my setup repo with all my system config: https://github.com/kbd/setup Here's the bootstrap script I mentioned: https://github.com/kbd/setup/blob/master/bootstrap.py Here's the config file with everything I install, settings, etc.:…
    comment by kbd · 2018-04-25 · in Installing Fonts Using Homebrew