[en] [fr]

[HowTo] 1.2 | Customize the shell

CONTENT_BY

This chapter is optional, but I like to have some custom stuff in my shell. If you don't mind that, go to chapter three.

Firstable, I like to have some aliases for shell comands. For example, the « ls -l » command, we use it all the time. What about contracting it in a simple « ll ». You'll see it's very pleasant to use :) So, we have to edit the /etc/bash.bashrc file:

#vi /etc/bash.bashrc

At the end of the file, add theses lines:

# Some aliases
alias ls="ls --color=auto"
alias ll="ls -l --color=auto"
alias la="ls -a --color=auto"
alias lla="ls -la –color=auto"

If you understand the idea, you can add your own aliases.

The second thing I have in mind at the moment, is to add the syntax colors in the vi editor.

#vi /etc/vim/vimrc

Look for the line « syntax on » and uncomment this line (strip the apostrophe at the start of the line), or add the line yourself if it doesn't exist.

Then save and quit.

 

You're done. Let's go to chapter three: Install apache

CONTENT_TITLE_COMMENTS

CONTENT_COMMENTS_THERE_ARE
CONTENT_BTN_POST_A_COMMENT
CONTENT_MSG_NO_COMMENTS