From bash to zsh and everywhere in between, show me yours and I’ll show you mines. Inspire others or get some feedback.

Simply copy & paste the output of alias in your terminal or add some comments to explain things for others.

Edit: Kbin users, click ‘More’ on a comment and use the fediverse link to read responses that have funky formatting

  • chrishazfun@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago
    alias getmp4="yt-dlp -f 'bestvideo+bestaudio[ext=m4a]/best[ext=mp4]' --recode-video mp4"
    alias getmp3="yt-dlp -x --audio-format mp3"
    alias downloadwebsite="wget -mkEpnp"
    
    flushall () {
    	sudo pacman -Scc
    	sudo pacman -Rns $(pacman -Qdtq)
    	flatpak uninstall --unused
    }
    
    updateall () {
    	yay
    	flatpak update
    	while
    		read -p "Clear cache and uninstall orphans? (y/N)" answer
    	do
    		case $answer in
    			([yY][eE][sS] | [yY]) flushall;;
    			(*) break;;
    		esac
    	done
    }