asg.sh

yo!

Since i run xubuntu on my desktop at the moment i’v thought it was a bit annoying type apt-cache search every time i wanted to search for a package. So i made a short alias for a bash script i wrote for “apt-cache search” with color highlighting.

Lets start with the bash script named asg.sh

After that you need to make the script executable. Do that with this command:

Now lets use this script. For easy access i made a short alias for my new script.

This is how my  .bash_aliases looks like: (nano .bash_aliases)

when you finished creating those 2 files in your home directory, you can start using asg and ai commands in a new terminal/tab.

To change color use asg command like this: