Previously when upgrading all, no package names were passed in, meaning
if a new package has become available since the xbar script last ran,
that would be updated too.
Now instead each listed package in the xbar menu is explicitly passed to
brew.
Previously the xbar plugin would refresh as soon as you clicked on an
update, but since brew upgrades takes much longer to run in the popped
up terminal window. This now uses the xbar:// URI scheme to trigger a
plugin refresh after the brew commands have run in the terminal.
Also work around an issue where "brew services list" does not print the
status at all for some running services, so it instead just prints the
service name and the user it's running under.
Quick and hacky bash script which supports loading .envrc files suitable
for direnv, but with support for local override files, and named
environment files, and supports looking for the .envrc* files upwards in
parent folders.
For example, when you run:
envy echo hi
It will look in the current folder, and all parent folders for any files
named:
- .envrc
- .envrc.local
- .envrc.echo
- .envrc.echo.local
The first such file that is found is considered to be in the project
root, and all further files checked for will only be checked for in said
project root.
The first argument to envy is considered a environment name if there is
a matching .envrc.<name> file. If not such machine file is found, the
first argument is treated as part of the command you want to run.
Meaning with the above example, if ".envrc.echo" or ".envrc.echo.local"
exists, the command that will be executed is "hi", but if neither of
them exist, it will execute "echo hi".
To define environment variables in a .envrc* file, you use use bash's
export statement.
The dc alias still uses "docker compose" to access the newer built-in
compose command. I still was quick access to the older one, as I've had
some edge-case issues with the built-in variant.
And also setup and configure fzf zsh plugins:
- ctrl+r searches shell history.
- ctrl+t searches for files and folders by name recursively within
current directory while previewing highlighted item via less.
- alt+c recursively lists directories within current directory, and
changes to the selected directory.