Alias LL = 'LS-al'
Use_color = false
# Set colorful PS1 only on colorful terminals.
# Dircolors -- print-database uses its own built-in Database
# Instead of using/etc/dir_colors. Try to use the external file
# First to take advantage of user additions. Use internal bash
# Globbing instead of external grep binary.
Safe_term =$ {term/[^ [: alnum:]/?} # Sanitize term
Match_lhs = ""
[[-F ~ /. Dir_colors] & match_lhs = "$ {match_lhs }$ (<~ /. Dir_colors )"
[[-F/etc/dir_colors] & match_lhs = "$ {match_lhs }$ (</etc/dir_colors )"
[[-Z $ {match_lhs}] \
& Type-P dircolors>/dev/null \
& Match_lhs = $ (dircolors -- print-database)
[[$ '\ N' $ {match_lhs }=* $' \ N' "term" $ {safe_term} *] & use_color = true
If $ {use_color}; then
# Enable colors for LS, etc. Prefer ~ /. Dir_colors #64489
If type-P dircolors>/dev/NULL; then
If [[-f ~ /. Dir_colors]; then
Eval $ (dircolors-B ~ /. Dir_colors)
Elif [[-F/etc/dir_colors]; then
Eval $ (dircolors-B/etc/dir_colors)
Else
Eval $ (dircolors)
Fi
Fi
If [[$ {EUID} = 0]; then
PS1 = '$ {debian_chroot: + ($ debian_chroot)} \ [\ 033 [01; 31m \] \ H \ [\ 033 [01; 34m \] \ W \ $ \ [\ 033 [00m \]'
Else
PS1 = '$ {debian_chroot: + ($ debian_chroot)} \ [\ 033 [01; 32m \] \ [email protected] \ H \ [\ 033 [01; 34m \] \ W \ $ \ [\ 033 [00m \]'
Fi
Alias ls = 'ls -- color = auto'
Alias grep = 'grep -- color = auto'
Else
If [[$ {EUID} = 0]; then
# Show [email protected] When we don't have colors
PS1 = '\ [email protected] \ H \ W \ $'
Else
PS1 = '\ [email protected] \ H \ W \ $'
Fi
Fi