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.!
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
}
Thanks for the tuto, my console looks great.
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.
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 ?
It occurs to me that you check the permissions that the file has.
I like it. It has some cool stuff. Thanks a lot.
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.
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.
The file for the /root/.bashrc is this http://paste.desdelinux.net/4667
I take away the colors in the types of files and folders. very useful ^^
Thank you very much, I love it!
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.
It already worked for me ... the mistake was mine for not reading the comments well, since they contain the answer ... sorry for the inconvenience.
It throws me the same error as you solved it by deleting line 34?