It can’t hurt to share some of you current helpers. Either someone else might get inspired by or in some cases you get suggestions how to make it better. Bash, Zsh, Fish or whatever shell script, command or alias (or abbreviation) you have, share here. Always fun to do so! I share mine in the comments, just like everybody else.

  • Kai e'Kael@lemmy.today
    link
    fedilink
    arrow-up
    2
    ·
    1 day ago

    I forget whom to blame for getting stuck with these. I want to say Slackware…in 1994.

    alias d='ls -aF --color=auto'
    alias v='d -l'
    
    

    And of course the ones I always recommend heartily:

    alias cp='cp -i'
    alias mv='mv -i'
    alias rm='rm -i'
    
    • thingsiplay@lemmy.mlOP
      link
      fedilink
      arrow-up
      1
      ·
      1 day ago

      I actually never used the -i option on any of these commands. On one hand I do not like having default options for file operations like these. Especially so with remove command. However I have to say, the uppercase -I on rm is quiet appealing, as it only kicks in with more than 3 files or when recursive. How you deal when you don’t need the interactive modes? My guess is just using a backslash like \rm in example, which will ignore aliases.