A while ago I made a tiny function in my ~/.zshrc to download a video from the link in my clipboard. I use this nearly every day to share videos with people without forcing them to watch it on whatever site I found it. What’s a script/alias that you use a lot?

# Download clipboard to tmp with yt-dlp
tmpv() {
  cd /tmp/ && yt-dlp "$(wl-paste)"
}
  • jcs@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 hours ago

    I wrote this suite of scripts a few years ago and still use them to:

    1. Boot into Ventoy and select a Debian Live environment
    2. Optional: connect a storage device (local partition, USB drive, etc) for persistent storage
    3. Modify cfg/cfg.sh if it’s the first time using the tool
    4. Run setup.sh to configure the environment into a familiar/productive state

    The tools are flexible on hardware (more directed toward x64 systems at this time), and I (almost) never have to worry about OS upgrades. Just boot into a newer live OS image once it’s ready. They are still a work-in-progress and still have a few customizations that I should abstract for more general use, but it’s FOSS in case anyone has merge requests, issues, suggestions, etc.