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

  • treeshateorcs
    link
    5
    edit-2
    8 months ago

    the only thing this does is add “–recursive” to every git clone invocation

    
    git() {
      if [ "$1" = clone ]; then
        shift
        set -- clone --recursive "$@"
      fi
      command git "$@"
    }
    
    • treeshateorcs
      link
      28 months ago

      same for gh (github cli)

      gh() {
        if [[ "$1" = repo && "$2" = clone ]]; then
          shift
          shift
          set -- repo clone "$@" -- --recursive
        fi
        command gh "$@"
      }