Skip to content

Instantly share code, notes, and snippets.

View productengineeringpod's full-sized avatar

productengineeringpod

View GitHub Profile
SPACESHIP_RPROMPT_ORDER=(
time
conda # conda virtualenv section
pyenv # Pyenv section
)
#Homebrew
export PATH=/opt/homebrew/bin:/shims:/usr/local/bin:/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin
#Pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
zsh compinit: insecure directories"
# The way to fix this is quite simple
compaudit | xargs chmod g-w
{
"font_face": "Fira Code",
"font_size": 14,
"font_options":
[
"subpixel_antialias"
],
"caret_extra_bottom": 0,
"caret_extra_top": 0,
"caret_extra_width": 0,
# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Create
pyenv virtualenv 3.8.5 discrete_optimization
# Activate
pyenv activate discrete_optimization
# Verify
#Ip:
pyenv which python
#Op:
kewalkrishna@Kewals-MacBook-Pro-2 discreteOptimization % pyenv virtualenv 3.8.5 discrete_optimization
pyenv: no such command `virtualenv'
# So then i had to install
brew install pyenv-virtualenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"