title: Mac is getting slower. Because of pyenv or zsh, bash setting?
body: <p>Suddenly my terminal is getting slower seriously!
  I don't know why but I guess the cause is that something wrong pyenv or zsh, bash setting.</p>
  
  <p>Here is my <strong>pyenv log</strong> When I run <code>ls</code> in Terminal(zsh).</p>
  
  <pre><code>+_pyenv_virtualenv_hook:1&gt; local 'ret=0'                                                                                               
  +_pyenv_virtualenv_hook:2&gt; [ -n '' ']'
  +_pyenv_virtualenv_hook:5&gt; pyenv sh-activate --quiet
  +pyenv:1&gt; local command
  +pyenv:2&gt; command=sh-activate 
  +pyenv:3&gt; [ 2 -gt 0 ']'
  +pyenv:4&gt; shift
  +pyenv:7&gt; case sh-activate (activate | deactivate | rehash | shell)
  +pyenv:7&gt; case sh-activate (*)
  +pyenv:11&gt; pyenv sh-activate --quiet
  + [pyenv:23] enable -f /usr/local/Cellar/pyenv/20160202/libexec/../libexec/pyenv-realpath.dylib realpath
  + [pyenv:29] '[' -z '' ']'
  ++ [pyenv:31] type -p greadlink readlink
  ++ [pyenv:31] head -1
  + [pyenv:31] READLINK=/usr/bin/readlink
  + [pyenv:32] '[' -n /usr/bin/readlink ']'
  + [pyenv:53] '[' -z '' ']'
  + [pyenv:54] PYENV_ROOT=/Users/DS/.pyenv
  + [pyenv:58] export PYENV_ROOT
  + [pyenv:61] '[' -z '' ']'
  + [pyenv:62] '[' -n '' ']'
  + [pyenv:73] '[' -z '' ']'
  + [pyenv:74] PYENV_DIR=/Users/DS
  + [pyenv:80] export PYENV_DIR
  + [pyenv:83] shopt -s nullglob
  ++ [pyenv:85] abs_dirname /usr/local/Cellar/pyenv/20160202/libexec/pyenv
  ++ [pyenv:39] local cwd=/Users/DS
  ++ [pyenv:40] local path=/usr/local/Cellar/pyenv/20160202/libexec/pyenv
  ++ [pyenv:42] '[' -n /usr/local/Cellar/pyenv/20160202/libexec/pyenv ']'
  ++ [pyenv:43] cd /usr/local/Cellar/pyenv/20160202/libexec
  ++ [pyenv:44] local name=pyenv
  +++ [pyenv:45] resolve_link pyenv
  +++ [pyenv:35] /usr/bin/readlink pyenv
  +++ [pyenv:45] true
  ++ [pyenv:45] path=
  ++ [pyenv:42] '[' -n '' ']'
  ++ [pyenv:48] pwd
  ++ [pyenv:49] cd /Users/DS
  + [pyenv:85] bin_path=/usr/local/Cellar/pyenv/20160202/libexec
  + [pyenv:89] export PATH=/usr/local/Cellar/pyenv/20160202/libexec:/usr/local/Cellar/pyenv-virtualenv/20160202/shims:/usr/local/Cellar/pyenv/20160202/libexec:/Users/DS/.pyenv/shims:/usr/local/bin:/usr/bin:/usr/sbin:/bin
  + [pyenv:89] PATH=/usr/local/Cellar/pyenv/20160202/libexec:/usr/local/Cellar/pyenv-virtualenv/20160202/shims:/usr/local/Cellar/pyenv/20160202/libexec:/Users/DS/.pyenv/shims:/usr/local/bin:/usr/bin:/usr/sbin:/bin
  + [pyenv:91] PYENV_HOOK_PATH=:/Users/DS/.pyenv/pyenv.d
  + [pyenv:92] '[' /usr/local/Cellar/pyenv/20160202 '!=' /Users/DS/.pyenv ']'
  + [pyenv:94] PYENV_HOOK_PATH=:/Users/DS/.pyenv/pyenv.d:/usr/local/Cellar/pyenv/20160202/pyenv.d
  + [pyenv:96] PYENV_HOOK_PATH=:/Users/DS/.pyenv/pyenv.d:/usr/local/Cellar/pyenv/20160202/pyenv.d:/usr/local/etc/pyenv.d:/etc/pyenv.d:/usr/lib/pyenv/hooks
  + [pyenv:100] export PYENV_HOOK_PATH
  + [pyenv:102] shopt -u nullglob
  + [pyenv:105] command=sh-activate
  + [pyenv:106] case "$command" in
  ++ [pyenv:119] command -v pyenv-sh-activate
  + [pyenv:119] command_path=/usr/local/bin/pyenv-sh-activate
  + [pyenv:120] '[' -n /usr/local/bin/pyenv-sh-activate ']'
  + [pyenv:122] shift 1
  + [pyenv:123] '[' --quiet = --help ']'
  + [pyenv:126] exec /usr/local/bin/pyenv-sh-activate --quiet
  + [pyenv-sh-activate:17] '[' -z /Users/DS/.pyenv ']'
  + [pyenv-sh-activate:25] unset FORCE
  + [pyenv-sh-activate:26] unset QUIET
  + [pyenv-sh-activate:27] unset VERBOSE
  + [pyenv-sh-activate:29] '[' 1 -gt 0 ']'
  + [pyenv-sh-activate:30] case "$1" in
  + [pyenv-sh-activate:44] QUIET=1
  + [pyenv-sh-activate:56] shift 1
  + [pyenv-sh-activate:29] '[' 0 -gt 0 ']'
  + [pyenv-sh-activate:59] no_shell=
  + [pyenv-sh-activate:60] versions=("$@")
  + [pyenv-sh-activate:61] '[' -z '' ']'
  + [pyenv-sh-activate:62] no_shell=1
  + [pyenv-sh-activate:63] OLDIFS='   
  '
  + [pyenv-sh-activate:64] IFS=:
  + [pyenv-sh-activate:64] versions=($(pyenv-version-name 2&gt;/dev/null))
  ++ [pyenv-sh-activate:64] pyenv-version-name
  + [pyenv-sh-activate:65] IFS='  
  '
  + [pyenv-sh-activate:68] '[' -z 1 ']'
  + [pyenv-sh-activate:74] venv=system
  + [pyenv-sh-activate:76] '[' -n '' ']'
  + [pyenv-sh-activate:89] pyenv-virtualenv-prefix system
  + [pyenv-sh-activate:91] OLDIFS='   
  '
  + [pyenv-sh-activate:92] IFS=:
  + [pyenv-sh-activate:92] current_versions=($(pyenv-version-name))
  ++ [pyenv-sh-activate:92] pyenv-version-name
  + [pyenv-version-name:6] '[' -z '' ']'
  ++ [pyenv-version-name:7] pyenv-version-file
  + [pyenv-version-file:22] find_local_version_file /Users/DS
  + [pyenv-version-file:7] local root=/Users/DS
  + [pyenv-version-file:8] true
  + [pyenv-version-file:9] [[ /Users/DS =~ ^//[^/]*$ ]]
  + [pyenv-version-file:10] '[' -e /Users/DS/.python-version ']'
  + [pyenv-version-file:13] '[' -e /Users/DS/.pyenv-version ']'
  + [pyenv-version-file:17] '[' -n /Users/DS ']'
  + [pyenv-version-file:18] root=/Users
  + [pyenv-version-file:8] true
  + [pyenv-version-file:9] [[ /Users =~ ^//[^/]*$ ]]
  + [pyenv-version-file:10] '[' -e /Users/.python-version ']'
  + [pyenv-version-file:13] '[' -e /Users/.pyenv-version ']'
  + [pyenv-version-file:17] '[' -n /Users ']'
  + [pyenv-version-file:18] root=
  + [pyenv-version-file:8] true
  + [pyenv-version-file:9] [[ '' =~ ^//[^/]*$ ]]
  + [pyenv-version-file:10] '[' -e /.python-version ']'
  + [pyenv-version-file:13] '[' -e /.pyenv-version ']'
  + [pyenv-version-file:17] '[' -n '' ']'
  + [pyenv-version-file:17] break
  + [pyenv-version-file:23] '[' /Users/DS = /Users/DS ']'
  + [pyenv-version-file:25] global_version_file=/Users/DS/.pyenv/version
  + [pyenv-version-file:27] '[' -e /Users/DS/.pyenv/version ']'
  + [pyenv-version-file:29] '[' -e /Users/DS/.pyenv/global ']'
  + [pyenv-version-file:31] '[' -e /Users/DS/.pyenv/default ']'
  + [pyenv-version-file:34] echo /Users/DS/.pyenv/version
  + [pyenv-version-name:7] PYENV_VERSION_FILE=/Users/DS/.pyenv/version
  ++ [pyenv-version-name:8] pyenv-version-file-read /Users/DS/.pyenv/version
  + [pyenv-version-file-read:6] VERSION_FILE=/Users/DS/.pyenv/version
  + [pyenv-version-file-read:8] '[' -e /Users/DS/.pyenv/version ']'
  + [pyenv-version-file-read:22] exit 1
  ++ [pyenv-version-name:8] true
  + [pyenv-version-name:8] PYENV_VERSION=
  + [pyenv-version-name:11] '[' -z '' ']'
  + [pyenv-version-name:12] echo system
  + [pyenv-version-name:13] exit
  + [pyenv-sh-activate:93] IFS='  
  '
  + [pyenv-sh-activate:94] new_venv=system/envs/system
  + [pyenv-sh-activate:95] pyenv-virtualenv-prefix system/envs/system
  + [pyenv-sh-activate:99] '[' -z 1 ']'
  + [pyenv-sh-activate:102] echo false
  + [pyenv-sh-activate:103] exit 1
  +_pyenv_virtualenv_hook:5&gt; true
  +_pyenv_virtualenv_hook:5&gt; eval false
  +(eval):1&gt; false
  +_pyenv_virtualenv_hook:5&gt; true
  +_pyenv_virtualenv_hook:7&gt; return 0
  +omz_termsupport_precmd:1&gt; emulate -L zsh
  +omz_termsupport_precmd:3&gt; [[ '' == true ]]
  +omz_termsupport_precmd:7&gt; title '%15&lt;..&lt;%~%&lt;&lt;' %n@%m
  +title:1&gt; emulate -L zsh
  +title:2&gt; setopt prompt_subst
  +title:4&gt; [[ '' == *term* ]]
  +title:8&gt; : %n@%m
  +title:10&gt; case ansi (cygwin | xterm* | putty* | rxvt* | ansi)
  +title:12&gt; print -Pn '\e]2;%n@%m\a'
  +title:13&gt; print -Pn '\e]1;%15\&lt;..\&lt;%~%\&lt;\&lt;\a'
  +update_terminalapp_cwd:1&gt; emulate -L zsh
  +update_terminalapp_cwd:4&gt; omz_urlencode -P /Users/DS
  +omz_urlencode:1&gt; emulate -L zsh
  +omz_urlencode:2&gt; zparseopts -D -E -a opts r m P
  +omz_urlencode:4&gt; local 'in_str=/Users/DS'
  +omz_urlencode:5&gt; local 'url_str='
  +omz_urlencode:6&gt; local spaces_as_plus
  +omz_urlencode:7&gt; [[ -z -P ]]
  +omz_urlencode:8&gt; local 'str=/Users/DS'
  +omz_urlencode:11&gt; local 'encoding=UTF-8'
  +omz_urlencode:12&gt; local safe_encodings
  +omz_urlencode:13&gt; safe_encodings=( UTF-8 utf8 US-ASCII ) 
  +omz_urlencode:14&gt; [[ -z UTF-8 ]]
  +omz_urlencode:23&gt; local i byte ord 'LC_ALL=C'
  +omz_urlencode:24&gt; export LC_ALL
  +omz_urlencode:25&gt; local 'reserved=;/?:@&amp;=+$,'
  +omz_urlencode:26&gt; local 'mark=_.!~*()-'
  +omz_urlencode:27&gt; local 'dont_escape=[A-Za-z0-9'
  +omz_urlencode:28&gt; [[ -z '' ]]
  +omz_urlencode:29&gt; dont_escape+=';/?:@&amp;=+$,' 
  +omz_urlencode:32&gt; [[ -z '' ]]
  +omz_urlencode:33&gt; dont_escape+='_.!~*()-' 
  +omz_urlencode:35&gt; dont_escape+=']' 
  +omz_urlencode:39&gt; local 'url_str='
  +omz_urlencode:40&gt; i = 1
  +omz_urlencode:40&gt; i &lt;= 9
  +omz_urlencode:41&gt; byte=/ 
  +omz_urlencode:42&gt; [[ "$byte" -regex-match "$dont_escape" ]]
  +omz_urlencode:43&gt; url_str+=/ 
  +omz_urlencode:40&gt; ++i 
  +omz_urlencode:40&gt; i &lt;= 9
  +omz_urlencode:41&gt; byte=U 
  +omz_urlencode:42&gt; [[ "$byte" -regex-match "$dont_escape" ]]
  +omz_urlencode:43&gt; url_str+=U 
  +omz_urlencode:40&gt; ++i 
  +omz_urlencode:40&gt; i &lt;= 9
  +omz_urlencode:41&gt; byte=s 
  +omz_urlencode:42&gt; [[ "$byte" -regex-match "$dont_escape" ]]
  +omz_urlencode:43&gt; url_str+=s 
  +omz_urlencode:40&gt; ++i 
  +omz_urlencode:40&gt; i &lt;= 9
  +omz_urlencode:41&gt; byte=e 
  +omz_urlencode:42&gt; [[ "$byte" -regex-match "$dont_escape" ]]
  +omz_urlencode:43&gt; url_str+=e 
  +omz_urlencode:40&gt; ++i 
  +omz_urlencode:40&gt; i &lt;= 9
  +omz_urlencode:41&gt; byte=r 
  +omz_urlencode:42&gt; [[ "$byte" -regex-match "$dont_escape" ]]
  +omz_urlencode:43&gt; url_str+=r 
  +omz_urlencode:40&gt; ++i 
  +omz_urlencode:40&gt; i &lt;= 9
  +omz_urlencode:41&gt; byte=s 
  +omz_urlencode:42&gt; [[ "$byte" -regex-match "$dont_escape" ]]
  +omz_urlencode:43&gt; url_str+=s 
  +omz_urlencode:40&gt; ++i 
  +omz_urlencode:40&gt; i &lt;= 9
  +omz_urlencode:41&gt; byte=/ 
  +omz_urlencode:42&gt; [[ "$byte" -regex-match "$dont_escape" ]]
  +omz_urlencode:43&gt; url_str+=/ 
  +omz_urlencode:40&gt; ++i 
  +omz_urlencode:40&gt; i &lt;= 9
  +omz_urlencode:41&gt; byte=D 
  +omz_urlencode:42&gt; [[ "$byte" -regex-match "$dont_escape" ]]
  +omz_urlencode:43&gt; url_str+=D 
  +omz_urlencode:40&gt; ++i 
  +omz_urlencode:40&gt; i &lt;= 9
  +omz_urlencode:41&gt; byte=S 
  +omz_urlencode:42&gt; [[ "$byte" -regex-match "$dont_escape" ]]
  +omz_urlencode:43&gt; url_str+=S 
  +omz_urlencode:40&gt; ++i 
  +omz_urlencode:40&gt; i &lt;= 9
  +omz_urlencode:53&gt; echo -E /Users/DS
  +update_terminalapp_cwd:4&gt; local 'URL_PATH=/Users/DS'
  +update_terminalapp_cwd:5&gt; [[ 0 != 0 ]]
  +update_terminalapp_cwd:8&gt; printf '\e]7;%s\a' file://YuDaesungui-MacBook-Pro.local/Users/DS
  +-zsh:5&gt; build_prompt
  +build_prompt:1&gt; RETVAL=0 
  +build_prompt:2&gt; prompt_status
  +prompt_status:1&gt; local symbols
  +prompt_status:2&gt; symbols=( ) 
  +prompt_status:3&gt; [[ 0 -ne 0 ]]
  +prompt_status:4&gt; [[ 501 -eq 0 ]]
  +prompt_status:5&gt; [[+prompt_status:5&gt; jobs -l
  +prompt_status:5&gt; [[+prompt_status:5&gt; wc -l
  +prompt_status:5&gt; [[ '       0' -gt 0 ]]
  +prompt_status:7&gt; [[ -n '' ]]
  +build_prompt:3&gt; prompt_virtualenv
  +prompt_virtualenv:1&gt; local 'virtualenv_path='
  +prompt_virtualenv:2&gt; [[ -n '' ]]
  +build_prompt:4&gt; prompt_context
  +prompt_context:1&gt; [[ DS !=  ]]
  +prompt_context:2&gt; prompt_segment black default '%(!.%{%F{yellow}%}.)DS@%m'
  +prompt_segment:1&gt; local bg fg
  +prompt_segment:2&gt; [[ -n black ]]
  +prompt_segment:2&gt; bg='%K{black}' 
  +prompt_segment:3&gt; [[ -n default ]]
  +prompt_segment:3&gt; fg='%F{default}' 
  +prompt_segment:4&gt; [[ NONE != NONE ]]
  +prompt_segment:7&gt; echo -n '%{%K{black}%}%{%F{default}%} '
  +prompt_segment:9&gt; CURRENT_BG=black 
  +prompt_segment:10&gt; [[ -n '%(!.%{%F{yellow}%}.)DS@%m' ]]
  +prompt_segment:10&gt; echo -n '%(!.%{%F{yellow}%}.)DS@%m'
  +build_prompt:5&gt; prompt_dir
  +prompt_dir:1&gt; prompt_segment blue black '%~'
  +prompt_segment:1&gt; local bg fg
  +prompt_segment:2&gt; [[ -n blue ]]
  +prompt_segment:2&gt; bg='%K{blue}' 
  +prompt_segment:3&gt; [[ -n black ]]
  +prompt_segment:3&gt; fg='%F{black}' 
  +prompt_segment:4&gt; [[ black != NONE &amp;&amp; blue != black ]]
  +prompt_segment:5&gt; echo -n ' %{%K{blue}%F{black}%}%{%F{black}%} '
  +prompt_segment:9&gt; CURRENT_BG=blue 
  +prompt_segment:10&gt; [[ -n '%~' ]]
  +prompt_segment:10&gt; echo -n '%~'
  +build_prompt:6&gt; prompt_git
  +prompt_git:1&gt; ((  1  ))
  +prompt_git:2&gt; local PL_BRANCH_CHAR
  +prompt_git:3&gt; '(anon)'
  +(anon):1&gt; local 'LC_ALL=' 'LC_CTYPE=en_US.UTF-8'
  +(anon):2&gt; PL_BRANCH_CHAR= 
  +prompt_git:7&gt; local ref dirty mode repo_path
  +prompt_git:8&gt; repo_path=+prompt_git:8&gt; git rev-parse --git-dir
  +prompt_git:8&gt; repo_path='' 
  +prompt_git:10&gt; git rev-parse --is-inside-work-tree
  
  +build_prompt:7&gt; prompt_bzr
  +prompt_bzr:1&gt; ((  0  ))
  +prompt_bzr:1&gt; return
  +build_prompt:8&gt; prompt_hg
  +prompt_hg:1&gt; ((  0  ))
  +prompt_hg:1&gt; return
  +build_prompt:9&gt; prompt_end
  +prompt_end:1&gt; [[ -n blue ]]
  +prompt_end:2&gt; echo -n ' %{%k%F{blue}%}'
  +prompt_end:6&gt; echo -n '%{%f%}'
  +prompt_end:7&gt; CURRENT_BG='
  </code></pre>