3 ms·
`alias android-cli='android-cli --no-metrics'`
by panzi 6mo ago
`alias android-cli='android-cli --no-metrics'`
- SJMG 6mo agoUh do aliases load in non-interactive shells?
- EdwardDiego 6mo agoYou could export BASH_ENV to have Bash processes source a given file at startup. Zsh has .zshenv, and Fish just has config.fish for everything with the ability to guard certain things within it to login only or non-interactive only.
- figmert 6mo agoCreate a wrapping binary instead mkdir -p ~/.local/bin printf '#!/usr/bin/env sh\nexec android-cli --no-metrics "$@"' > ~/.local/bin/android-cli echo 'PATH="$HOME/.local/bin:$PATH"' >> ~/.zshenv
- yorwba 6mo agoI'm pretty sure this will just call itself in a loop. You need to use the absolute path to the wrapped binary to distinguish it from the wrapper.