How to configure screen and ls as best as possible

Please note: This is highly personal and given with minimal explanations... Essentially, these are my .screenrc and .bashrc files.

I use these everyday, but they may, or may not suit your taste...

1. The .screenrc file:

Simple, and straightforward:

# --------
# Screen configuration file, with improvements from: 

# terminal definition
term xterm

# shell definition
shell /usr/bin/bash

# no annoying beep 
vbell on

# replace beep by a visual message
vbell_msg " *BIP* "

# no startup message
startup_message off                        # default: on

# raise the scrollback value 
defscrollback 65535		# default: 100

# indicate terminal has scroll back capabilities [?]
# does not seem to work, so highly optional
termcapinfo xterm ti@:te@

# status bar
# please see:
hardstatus alwayslastline
hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
# in case of UTF-8 display problems, replace by: 
# hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %m %Y %c:%s%{-}'
# %M displays month as name (Jan, Feb, etc...) %m displays moth name as numerical value (01, 02, etc...)

Copy this into your system and you are ready to go!

2. The .bashrc file:

PLEASE NOTE: This is highly Linux-centric, but I find the result to be pleasing to the eyes as well as useful on Linux systems.

Easy step-by-step procedure to create this file:

touch ~/.bashrc
dircolors -b >> ~/.bashrc

This sets-up the default Linux coloring scheme.


vi ~/.bashrc

And add the following line at the bottom of the .bashrc file:

alias ls="ls -F --color=always"

You should end up with the following:

LS_COLORS='rs=0:di=01;34:ln=01;36:hl=44;37:pi=40;33:so=01;35:do=01;35:bd=40;33; (... etc, this line is very long...)';
export LS_COLORS
alias ls="ls -F --color=always"

That's it! Nice and easy on the eyes... :-)

See Also: