• @sirnak
      link
      English
      22 years ago

      Why haven’t I heard of this before?? Absolute gamechanger o_O

  • @[email protected]
    link
    fedilink
    English
    4
    edit-2
    2 years ago

    My answers (mostly running in powershell - not that it makes much of a difference!)

    Rust-based utilities I couldn’t live without:

    • fd (fd-find) for finding my files
    • rg (ripgrep) for string searches
    • sd (sed) for search and replace
    • dust (dust) for information about my directories
    • lsd (aliased to ls or l) for replacing Dir
    • bat (better cat) - for when the help pages are too long

    Other stuff I love:

    • htop - I just learned you can run this in WSL to see all your system cores. It’s pretty!
    • nvim - obviously. The best vim. Even works in VSCode
  • @[email protected]
    link
    fedilink
    42 years ago

    In Bash, I like to use cdargs

    sudo apt-get install cdargs

    It allows you to set up shortcuts on the fly,

    cv sdbackup

    rather than cd /media/user/Backup Plus/ MyFiles/current/sdbackup

    cv with no argument will give you a list to select from current shortcuts

  • @[email protected]
    link
    fedilink
    3
    edit-2
    2 years ago

    I write a lot of bash scripts that end up running in automation in some fashion.

    #!/usr/bin/env bash
    
    set -euxo pipefail
    

    Is pretty standard for me.

    -e exit on error

    -o pipefail exit on pipeline fail

    -u error on unset variables

    -x trace

  • GammaM
    link
    fedilink
    2
    edit-2
    2 years ago

    pv, which is like cat, simply copying files or stdin to stdout, but prints statistics to the terminal.

    A related tip: dd isn’t special in the way most people use it. This works too, if you’re root: pv my-fav-distro.iso > /dev/sdc