Last active
October 17, 2018 15:18
-
-
Save Eduard-gan/88a1e55894b1e03990f2a55b1893c01e to your computer and use it in GitHub Desktop.
Fish + Pyenv + Pipenv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
+ | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set PYENV_ROOT $HOME/.pyenv | |
set -x PATH $PYENV_ROOT/bin $PATH | |
status --is-interactive; and . (pyenv init -|psub) | |
status --is-interactive; and . (pyenv virtualenv-init -|psub) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
# Автоматическая установка pyenv из BASH!!!! | |
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash | |
# Установка Build-зависимостей для сборки интерпретаторов питона pyenv'ом. | |
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \ | |
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \ | |
xz-utils tk-dev libffi-dev | |
# Установка PIP | |
sudo apt-get install python3-pip | |
# Установка pipenv | |
pip3 install pipenv | |
# Установка fish | |
apt get install fish | |
sudo chsh my_user -s `which fish` | |
# Установка менеджера плагинов для fish | |
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs https://git.io/fisher | |
# Установка плагина для fish, позволяющего работать с pipenv | |
fisher pipenv | |
# Безумный хак без которого фиш не видит пипенв | |
sudo ln -s /home/aa/.local/bin/pipenv /usr/local/bin/pipenv | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment