useful-scripts/conf/zshenv

4 lines
278 B
Text
Raw Normal View History

2025-10-29 16:55:38 +00:00
#!/bin/zsh
alias apt-install-url='function _apt-install-url(){ local destfile="$(mktemp --suffix ".deb")"; wget --quiet --show-progress --output-document "${destfile}" "${1}"; sudo apt install "${destfile}"; rm -f "${destfile}"; unset -f _apt-install-url; }; _apt-install-url'