Skip to content

Instantly share code, notes, and snippets.

@anuvyklack
Last active September 14, 2021 20:33
Show Gist options
  • Save anuvyklack/54256b7a49fac4b8b78a2be3b2c9349c to your computer and use it in GitHub Desktop.
Save anuvyklack/54256b7a49fac4b8b78a2be3b2c9349c to your computer and use it in GitHub Desktop.
[Bash scripts]

Check if package is installed and install otherwize

if ! dpkg-query -W -f='${Status}' $package | grep "ok installed";
then
    apt install $package;
fi

Make zsh primery shell

chsh -s $(which zsh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment