[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Alias - Erreur pour recharger .bashrc



Bonjour,
Pouvez vous m'aider pour .bashrc ?
J'ai ajouté des alias, mais, je n'arrive pas à recharger le .bashrc
Mon shell est zsh.


Exemples pour des alias avec apt-get
alias search='apt-cache search'
alias show='apt-cache show'
alias install='sudo apt-get install'
alias remove='sudo apt-get remove'
alias update='sudo apt-get update'
alias upgrade='sudo apt-get upgrade'

    
Utiliser ensuite la commande update && upgrade pour lancer une mise à jour.
Recharger .bashrc avec la commande source ~/.bashrc
J'ai une erreur avec mon .bashrc

    
source ~/.bashrc
/home/root/.bashrc:16: command not found: shopt
/home/root/.bashrc:24: command not found: shopt
/home/root/.bashrc:122: command not found: shopt
/usr/share/bash-completion/bash_completion:51: command not found: shopt
/usr/share/bash-completion/bash_completion:57: command not found: complete
/usr/share/bash-completion/bash_completion:62: command not found: complete
/usr/share/bash-completion/bash_completion:65: command not found: complete
/usr/share/bash-completion/bash_completion:68: command not found: complete
/usr/share/bash-completion/bash_completion:71: command not found: complete
/usr/share/bash-completion/bash_completion:74: command not found: complete
/usr/share/bash-completion/bash_completion:77: command not found: complete
/usr/share/bash-completion/bash_completion:80: command not found: complete
/usr/share/bash-completion/bash_completion:83: command not found: complete
/usr/share/bash-completion/bash_completion:86: command not found: complete
/usr/share/bash-completion/bash_completion:89: command not found: complete
/usr/share/bash-completion/bash_completion:92: command not found: complete
/usr/share/bash-completion/bash_completion:314: parse error near `\n'
\[\e]0;\u@\h \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\h\[\033[01;34m\] \W \$\[\033[00m\]

Source : https://www.visionduweb.eu/wiki/index.php?title=Utiliser_des_commandes_shell_avec_le_terminal#Exemples_pour_des_alias_avec_apt-get

Reply to: