33
ankk98
5y

That moment when u realizes...

Comments
  • 11
    Pacman is best
  • 12
    $distro = *substring of cat /etc/issue"

    if [ $distro == 'Arch']
    then
    echo "alias apt-get=pacman" >> ~/.bashrc
    else
    echo "alias pacman=apt-get" >> ~/.bashrc
    fi
  • 1
    @IllSlapU It contains the distro name and version
  • 1
    Same problem here. One of my machines run arch the other one Ubuntu. Always mess pacman and apt up...
  • 3
    sudo apt ... [del] [del] [del] eopkg
  • 0
    @theuser why use a substring, when you can just search if it contains Arch
  • 1
    @Mitiko Because i'm an absolute noob in bash
  • 0
    @theuser Hey, I've never programmed in bash, I use PowerShell. Don't get sad
Add Comment