Erreur du la configuration linux ubuntu

Fermé
Klack22 Messages postés 31 Date d'inscription dimanche 7 mars 2010 Statut Membre Dernière intervention 13 avril 2010 - 8 mars 2010 à 13:10
jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 - 8 mars 2010 à 13:12
Bonjour,
Encore merci pour votre aide!

1) Maintenant quand je rentre dans le terminal, j'ai cette erreur qui s'affiche en premier

bash: /home/armel/.bashrc: line 4: Erreur de syntaxe près du symbole inattendu « ) »
bash: /home/armel/.bashrc: line 4: `bash-doc)'
armel@armel-desktop:~$

2) voici le code qui affiche après avoir entrer la commande cat -n ${home}/ .bashrc
NB à la ligne 51, j'ai modifié le PS1 en ajoutant à la fin de cette ligne ceci: \u[\w] >'

De la ligne 98 à 107 c'est le code que j'ai rajouter, le reste je n'ai pas toucher


armel@armel-desktop:~$ cat -n $armel/ .bashrc
cat: /: est un dossier
1
2 # ~/.bashrc: executed by bash(1) for non-login shells.
3 # see /usr/share/doc/bash/examples/startup-files (in the package
4 bash-doc)
5 # for examples
6
7 # If not running interactively, don't do anything
8
9 [ -z "$PS1" ] && return
10
11 # don't put duplicate lines in the history. See bash(1) for more options
12 export HISTCONTROL=ignoredups
13 # ... and ignore same sucessive entries.
14 export HISTCONTROL=ignoreboth
15 # check the window size after each command and, if necessary,
16 # update the values of LINES and COLUMNS.
17 shopt -s checkwinsize
18
19 # make less more friendly for non-text input files, see lesspipe(1)
20 [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
21
22 # set variable identifying the chroot you work in (used in the prompt below)
23 if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
24 debian_chroot=$(cat /etc/debian_chroot
25 fi
26
27 # set a fancy prompt (non-color, unless we know we "want" color)
28 case "$TERM" in
29 xterm-color) color_prompt=yes;;
30 esac
31
32 # uncomment for a colored prompt, if the terminal has the capability; turned
33 # off by default to not distract the user: the focus in a terminal window
34 # should be on the output of commands, not on the prompt
35 #force_colored_prompt=yes
36
37 if [ -n "$force_color_prompt" ]; then
38 if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
39 # We have color support; assume it's compliant with Ecma-48
40 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
41 # a case would tend to support setf rather than setaf.)
42 color_prompt=yes
43 else
44 color_prompt
45 fi
46 fi
47
48 if [ "$color_prompt" = yes ]; then
49 PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033 [01;34m\]\w\[\033[00m\]\$ '
50 else
51 PS1='${debian_chroot:+($debian_chroot)}\u [\w] > '
52 fi
53 unset color_prompt force_color_prompt
54
55 # If this is an xterm set the title to user@host:dir
56 case "$TERM" in
57 xterm*|rxvt*)
58 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
59 ;
60 *)
61 ;;
62 esac
63
64 # Alias definitions.
65 # You may want to put all your additions into a separate file like
66 # ~/.bash_aliases, instead of adding them here directly.
67 # See /usr/share/doc/bash-doc/examples in the bash-doc package.
68
69 #if [ -f ~/.bash_aliases ]; then
70 # . ~/.bash_aliases
71 #fi
72
73 # enable color support of ls and also add handy aliases
74 if [ "$TERM" != "dumb" ] && [ -x /usr/bin/dircolors ]; then
75 eval "`dircolors -b`"
76 alias ls='ls --color=auto'
77
78 alias dir='ls --color=auto --format=vertical'
79 alias vdir='ls --color=auto --format=long'
80
81 alias grep='grep --color=auto'
82 alias fgrep='fgrep --color=auto'
83 alias egrep='egrep --color=auto'
84 fi
85
86 # some more ls aliase
87 alias ll='ls -alL'
88 alias la='ls -A'
89 alias l='ls -CF'
90
91 # enable programmable completion features (you don't need to enable
92 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
93 # sources /etc/bash.bashrc).
94 if [ -f /etc/bash_completion ]; then
95 . /etc/bash_completion
96 fi
97
98 #if [ "$TERM" != "dumb" ]; then
99 eval "`dircolors -b`"
100 alias ls='ls --color=auto'
101
102 fi
103
104 #ls Aliases
105 alias ll='ls -alL'
106 alias la='ls -A'
107 alias l='ls -CF'

Aidez-moi, afin que je puisse avancer dans ce projet. Merci!
A voir également:

1 réponse

jipicy Messages postés 40842 Date d'inscription jeudi 28 août 2003 Statut Modérateur Dernière intervention 10 août 2020 4 895
8 mars 2010 à 13:12
0