1 2 3 4 5
#!/bin/sh if command -v ag >/dev/null 2>&1; then alias ag="ag --color --smart-case" fi
Consider giving Nix/NixOS a try! <3