Все сделал как вы написали, результат тот же. Вот вывод source ~/.bashrcОткрываете файл в текстовом редакторе удаляете из него все что там есть вставляете код:
сохраняете и применяете командой:Bash:# ~/.bashrc: executed by bash(1) for non-login shells. # If not running interactively, don't do anything case $- in *i*) ;; *) return;; esac # Enable color support for ls and add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias dir='dir --color=auto' alias vdir='vdir --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi # Some more alias to avoid making mistakes alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' # Custom aliases alias ll='ls -la' alias la='ls -A' alias l='ls -CF' # Set prompt PS1='\[\e]0;\u@\h: \w\a\]\[\033[01;34m\]\u@\h:\w\$\[\033[00m\] ' # Enable history appending instead of overwriting shopt -s histappend # Check the window size after each command and, if necessary, update the values of LINES and COLUMNS. shopt -s checkwinsize # Enable programmable completion features (you don't need to enable this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sourced on interactive shells). if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi # Pyenv initialization export PATH="$HOME/.pyenv/bin:$PATH" eval "$(pyenv init --path)" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)"
Код:source ~/.bashrc
Command 'shopt' not found, did you mean:
command 'shout' from deb libshout-tools
Try: apt install <deb name>
Command 'shopt' not found, did you mean:
command 'shout' from deb libshout-tools
Try: apt install <deb name>
Command 'shopt' not found, did you mean:
command 'shout' from deb libshout-tools
Try: apt install <deb name>
Command 'shopt' not found, did you mean:
command 'shout' from deb libshout-tools
Try: apt install <deb name>
complete: command not found
complete: command not found
complete: command not found
complete: command not found
complete: command not found
complete: command not found
complete: command not found
complete: command not found
complete: command not found
_comp_dequote__initialize:unset:2: no such hash table element:
/usr/share/bash-completion/bash_completion:615: parse error near `&'
\[\e]0;\u@\h: \w\a\]\[\033[01;34m\]\u@\h:\w$\[\033[00m\]
/usr/share/bash-completion/bash_completion:615: parse error near `&' данная строчка отличается от предыдущих выводов