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

  • @redxef@feddit.de
    link
    fedilink
    151 year ago

    I couldn’t even work if I had aliases in my muscle memory. Imagine ssh’ing to a server and every second command you issue doesn’t exist because it’s some weird alias you set up for yourself.

    I’ll stick with the “pure” command and use tab completion.

    That’s also part of the reason why I don’t use some of the fancy new tools like ripgrep and exa.

    • @duncesplayed@lemmy.one
      link
      fedilink
      English
      111 year ago

      Yeah, I remember when Linux was first becoming cool, in the mid-to-late 90s. There was a lot of folk wisdom going around, and one of them was “make an alias rm='rm -i' so you don’t accidentally delete anything!”

      And then there was the (correct, IMHO) counter-wisdom of “no, that actually makes it more likely to accidentally delete something, because one day you’re going to be on a machine where that alias doesn’t exist, but you’ve become dependent on it existing”.

      I don’t mind creating aliases to add colour or change formatting a little bit or something, but don’t make an alias to keep yourself safe, because it’ll probably backfire on you.

    • RaivoKulli
      link
      fedilink
      21 year ago

      You couldn’t even work if you made a few longer commonly used commands convenient aliases? Well alright.

      I can’t imagine how you feel about bash scripts lol.

      • Not the person you responded to, but sure. Breaking muscle memory is extremely grating.

        Also, it’s pretty easy to type long commands with little typing. If you use ctrl+r to search backward in your history, you can easily recall long commands - and also, you can use ctrl+x,ctrl+e to edit the current command line in $EDITOR so you can edit long commands. These two tricks make it very easy to type long commands quickly with very little typing.

        • RaivoKulli
          link
          fedilink
          -11 year ago

          it’s pretty easy to type long commands with little typing

          Big if true