在我更新了Oh my bash之后,出现了这个错误,每次我启动控制台时都会出现。这让我失去了所有的东西。它显示了一些语法错误,但我不知道如何解决它们。
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
: command not found
-bash: /home/luismanzur/.oh-my-bash/lib/utils.sh: line 75: syntax error near unexpected token `$'{r''
'bash: /home/luismanzur/.oh-my-bash/lib/utils.sh: line 75: `function _omb_util_setexit {
_omb_util_glob_expand: command not found
: command not found
: command not found
-bash: /home/luismanzur/.oh-my-bash/aliases/general.aliases.sh: line 26: syntax error near unexpected token `$'{r''
'bash: /home/luismanzur/.oh-my-bash/aliases/general.aliases.sh: line 26: `function _omb_alias_general_cp_init {
_omb_util_function_exists: command not found
_omb_util_glob_expand: command not found
_omb_util_add_prompt_command: command not found
_omb_util_command_exists: command not found
(base) luismanzur@tululo:~$
我该如何解决?
显示/附加的内容
utils.sh
和
general.aliases.sh
使用谷歌搜索我发现:
https://gitcode.net/pattern/ohmybash/oh-my-bash/-/blob/master/aliases/general.aliases.sh?from_codechina=yes
内容为:
#!/usr/bin/env bash
alias cp='cp -iv' # Preferred 'cp' implementation
alias mv='mv -iv' # Preferred 'mv' implementation
alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation
alias ll='ls -lAFh' # Preferred 'ls' implementation
alias less='less -FSRXc' # Preferred 'less' implementation
alias nano='nano -W' # Preferred 'nano' implementation
alias wget='wget -c' # Preferred 'wget' implementation (resume download)
alias c='clear' # c: Clear terminal display
alias path='echo -e ${PATH//:/\n}' # path: Echo all executable Paths
alias show_options='shopt' # Show_options: display bash options settings
alias fix_stty='stty sane' # fix_stty: Restore terminal settings when screwed up
alias fix_term='echo -e "