mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 19:15:37 +00:00
add aliases for poetry
This commit is contained in:
parent
89d7e4db72
commit
fd1b3fa486
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user