text zsh中の设定
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text zsh中の设定相关的知识,希望对你有一定的参考价值。
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export EDITOR=nvim
source ~/.zplug/init.zsh
zplug 'straysheep3/3230765cbf23cdbcf61299a31032ade2', from:gist # FZF_DEFAULT_OPTS
zplug 'straysheep3/dcf965f20883b44dae4b3c6d79b4c9d9', from:gist # ghq-fzf()
zplug 'straysheep3/8dffea8382be393692784651edb24564', from:gist # ssh-fzf()
zplug 'straysheep3/7f42e38c9398c90b9401e77aff77ff82', from:gist # git-branch-fzf()
zplug 'straysheep3/fc4db5b9722f27877e1fb992e915abc5', from:gist # tree-fzf()
zplug 'straysheep3/eb407defcbc6ad988fa789acd16a4937', from:gist # sublime-projects-peco()
zplug "b4b4r07/gist", from:gh-r, as:command, use:"*darwin*amd64*" # gist
zplug "sorin-ionescu/prezto", as:plugin, use:init.zsh, hook-build:"ln -s $ZPLUG_ROOT/repos/sorin-ionescu/prezto ${ZDOTDIR:-$HOME}/.zprezto"
zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
'editor' \
'history' \
'homebrew' \
'directory' \
'spectrum' \
'utility' \
'completion' \
'archive' \
'fasd' \
'git' \
'osx' \
'ruby' \
'rails' \
'syntax-highlighting' \
'history-substring-search' \
'ssh' \
'prompt'
zstyle ':prezto:*:*' case-sensitive 'no'
zstyle ':prezto:*:*' color 'yes'
zstyle ':prezto:module:editor' key-bindings 'emacs'
zstyle ':prezto:module:prompt' theme 'pure'
zstyle ':prezto:module:ssh-agent' forwarding 'yes'
zstyle ':prezto:module:ssh-agent' identities 'id_rsa' 'id_rsa2' 'id_github'
zstyle ':prezto:module:terminal' auto-title 'yes'
zplug load --verbose
export PATH="$HOME/Library/Python/3.6/bin:$PATH"
# Source Prezto.
# if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
# source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
# fi
PS1=%(?.%F{magenta}.%F{red})(*^ - ^)❯%f
if [ -n "$NVIM_LISTEN_ADDRESS" ]; then
if [ -x "$(command -v nvr)" ]; then
alias nvim=nvr
else
alias nvim='echo "No nesting!"'
fi
fi
autoload -U edit-command-line
zle -N edit-command-line
bindkey '^x^e' edit-command-line
# Customize to your needs...
# config_file ($HOME/.yadr/zsh/*.zsh) source $config_file
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# source ~/.iterm2_shell_integration.`basename $SHELL`
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
if [ -d ${HOME}/.rbenv ] ; then
PATH=${HOME}/.rbenv/bin:${PATH}
export PATH
eval "$(rbenv init -)"
fi
# postgres
export PGDATA=/usr/local/var/postgres
# direnv
eval "$(direnv hook zsh)"
# go
export GOPATH=$HOME/dev
export PATH=$PATH:$GOPATH/bin
# neovim
export XDG_CONFIG_HOME="$HOME/.config"
export TERM='xterm-256color'
# emacs
alias E='emacsclient -t'
alias kill-emacs="emacsclient -e '(kill-emacs)'"
# php
export PATH="/usr/local/opt/php@7.1/bin:$PATH"
# ssh
alias ssh='~/bin/ssh-change-profile.sh'
以上是关于text zsh中の设定的主要内容,如果未能解决你的问题,请参考以下文章