add aliases for poetry

This commit is contained in:
Noah Masur 2020-08-19 09:40:02 -04:00
parent 89d7e4db72
commit fd1b3fa486
2 changed files with 5 additions and 3 deletions

View File

@ -16,6 +16,8 @@ function aliases --description 'All aliases'
abbr -a gc 'git commit -m'
abbr -a gu 'git pull'
abbr -a gp 'git push'
abbr -a gh 'hub'
abbr -a ghb 'hub browse'
# Vim
abbr -a v 'vim'
@ -76,6 +78,9 @@ function aliases --description 'All aliases'
abbr -a py 'python'
abbr -a po 'poetry'
abbr -a pr 'poetry run python'
abbr -a pl 'poetry run pylint *'
abbr -a black 'poetry run black --target-version py38 .'
abbr -a bl 'poetry run black --target-version py38 .'
alias domisty='cd $PROJ/misty && ./buildrun.sh'
# Rust

View File

@ -2,13 +2,10 @@
function 'pyenv' --description 'Features for Pyenv virtualenvs'
set -g PYENV_VERSIONS_DIR $HOME/.pyenv/versions
abbr -a d 'deactivate'
alias pv='cd $PYENV_VERSIONS_DIR'
alias ip='source $PYENV_VERSIONS_DIR/ipython/bin/activate.fish'
function 'venv' --description 'Enter a pyenv virtualenv'
source ~/.pyenv/versions/$argv[1]/bin/activate.fish
end