Saya memulai XTerm hari ini dan untuk beberapa alasan ZSH mencetak seperti apa env
ketika cangkang saya mulai. Saya hanya ingin tahu apakah ada cara untuk melacak apa yang melakukan ini sehingga saya dapat menonaktifkannya. Di bawah ini adalah output ketika cangkang dimulai
Last login: Wed Jul 11 19:22:03 on ttys000
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.G1oq8Ke9bW/Render
COLORFGBG='7;0'
COLORTERM=truecolor
DISPLAY=/private/tmp/com.apple.launchd.tY95B5y3iQ/org.macosforge.xquartz:0
GPG_TTY=/dev/ttys000
HOME=/Users/joshuastroup
ITERM_PROFILE=Default
ITERM_SESSION_ID=w0t0p0:AF741932-F358-4C2C-9A23-47134F004CE3
LANG=en_US.UTF-8
LOGNAME=joshuastroup
OLDPWD=/Users/joshuastroup
PATH='/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/Users/joshuastroup/.nvm/versions/node/v8.9.3/bin:/usr/local/Cellar/php/7.2.6/bin:/Users/joshuastroup/bin:/Users/joshuastroup/binaries'
PWD=/Users/joshuastroup
SHELL=/bin/zsh
SHLVL=1
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8a9z6UEe0q/Listeners
TERM=xterm-256color
TERM_PROGRAM=iTerm.app
TERM_PROGRAM_VERSION=3.1.7
TERM_SESSION_ID=w0t0p0:AF741932-F358-4C2C-9A23-47134F004CE3
TMPDIR=/var/folders/75/kd4myl4s32l596p9fqhxv_pr0000gn/T/
USER=joshuastroup
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
__CF_USER_TEXT_ENCODING=0x0:0:0
Dan di bawah ini adalah output dari env
[~] env 19:23:54
TERM_SESSION_ID=w0t0p0:AF741932-F358-4C2C-9A23-47134F004CE3
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8a9z6UEe0q/Listeners
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.G1oq8Ke9bW/Render
COLORFGBG=7;0
ITERM_PROFILE=Default
XPC_FLAGS=0x0
LANG=en_US.UTF-8
PWD=/Users/joshuastroup
SHELL=/bin/zsh
TERM_PROGRAM_VERSION=3.1.7
TERM_PROGRAM=iTerm.app
PATH=/usr/local/Cellar/php/7.2.6/bin:/Users/joshuastroup/bin:/usr/local/bin:/Users/joshuastroup/binaries:/usr/local/opt/go/libexec/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Wireshark.app/Contents/MacOS:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin:/Users/joshuastroup/.nvm/versions/node/v8.9.3/bin:/usr/local/Cellar/php/7.2.6/bin:/Users/joshuastroup/bin:/Users/joshuastroup/binaries
DISPLAY=/private/tmp/com.apple.launchd.tY95B5y3iQ/org.macosforge.xquartz:0
COLORTERM=truecolor
TERM=xterm-256color
HOME=/Users/joshuastroup
TMPDIR=/var/folders/75/kd4myl4s32l596p9fqhxv_pr0000gn/T/
USER=joshuastroup
XPC_SERVICE_NAME=0
LOGNAME=joshuastroup
__CF_USER_TEXT_ENCODING=0x0:0:0
ITERM_SESSION_ID=w0t0p0:AF741932-F358-4C2C-9A23-47134F004CE3
SHLVL=1
OLDPWD=/Users/joshuastroup
GPG_TTY=/dev/ttys000
ZSH=/Users/joshuastroup/.oh-my-zsh
PAGER=less
LESS=-R
LC_CTYPE=en_US.UTF-8
LSCOLORS=Gxfxcxdxbxegedabagacad
NVM_DIR=/Users/joshuastroup/.nvm
NVM_CD_FLAGS=-q
NVM_BIN=/Users/joshuastroup/.nvm/versions/node/v8.9.3/bin
_=/usr/bin/env
iTerm
mulai shell login dan xterm
memulai shell interaktif non-login. Setiap sesi membaca file konfigurasi yang berbeda- xterm
akan membaca /private/zshenv
jika ada, maka .zshenv
(jika ada) lalu zshrc
. Saya akan mulai dengan pemecahan masalah Anda. Anda mungkin mulai menghapus dengan terlebih dahulu oh-my-zsh
dari campuran.
grep 'env' ./.z*
?