Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Gentoo, problème de profile, bashrc

Featured Replies

Posté(e)

Bon, voilà, j'ai installé une gentoo toute fraiche et là, je sèche sur le /etc/profile et le ~/.bashrc. Le problème étant, qu'à l'invite en console, tout est parfait, mais une fois que je fais un startx pour lancer kde, ce qui apparait dans mes consoles non plus rien à voir ;)

Voilà ce que j'ai pour un user normal et root (sauf que le $ est un #)

bash-2.05b$

Vais pas aller loin avec la version du bash...

bash-2.05b$ cat .bashrc

# /etc/skel/.bashrc:

# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/skel/.bashrc,v 1.8 2003/02/28 15:45:35 azarah Exp $

# This file is sourced by all *interactive* bash shells on startup.  This

# file *should generate no output* or it will break the scp and rcp commands.

# colors for ls, etc.

eval `dircolors -b /etc/DIR_COLORS`

alias d="ls --color"

alias ls="ls --color=auto"

alias ll="ls --color -l"

# Change the window title of X terminals

case $TERM in

        xterm*|rxvt|Eterm|eterm)

                PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'

                ;;

        screen)

                PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'

                ;;

esac

##uncomment the following to activate bash-completion:

[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion

bash-2.05b$ cat /etc/profile

# /etc/profile:

# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/profile,v 1.23 2003/04/29 21:23:18 azarah Exp $

if [ -e "/etc/profile.env" ]

then

        . /etc/profile.env

fi

# 077 would be more secure, but 022 is generally quite realistic

umask 022

if [ `/usr/bin/whoami` = 'root' ]

then

        # Do not set PS1 for dumb terminals

        if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]

        then

                export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'

        fi

        export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"

else

        # Do not set PS1 for dumb terminals

        if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]

        then

                export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'

        fi

        export PATH="/bin:/usr/bin:${PATH}"

fi

unset ROOTPATH

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]

then

        export INPUTRC="/etc/inputrc"

fi

# Extract the value of EDITOR

[ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`"

[ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic 2>/dev/null; echo $EDITOR`"

[ -z "$EDITOR" ] && EDITOR="/bin/nano"

export EDITOR

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.