Skip to content

Instantly share code, notes, and snippets.

@lee-pai-long
Created April 29, 2016 16:04
Show Gist options
  • Save lee-pai-long/44bab4cb77ad352f05b4157fe70e74c5 to your computer and use it in GitHub Desktop.
Save lee-pai-long/44bab4cb77ad352f05b4157fe70e74c5 to your computer and use it in GitHub Desktop.

[Linux Mint 17.2] Install MyCLI and grc

Install both grc and mycli

$ [sudo] apt-get install grc && \
> curl https://packagecloud.io/gpg.key | [sudo] apt-key add - && \
> [sudo] apt-get install -y apt-transport-https && \
> [sudo] sh -c \
> 'echo "deb https://packagecloud.io/amjith/mycli/ubuntu/ trusty main" \
> > /etc/apt/sources.list.d/mycli.list' && \
> [sudo] apt-get update && \
> [sudo] apt-get install mycli

Enable using grc with mycli

Create or update the file : ~/.my.cnf

[client]
pager = grcat ~/.grcat

Create the file : ~/.grcat

An example of grc configuration can be found here

MyCLI configuration documentation can be found here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment