The terminal crashed, how to recover?

the terminal crashed after the time machine restored the backup, how to save it?

> /Users/libai/.zshrc:source:122: no such file or directory:
> /usr/local/etc/bash_completion.d/password-store Could not find
> platform independent libraries <prefix>                          
> Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] Fatal Python
> error: Py_Initialize: unable to load the file system codec Traceback
> (most recent call last):   File
> "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/encodings/__init__.py",
> line 31, in <module> ModuleNotFoundError: No module named "codecs"


.zshrc
-sharp If you come from bash you might have to change your $PATH.
-sharp export PATH=$HOME/bin:/usr/local/bin:$PATH

-sharp Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh

-sharp Set name of the theme to load. Optionally, if you set this to "random"
-sharp it"ll load a random theme each time that oh-my-zsh is loaded.
-sharp See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME=""
export PS1="\[\e[35;1m\][\u@\h \W]$>\[\e[0m\]"
-sharp Set list of themes to load
-sharp Setting this variable when ZSH_THEME=random
-sharp cause zsh load theme from this variable instead of
-sharp looking in ~/.oh-my-zsh/themes/
-sharp An empty array have no effect
-sharp ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
function powerline_precmd() {
  PS1="$(powerline-shell --shell zsh $?)"
}

function install_powerline_precmd() {
for s in "${precmd_functions[@]}"; do
  if [ "$s" = "powerline_precmd" ]; then
    return
  fi
done
precmd_functions+=(powerline_precmd)
}

if [ "$TERM" != "linux" ]; then
  install_powerline_precmd
fi

-sharp Uncomment the following line to use case-sensitive completion.
-sharp CASE_SENSITIVE="true"

-sharp Uncomment the following line to use hyphen-insensitive completion. Case
-sharp sensitive completion must be off. _ and - will be interchangeable.
-sharp HYPHEN_INSENSITIVE="true"

-sharp Uncomment the following line to disable bi-weekly auto-update checks.
-sharp DISABLE_AUTO_UPDATE="true"

-sharp Uncomment the following line to change how often to auto-update (in days).
-sharp export UPDATE_ZSH_DAYS=13

-sharp Uncomment the following line to disable colors in ls.
-sharp DISABLE_LS_COLORS="true"

-sharp Uncomment the following line to disable auto-setting terminal title.
-sharp DISABLE_AUTO_TITLE="true"

-sharp Uncomment the following line to enable command auto-correction.
-sharp ENABLE_CORRECTION="true"

-sharp Uncomment the following line to display red dots whilst waiting for completion.
-sharp COMPLETION_WAITING_DOTS="true"

-sharp Uncomment the following line if you want to disable marking untracked files
-sharp under VCS as dirty. This makes repository status check for large repositories
-sharp much, much faster.
-sharp DISABLE_UNTRACKED_FILES_DIRTY="true"

-sharp Uncomment the following line if you want to change the command execution time
-sharp stamp shown in the history command output.
-sharp The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
-sharp HIST_STAMPS="mm/dd/yyyy"

-sharp Would you like to use another custom folder than $ZSH/custom?
-sharp ZSH_CUSTOM=/path/to/new-custom-folder

-sharp Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
-sharp Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
-sharp Example format: plugins=(rails git textmate ruby lighthouse)
-sharp Add wisely, as too many plugins slow down shell startup.
plugins=(
git zsh-syntax-highlighting 
)
plugins=(
git autojump
)
[[ -s $(brew --prefix)/etc/profile.d/autojump.sh ]] && . $(brew --prefix)/etc/profile.d/autojump.sh


source $ZSH/oh-my-zsh.sh
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
-sharp User configuration

-sharp export MANPATH="/usr/local/man:$MANPATH"

-sharp You may need to manually set your language environment
-sharp export LANG=en_US.UTF-8

-sharp Preferred editor for local and remote sessions
-sharp if [[ -n $SSH_CONNECTION ]]; then
-sharp   export EDITOR="vim"
-sharp else
-sharp   export EDITOR="mvim"
-sharp fi

-sharp Compilation flags
-sharp export ARCHFLAGS="-arch x86_64"

-sharp ssh
-sharp export SSH_KEY_PATH="~/.ssh/rsa_id"

-sharp Set personal aliases, overriding those provided by oh-my-zsh libs,
-sharp plugins, and themes. Aliases can be placed here, though oh-my-zsh
-sharp users are encouraged to define aliases within the ZSH_CUSTOM folder.
-sharp For a full list of active aliases, run `alias`.
-sharp
-sharp Example aliases
-sharp alias zshconfig="mate ~/.zshrc"
-sharp alias ohmyzsh="mate ~/.oh-my-zsh"
alias c="cd /Users/libai/codelearning"
alias s11="source /Users/libai/codelearning/11_env/bin/activate"
alias swift="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift"
alias ec="ebook-convert"
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/calibre.app/Contents/console.app/Contents/MacOS"
alias bd="baidupcs_go"
source /usr/local/etc/bash_completion.d/password-store
export PATH="/usr/local/opt/gpg-agent/bin:$PATH"
Feb.28,2021

check / Users/libai/.zshrc
post / Users/libai/.zshrc to see
simple solution delete / Users/libai/.zshrc create an empty .zshrc

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c244e2-336d8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c244e2-336d8.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?