Link to home
Start Free TrialLog in
Avatar of tamirmilo
tamirmiloFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Bash profile best practice

Hello,
Can any one provide me best practice to bash profile? Or a good template ?
Thank you.
Avatar of farzanj
farzanj
Flag of Canada image

This is kind of subjective.  Do you have any specifics in your mind?

Do you want to customize the prompt, you will have to have modify PS1 environment variable.

You can set certain aliases for command you frequently use.

You also would set up path to include your current directory so that you don't have to do ./
Just put
export PATH=$PATH:.

You can make the history file very long, I typically make it 100000 commands so that you can recall really older commands as well
ASKER CERTIFIED SOLUTION
Avatar of xterm
xterm

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tamirmilo

ASKER

Thank you,