My .bashrc Debian Wheezy

Well ... Today I bring you my configuration of. bashrc ..

What's interesting?

Well the first thing is that it has the debian logo when you start the console ..

The «Welcome can be changed .. You only edit the .bashrc ...

Second

Different color and configuration for Root user and Normal user.

Colors for files and folders.

Well without much more to say ..

Bashrc normal user.  http://paste.desdelinux.net/4664

bashrc ROOT  http://paste.desdelinux.net/4665

I hope you like something ..

Regards.!


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   aetsu said

    The headboard is very nice 😉

    I have a very interesting function that I got from Chakra's bashrc to extract files:

    # ex - archive extractor
    # usage: ex
    ex()
    {
    if [-f $ 1]; then
    case $ 1 in
    * .tar.bz2) tar xjf $ 1 ;;
    * .tar.gz) tar xzf $ 1 ;;
    * .bz2) bunzip2 $ 1 ;;
    * .rar) unrar x $ 1 ;;
    * .gz) gunzip $ 1 ;;
    * .tar) tar xf $ 1 ;;
    * .tbz2) tar xjf $ 1 ;;
    * .tgz) tar xzf $ 1 ;;
    * .zip) unzip $ 1 ;;
    * .Z) uncompress $ 1 ;;
    * .7z) 7z x $ 1 ;;
    *) echo "'$ 1' cannot be extracted via ex ()" ;;
    esac
    else
    echo "'$ 1' is not a valid file"
    fi
    }

  2.   Oscar said

    Thanks for the tuto, my console looks great.

  3.   Blaire pascal said

    Ohhh, I've always wanted to do that on my terminal. I'm new to KDE, I guess it will look great with the Konsole plasmoid. I'm going to see if I configure it with more blue colors and so that it has the Fedora logo. The contribution is appreciated.

  4.   John said

    I've downloaded the file, renamed it to .bashrc and copied it to my / home / user replacing the old one, but it doesn't look like this and it gives a lot of command not found errors. Did I do something wrong ?

    1.    @Jlcmux said

      It occurs to me that you check the permissions that the file has.

  5.   hexborg said

    I like it. It has some cool stuff. Thanks a lot.

  6.   Germaine said

    Thanks, I always wanted to know how to have a color for the user and another for the root, it is very interesting but complicated for a newbie like me; If it is not too much to ask, you could make one without the logos but only with the green color change for the user and red for root as I have seen in some distributions, and some explanation such as copy and paste to make it work.

    1.    @Jlcmux said

      http://paste.desdelinux.net/4666
      This one is without the logo. What you have to do is copy the content and paste it in the .basrc file that is in the home .. (replace everything)

      And then this for root copies it in /root/.basrch as root and if it does not exist create it ...

      Greetings.

    2.    @Jlcmux said

      The file for the /root/.bashrc is this http://paste.desdelinux.net/4667

  7.   helena_ryuu said

    I take away the colors in the types of files and folders. very useful ^^

  8.   Ilkana said

    Thank you very much, I love it!

  9.   Manuel R. said

    It doesn't work for me ... I throw a lot of mistakes.

    http://img600.imageshack.us/img600/1525/errorenterminal.png

    What I did was rename it to .bashrc and back up the original but I don't know if I have to do something else or if this code needs to be added to the original .bashrc.

    If someone could explain to me I would appreciate it.

    1.    Manuel R. said

      It already worked for me ... the mistake was mine for not reading the comments well, since they contain the answer ... sorry for the inconvenience.

      1.    Ripper said

        It throws me the same error as you solved it by deleting line 34?