We all know this. We need to do a specific task and with the help of the internet we find a specific tool alongside command line parameters to do the job right from the shell.

What is a good way of collecting/documenting these snippets on your own for future reference and use? Just a text file in the home folder?

  • nycki@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    i use a joplin notebook. its like a private wiki, and it works on android too.

  • Random Dent@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    6 months ago

    I do mine in Obsidian, I just have a folder for ‘computer notes’ and whenever I figure out a new thing I drop it in there.

    Some stuff I use often I set up as an alias too. So for example I have alias yt='yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4"' for my most commonly used yt-dlp settings, so now I can just do yt [URL of video] to quickly download something from YouTube. Or alias rs="sudo rsync --ignore-existing -rav" for my rsync settings for a specific backup folder I copy a lot.

  • torgeir@lemmy.ml
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    5 months ago

    I put mine as zsh autoloads. This way feels almost as light as creating aliases once set ut, and also allows for the scripts to have slow initializing code and still be readily available, without having to load everything immediately when zshrc loads and wait for it all the time, even when you might not need it.