• [^] # Re: Oui, avec pacman,

    Posté par . En réponse au journal Nouvelle version d'autojump. Évalué à 2.

    Oui, apparemment il est fourni par défaut avec le paquet bash de archlinux. Dans sa forme originale, il est comme cela. Je l'ai modifié pour qu'il n'écrase plus la variable PROMPT_COMMAND.

    #
    # /etc/bash.bashrc
    #
    # This file is the systemwide bashrc file. While most of the
    # environment is preserved when running an interactive shell
    # the PS[1-4] variables, aliases and functions are reset.
    #
    # When running a non-login shell, apply the following settings:
    # - Prompt defaults (PS[1-4], PROMPT_COMMAND)
    # - bash_completion if it exists
    # - source /etc/bash.bashrc.local

    PS1='[\u@\h \W]\$ '
    PS2='> '
    PS3='> '
    PS4='+ '

    export PS1 PS2 PS3 PS4

    if test "$TERM" = "xterm" -o \
    "$TERM" = "xterm-color" -o \
    "$TERM" = "xterm-256color" -o \
    "$TERM" = "rxvt" -o \
    "$TERM" = "rxvt-unicode" -o \
    "$TERM" = "xterm-xfree86" \
    ; then

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

    [ -r /etc/bash_completion ] && . /etc/bash_completion
    [ -r /etc/bash.bashrc.local ] && . /etc/bash.bashrc.local

    Systemd, the bright side of linux, toward a better user experience and on the road to massive adoption of linux for the desktop.