1

Here is my .bash_profile

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad

alias ls='ls -GFh'
alias cat='ccat'
alias chrome='open -a Google\ Chrome'
alias brave='open -a Brave\ Browser'
alias db='open -a DBBrowserforSQLite'
alias sublime='open -a Sublime\ Text'

.bashrc is empty

Successive terminal window launch or new tab openings are quite fast.

  • What happens if you move .bash_profile away and try again? What exactly do you mean with system login? – nohillside Jun 11 at 19:04
  • yes that was the problem, it loads instantaneously if I remove '.bash_profile' – ishandutta2007 Jun 12 at 2:29
1

Do you have several apps that launch during login? This could cause the delay you are experiencing. Go to system Preferences and click on Users and Groups. Once this opens click on the tab "Login Items" and you see a panel that looks like the following:

enter image description here

The app names that show up in the window are apps that are set o launch at login. The can prevent these from starting up by selecting one of the names and click the minus sign in the +- box indicated in the image. Removing many of these will speed up you login time.

If you do this be sure to unlock this panel by clicking on the "lock" icon so your changes will be saved.

0

Can you delay calling pyenv as that can be slow to run?

If you

set -x
time pyenv init -

You can get a feeling for it. Or you could just comment out / delete that one line starting with

eval "$(pyenv init -)"
  • Do you have many "start at login" items? They will run after you login and depending on how many you have could create the problem you are having. – jmh Jun 11 at 22:28
  • @jmh That was going to be my second recommendation. Might even be a great stand alone answer. – bmike Jun 11 at 22:33
  • if you think it quailfiers as an possible anser i'll submit it. thanks. – jmh Jun 12 at 1:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .