ciao a tutti, facendo un upgrade di bash3 mi è scomparso il prompt classico, utente@macchina, ora mi ritrovo solo scritto bash-3.00#
:master:
ciao a tutti, facendo un upgrade di bash3 mi è scomparso il prompt classico, utente@macchina, ora mi ritrovo solo scritto bash-3.00#
:master:
probabilmente nell'installazione hai modificato qualche file di configurazione
powered by GNU/Linux Gentoo
A Elbereth Gilthoniel o menel palan-diriel, le nallon sí di-nguruthos! A tiro nin, Fanuilos!
Devi modificare o ripristinare il file .bashrc sulla tua home per tornare alla situazione precedente
io ho in /etc/profile un
e ho tutto in /etc/bash/bashrccodice:if [ -f /etc/bash/bashrc ] ; then . /etc/bash/bashrc
powered by GNU/Linux Gentoo
A Elbereth Gilthoniel o menel palan-diriel, le nallon sí di-nguruthos! A tiro nin, Fanuilos!
mi posti il tuo bashrc pf?Originariamente inviato da Guglie
io ho in /etc/profile un
e ho tutto in /etc/bash/bashrccodice:if [ -f /etc/bash/bashrc ] ; then . /etc/bash/bashrc
ok, ma occhio che è modificato sulla base di quello di gentoo
codice:# /etc/bash.bashrc: # $Header: /var/cvsroot/gentoo-x86/app-shells/bash/files/bashrc,v 1.6 2005/05/26 22:07:59 vapier Exp $ # # This file is sourced by all *interactive* bash shells on startup, # including some apparently interactive shells such as scp and rcp # that can't tolerate any output. # Test for an interactive shell. There is no need to set anything # past this point for scp and rcp, and it's important to refrain from # outputting anything in those cases. if [[ $- != *i* ]] ; then # Shell is non-interactive. Be done now return fi # Bash won't get SIGWINCH if another process is in the foreground. # Enable checkwinsize so that bash will check the terminal size when # it regains control. #65623 # http://cnswww.cns.cwru.edu/~chet/bash/FAQ (E11) shopt -s checkwinsize # 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_color=false safe_term=${TERM//[^[:alnum:]]/.} # sanitize TERM if [[ -f /etc/DIR_COLORS ]] ; then grep -q "^TERM ${safe_term}" /etc/DIR_COLORS && use_color=true elif type -p dircolors >/dev/null ; then if dircolors --print-database | grep -q "^TERM ${safe_term}" ; then use_color=true fi fi if ${use_color} ; then BLACK="\[\033[0;30m\]" RED="\[\033[0;31m\]" GREEN="\[\033[0;32m\]" BROWN="\[\033[0;33m\]" BLUE="\[\033[0;34m\]" PURPLE="\[\033[0;35m\]" CYAN="\[\033[0;36m\]" LGRAY="\[\033[0;37m\]" DGRAY="\[\033[1;30m\]" LRED="\[\033[1;31m\]" LGREEN="\[\033[1;32m\]" YELLOW="\[\033[1;33m\]" LBLUE="\[\033[1;34m\]" LPURPLE="\[\033[1;35m\]" LCYAN="\[\033[1;36m\]" WHITE="\[\033[1;37m\]" NORMAL="\[\033[00m\]" MYL1="\033(0l\033(B" MYL2="\033(0mq\033(B" MYL3="\033(0q\033(B" MYL4="\033(0vq\033(B" MYDATE="\$(/bin/date +'%d %B %Y - %H:%M')" MYPTY="`tty | sed -e "s:/dev/::"`" MYKERNEL="`uname -r`" BATTERY="\$(/usr/bin/get_battery_percent)" if [[ ${EUID} == 0 ]] ; then PS1="\n$WHITE$MYL1$MYL3[ $LGREEN\u@\h$WHITE ]-[ $LBLUE$BATTERY %$WHITE ]-[ $LBLUE$MYDATE$WHITE ]-[ $LBLUE\w$WHITE ]\n$MYL2> $NORMAL" else PS1="$WHITE\n$MYL1$MYL3[ $LRED\u@\h$WHITE ]-[ $LBLUE$BATTERY %$WHITE ]-[ $LBLUE$MYDATE$WHITE ]-[ $LBLUE\w$WHITE ]\n$MYL2> $NORMAL" fi else if [[ ${EUID} == 0 ]] ; then # show root@ when we don't have colors PS1='\u@\h \W \$ ' else PS1='\u@\h \w \$ ' fi fi
powered by GNU/Linux Gentoo
A Elbereth Gilthoniel o menel palan-diriel, le nallon sí di-nguruthos! A tiro nin, Fanuilos!
Non ce n'è bisogno, basta che ti rimetti quello che sta in /etc/skel/.bashrcOriginariamente inviato da side-server
mi posti il tuo bashrc pf?
Io sto su una ubuntu hoary, ecco il mio:
Ciaocodice:# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything [ -z "$PS1" ] && return # don't put duplicate lines in the history. See bash(1) for more options #export HISTCONTROL=ignoredups # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # enable color support of ls and also add handy aliases if [ "$TERM" != "dumb" ]; then eval "`dircolors -b`" alias ls='ls --color=auto' #alias dir='ls --color=auto --format=vertical' #alias vdir='ls --color=auto --format=long' fi # some more ls aliases #alias ll='ls -l' #alias la='ls -A' #alias l='ls -CF' # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)" # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color) PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' ;; *) PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' ;; esac # Comment in the above and uncomment this below for a color prompt #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' ;; *) ;; esac # Define your own aliases here ... #if [ -f ~/.bash_aliases ]; then # . ~/.bash_aliases #fi # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). #if [ -f /etc/bash_completion ]; then # . /etc/bash_completion #fi
cosa ci dovrebbe essere in /etc/skel? da me è quella directory è vuota..Originariamente inviato da maiosyet_2
Non ce n'è bisogno, basta che ti rimetti quello che sta in /etc/skel/.bashrc
powered by GNU/Linux Gentoo
A Elbereth Gilthoniel o menel palan-diriel, le nallon sí di-nguruthos! A tiro nin, Fanuilos!