• Zron@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      15 days ago

      Now a days you have add —no-preserve root after the laggy French pack to fully remove it.

      • okr765@lemmy.okr765.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        14 days ago

        Not with the asterisk! The shell automatically expands the asterisk before sending the args to rm, removing every French language pack in your root directory.

      • ivanafterall ☑️@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        15 days ago

        If you’re out of the loop: this is part of the joke tricking people into dedicating precious hard drive space to an unnecessary language pack.

  • some_guy@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    ·
    15 days ago

    It’s a longer command. I wanna get shit done. I’m aliasing commands to make them shorter, not longer. But it does seem like it’d be a little friendlier.

    sudo make me a sandwich

  • hasecilu@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    13 days ago

    I prefer to use kudasai … but as some may already know, it should be at the end of the sentence command 😅, so I added a custom hook to my ZSH config to make it run commands as pacman -Syu kudasai.

    Essentially you can add any type of string matching in the function. Add this to the end of your .zshrc file:

    function kudasai_preexec() {
        # Check if the last word is ' kudasai'
        if [[ $1 == *" kudasai" ]]; then
            # Remove ' kudasai' and prepend 'sudo'
            cmd=${1%" kudasai"}
            eval "sudo $cmd"
            # Prevent the original command from running
            return 1
        fi
    }
    
    # Register the preexec hook
    autoload -Uz add-zsh-hook
    add-zsh-hook preexec kudasai_preexec
    

    Edit: as downside you always get 1 exit code with this implementation (little_annoying) .

  • untorquer@lemmy.world
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    15 days ago

    I don’t care what machine it is in not using pleasantries to tell it what to do until it gains sentience. Pleasantries are for people.

    Thus does become an issue for me when i use a call a support line and the actual person just happens to talk like a recorded menu.