setup
mackup
setup | mackup | |
---|---|---|
12 | 30 | |
68 | 14,223 | |
- | - | |
8.9 | 7.9 | |
about 1 month ago | 18 days ago | |
Python | Python | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
setup
- Why Fennel?
-
Calibre 6.0
https://github.com/kbd/binrun
I just wrote it today and still need to package it. I was tired of alt+tab + up arrow + enter constantly to execute builds etc. in my terminal. It calls out to a wrapper script I wrote[1] that does things like queries kitty for its running windows so that when I launch from vscode it can find the right kitty window for the vscode workspace and execute there...
Point is, Kovid Goyal is awesome and the extensibility he wrote into kitty makes all that possible. I had no idea he was also the author of Calibre until I'd been using kitty for a while.
[1] https://github.com/kbd/setup/blob/master/HOME/bin/kw
- Ask HN: How do you sync your computers development configurations/environment?
- Forgit: A utility tool powered by fzf for using Git interactively
-
Hammerspoon – Lua-based powerful tool automation of macOS
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
-
The Fish Shell Is Amazing
I'll put it this way: Nu shell seems perfectly supportive of my philosophy that a shell is basically a REPL for a computer, and they're taking the ergonomics of an interactive REPL along with the programming language that powers that REPL seriously.
The thing is, there's currently NOTHING GOOD for "shell scripting". Shell sucks (yes it does), so for anything more than very short things I'd rather write Python. But Python sucks for shell-like things, parallelization, it has slow startup, and you also can't do things like put environment variables into your session or change the working directory, so you often wind up writing shims (eg. Broot's br alias - https://dystroy.org/broot/install-br/).
Yes I've looked at Xonsh but maybe the additional syntax is offputting to me. Like, I wouldn't use it as a shell over Zsh (how's Xonsh's fzf support? I don't know, but I know everything's going to support Zsh), and I dunno if I want to use its syntax extensions over just Python. Though It's always on my list of things to re-explore, and maybe it'll click one day. But it being based in Python makes it feel slow (I wrote my prompt in Zig to get it to be fast...)
This is relevant to mention: I wrote a small Python library (https://github.com/kbd/aush) that's basically a DSL for subprocesses, so it tries to make it more convenient to do shell-like things. I find it preferable to shell or Python alone 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 Python's pipe operator, or pass through interactive output directly (so things that "update" the display, like poetry and npm don't behave the same as they do interactively) so it's still .9 status, but it works really well for what it is, and you can always write "regular Python" along with it.
Anyway, Nu seems to be an attempt to put a "real" programming language REPL in my shell, from people who have serious language experience, so I'm hopeful it'll be great.
-
Extracting Objects Recursively with Jq
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 one can use fzf for.
-
A Way to Manage Dotfiles
Since we're sharing, my dotfiles setup has pretty much reached its final form. I use my symgr[1] to symlink my dotfiles repo into my home dir. Pretty much everything I think about this topic is in its readme, as well as a link 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
-
Apple's follow-up to M1 chip goes into mass production for Mac
It's not exactly a tiling window manager, but if you can program some simple Lua then Hammerspoon is a godsend. You can program anything any of the other window managers for Mac (like Rectangle, Spectacle, etc.) can do and have complete freedom to set up your own keyboard shortcuts for anything.
I have some predefined layouts[1] for my most common usage. So, one keyboard shortcut arranges the screen how I want, and I have other keyboard shortcuts[2] (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...
-
Improving Shell Workflows with Fzf
Figured I'd link my git aliases here, that make heavy use of fzf. The goal is generally to never have to type a filename (eg. for git add) or a commit hash (eg. for cherry-pick).
Here's a link 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...
mackup
-
Best way to transfer apps to new Mac using external drive
Also checkout Mackup.
-
Allow all applications to access Dropbox or Google Drive files
I am using mackup to sync application preferences between devices over Dropbox. Now if any application with synced preferences is started I will get a question if given application is allowed to access Dropbox files (because it tries to access its preferences). Examples below.
-
Clone user settings/preferences for Personal and Work accounts on same mac
Hello there! I use https://github.com/lra/mackup Not sure if its the BEST but it works well for me. * What does it do - Back ups your application settings in a safe directory (e.g. Dropbox) - Syncs your application settings among all your workstations - Restores your configuration on any fresh install in one command line
- Backup Solutions for MacOS
-
The best Mac Apps to unlock your max potential (recommended by users of r/MacOs )
Yeah, I went through a similar process when I finally upgraded my MBP after 8 years on a 2013 MBP. In light of the transition from Intel to Apple Silicon, I decided to do some spring cleaning with a fresh install. I ended up curating my own setup/bootstrap scripts as well as using mackup to backup and sync my dotfiles and app configs.
-
Sync settings
I use Mackup which syncs a many app settings including Raycast to your choice of location.
-
Dotfiles Management
I moved away from using a dotfiles repo a few years ago because I kept forgetting to add/commit files as I changed them.
Instead I use mackup[0] which automatically manages symlinks to your Dropbox/Drive/Share and has support for a huge amount of software by default. You can also manually add “extra” files you wish to track if you like.
[0] https://github.com/lra/mackup
- Configuration files sync between multiple macs
- A configuration management system for pets, not cattle
-
Trying to learn Homebrew-macOS /usr/local layout --for purpose of--> migrating /usr/local from one Macbook to another
Brew bundle will install fresh copies of your package list. If you have any configuration files that you want to reuse, you’d have to transfer those separately. This might help https://github.com/lra/mackup
What are some alternatives?
yabai - A tiling window manager for macOS based on binary space partitioning
chezmoi - Manage your dotfiles across multiple diverse machines, securely.
hammerspoon - A hammerspoon config with a bunch of custom spoons (sleep timer, resolution changer, paywall buster, safari hotkey utilities, window management with undo, etc).
macprefs - Backup and Restore your Mac System and App Preferences (e.g. defaults write)
fzf-tab - Replace zsh's default completion selection menu with fzf!
desktop - Focus on what matters instead of fighting with Git.
jql - Easy JSON Query Processor with a Lispy syntax in Go
yadm - Yet Another Dotfiles Manager
forgit - :zzz: A utility tool powered by fzf for using git interactively.
kde-plasma-backup - Script for backup and restore KDE Plasma environment configuration.
dotfiles - My dotfiles
konsave - A command line program written in Python to let you backup your dotfiles and switch to other ones in an instant. Works out-of-the box on KDE Plasma!