Helper scripts I've collected
Show truecolor colors in terminal
Show 8-bit colors in terminal
Add a certificate
brew repair to hard reset and brew update
256color test script from base16-shell
Simple alternative to apachebench to get request time for a URL
Output centered text
Remove the bash completion script for git since I only want zsh to use site-functions.
Output bordered centered text
Get actual JRE home, not fake output of java_home
source
Draw a terminal-width line using =
Check for directory, prompt to create if it doesn't exist
open or xdg-open
Check if two filepaths are the same after resolving symlinks.
Check if path A is symlinked to path B, prompt to do so if not.
Pretty print the $DKO_SOURCE env variable to see sourced files
Shortcuts to update dotfiles, packages, and general system maintenance.
Open files in a shared nvim instance -- one per WezTerm tab, a single global one elsewhere -- or fall back to $EDITOR
Edit a file in the git root
Find and edit the nginx.conf file
Open files in an nvim that neither forks nor shares a socket, and skips shada
-- for $EDITOR callers that have to block
Find and edit the php.ini file
Open $EDITOR in a new small WezTerm window, which closes when it exits
Recursively flatten a directory
Get directory total filesize
Look upwards from $PWD for filename $1, output to stdout if found. Does not
follow symlinks.
macOS, FZF + SwitchAudioSource
FZF-interface for selecting a git branch
FZF-interface for selecting a git branch including remotes, sorted by latest
Switch to a different worktree using FZF
Switch to a different XCode version
Download the nightly WezTerm AppImage matching this system's Ubuntu/glibc
version to ~/.local/bin/ (Linux)
List git committers and number of commits
Copy a git branch
Print the SHA of the most recent commit, optionally limited to given paths
Fast-forward local main to its remote, also from a bare-repo worktree
Check if given directory is a git repository, and display its root and origin
Get user's ssh public keys from GitHub
List pull requests since last tag
Use GitHub or GitLab cli tools to open current repo in browser.
Fall back to dko-open if the repo origin is https.
Side-by-side git diff using delta as the pager.
Takes regular git diff options.
Show commits since midnight
$GIT_EDITOR wrapper -- enofork with the editor context set
List Jira issues assigned to me
Linux. Join a group and reload user's groups
Show user's local ip
macOS. lock screen
Echo the git root or pwd if not in git repo
Send a desktop notification through the terminal with an OSC 9 escape
Pretty list path env
pokemon
Delete empty subdirectories below the cwd, after confirming (-y to skip)
Rename a symlink's source file and update the symlink
Delete .git/tags if it exists in a repository
Start HTTP server in current directory
Get current connected ssid
Find missing steam libs in linux
Find missing steam libs in linux
Display terminal colors
Toggle macOS mouse acceleration (e.g. for gaming)
Remove the per-tab nvim sockets left behind by closed WezTerm tabs
Print the WezTerm tab ID owning the current pane, so e can scope its nvim socket to the tab
Get current wifi password in plaintext
Open nearest *.xcworkspace