Created
August 23, 2013 10:02
-
-
Save n0ts/6317641 to your computer and use it in GitHub Desktop.
zsh aws completion for pyenv
This file contains 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
# pyenv | |
if [ -f "$HOME/.pyenv/version" ]; then | |
# awscli | |
if [ -f "$HOME/.pyenv/versions/$(cat $HOME/.pyenv/version)/bin/aws_zsh_completer.sh" ]; then | |
source $HOME/.pyenv/versions/$(cat $HOME/.pyenv/version)/bin/aws_zsh_completer.sh | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
恐らく↓のような感じで書いたほうがすっきりするように思います。似たようなことをやってる https://github.com/yyuu/pyenv-virtualenvwrapper の実装も確認してみてください。