The intended use-case for BaseDirectories is to query the paths of user-invisible standard directories that have been defined according to the conventions of the operating system the library is running on.
#!/bin/bash | |
generic_prefix='kMRMediaRemoteNowPlayingInfo' | |
apple_prefix='MRMediaRemoteMediaType' | |
# Requires Bash 4+ due to associative array usage in this script. | |
declare -A npc_response=( | |
[artist]='null' | |
[title]='null' | |
[album]='null' |
# The definition of color schemes. | |
schemes: | |
gruvbox_material_hard_dark: &gruvbox_material_hard_dark | |
primary: | |
background: '0x1d2021' | |
foreground: '0xd4be98' | |
normal: | |
black: '0x32302f' | |
red: '0xea6962' | |
green: '0xa9b665' |
- macOS 10.15.5
- tmux 3.1b
macOS has ncurses version 5.7 which does not ship the terminfo description for tmux. There're two ways that can help you to solve this problem.
Instead of tmux-256color
, use screen-256color
which comes with system. Place this command into ~/.tmux.conf
or ~/.config/tmux/tmux.conf
(for version 3.1 and later):
-- ███████╗██████╗ ██████╗ ███╗ ███╗ ████████╗██╗ ██╗███████╗ | |
-- ██╔════╝██╔══██╗██╔═══██╗████╗ ████║ ╚══██╔══╝██║ ██║██╔════╝ | |
-- █████╗ ██████╔╝██║ ██║██╔████╔██║ ██║ ███████║█████╗ | |
-- ██╔══╝ ██╔══██╗██║ ██║██║╚██╔╝██║ ██║ ██╔══██║██╔══╝ | |
-- ██║ ██║ ██║╚██████╔╝██║ ╚═╝ ██║ ██║ ██║ ██║███████╗ | |
-- ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚══════╝ | |
-- | |
-- ██████╗ ███████╗███████╗██╗ ██████╗██╗ █████╗ ██╗ █████╗ ██╗ ██╗███████╗ | |
-- ██╔═══██╗██╔════╝██╔════╝██║██╔════╝██║██╔══██╗██║ ██╔══██╗██║ ██║██╔════╝ | |
-- ██║ ██║█████╗ █████╗ ██║██║ ██║███████║██║ ███████║██║ █╗ ██║███████╗ |
replacing old 'mymove-packages' | |
installing 'mymove-packages' | |
these derivations will be built: | |
/nix/store/caqw0jcbw909zkx3j5lqwwa4ssnsdvrx-mymove-packages.drv | |
these paths will be fetched (37.58 MiB download, 169.98 MiB unpacked): | |
/nix/store/0xk767wa16miwacy3yq2jh10qb4f06x3-curl-7.84.0 | |
/nix/store/1d11rh5gv8r7940f17m6fgybxpr9n73j-bzip2-1.0.6.0.2 | |
/nix/store/1m3xkxfri4lwlnkhgkxgl2flcvf3s669-python3.10-platformdirs-2.5.2 | |
/nix/store/337wr623s6x4vkizbkaljiq9iqws11jn-zlib-1.2.12 | |
/nix/store/3gngv4wgnj0hvidfz1cfahzh2c3qn6yi-sqlite-3.39.0 |
# It takes me a little longer to open 1Pass to get my MFA number. | |
export DIRENV_WARN_TIMEOUT="90s" | |
# Create a DB_URL that I can consume in scripts and things | |
export DB_URL="postgres://${DB_USER}:${DB_PASSWORD}@${DB_HOST}:${DB_PORT}/${DB_NAME}" |
Webpack 4 automatically polyfilled many Node APIs in the browser. This was not a great system, because it could lead to surprisingly giant libraries getting pulled into your app by accident, and it gave you no control over the exact versions of the polyfills you were using.
So Webpack 5 removed this functionality. That means you need to make changes if you were relying on those polyfills. This is a quick reference for how to replace the most common patterns.
For each automatically-polyfilled node package name on the left, this shows the name of the NPM package that was used to polyfill it on the right. Under webpack 5 you can manually install these packages and use them via resolve.fallback
.