ls and colours when listing
i remember i created a softlink pointing at /bin/sh and after i removed it when i give "ls" i don't get folders showing up in blue or executables showing up in green.How can i fix that ?!
|
i put an alias in my ~/.bashrc and that worked:
# User-defined section alias ls='ls -F --color' just do "source ~/.bashrc" after you change it. |
tnx.
And how do i get to see: $user@$domain$workingpath (e.g. user1@user1domain~$) instead of -bash-$version (e.g. -bash-2.04$) |
you put that in the .bashrc, too (or /etc/profile sometimes). here's a tutorial that covers it all pretty well:
http://www-106.ibm.com/developerwork.../l-tip-prompt/ |
make your bashrc like this:
Code:
echelon@core:~$ cat .bashrc Code:
echelon@core:~$ ll .bash* |
Quote:
Bash Prompt HOWTO Anyway add this to your ~/.bashrc export PS1="[\u@\h \w]\\$" |
All times are GMT -5. The time now is 10:43 PM. |