Results 1 to 5 of 5

Thread: Need info on finding a terminal program

  1. #1
    Join Date
    Apr 2011
    Beans
    18

    Need info on finding a terminal program

    I tried Mint for a few days and one thing I really liked was that the terminal had witty little quotes when I opened it. I am wondering how this is done, is there different terminals that you can download that include such things or is that an add on that you can download to add to any terminal.


    Thanks for the help in advance

  2. #2
    Join Date
    Feb 2009
    Location
    Netherlands
    Beans
    784

    Re: Need info on finding a terminal program

    It's not the terminal app, you can do that in any terminal. Put a command that produces a quote at the end of the file ~/.bashrc and voila. Like explained here, only where it says "sudo gedit /etc/bash.bashrc" you can just do "gedit ~/.bashrc" as well, no need for root permissions. You need to do gksudo with graphical apps like gedit anyway.
    Explanation: the point is, your terminal app runs bash when it starts. Bash does everything that /etc/bash.bashrc and ~/.bashrc tells it to do, like how the prompt looks like and load aliases and stuff. If you add a command in ~/.bashrc, at the end, it will be executed every time bash is started, like when a terminal is opened. Run "bash" inside a terminal and you'll have the quote again.
    Last edited by VCoolio; April 27th, 2011 at 11:11 PM.

  3. #3
    Join Date
    Apr 2011
    Beans
    18

    Re: Need info on finding a terminal program

    thanks I will look it up and let you know how it goes.

  4. #4
    Join Date
    Jul 2010
    Location
    Michigan, USA
    Beans
    2,136
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Need info on finding a terminal program

    I believe Mint just uses fortune and cowsay to do the funny quips. You can set it up like this...
    Code:
    sudo apt-get install fortune cowsay
    Then edit your .bashrc like this
    Code:
    sudo nano /etc/bash.bashrc
    And paste this at the bottom
    Code:
    fortune | cowsay -n
    echo
    Hope that helps.

    Edit: I Should have read above post, covers exactly what I said

  5. #5
    Join Date
    Apr 2011
    Beans
    18

    Re: Need info on finding a terminal program

    Thank you both that is exactly what I was looking for and it works awesome.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •