Project

General

Profile

Actions

Feature #380

closed

give Debian root color prompt

Added by Florian Effenberger about 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Low
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Tags:
Salt

Description

It'd be nice to give the give Debian root a color prompt - Ubuntu does this automatically
Seems to be working with the following lines in /root/.bashrc:

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
export LS_OPTIONS='--color=auto'
eval "`dircolors`" 
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
force_color_prompt=yes


Related issues

Related to Infrastructure - Feature #352: Alias ll='ls -l' by defaultClosedAlexander Werner

Actions
Actions #1

Updated by Alexander Werner about 10 years ago

  • Related to Feature #352: Alias ll='ls -l' by default added
Actions #2

Updated by Alexander Werner about 10 years ago

Also see /srv/salt/tdf/users/alias on floyd from Norbert.

Actions #3

Updated by Alexander Werner almost 10 years ago

  • Status changed from New to In Progress

Added to salt-states-base/users/root.bash_profile with the PS1

Actions #4

Updated by Alexander Werner almost 10 years ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF