mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 11:55:36 +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 gc 'git commit -m'
|
||||||
abbr -a gu 'git pull'
|
abbr -a gu 'git pull'
|
||||||
abbr -a gp 'git push'
|
abbr -a gp 'git push'
|
||||||
|
abbr -a gh 'hub'
|
||||||
|
abbr -a ghb 'hub browse'
|
||||||
|
|
||||||
# Vim
|
# Vim
|
||||||
abbr -a v 'vim'
|
abbr -a v 'vim'
|
||||||
@ -76,6 +78,9 @@ function aliases --description 'All aliases'
|
|||||||
abbr -a py 'python'
|
abbr -a py 'python'
|
||||||
abbr -a po 'poetry'
|
abbr -a po 'poetry'
|
||||||
abbr -a pr 'poetry run python'
|
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'
|
alias domisty='cd $PROJ/misty && ./buildrun.sh'
|
||||||
|
|
||||||
# Rust
|
# Rust
|
||||||
|
@ -2,13 +2,10 @@
|
|||||||
|
|
||||||
function 'pyenv' --description 'Features for Pyenv virtualenvs'
|
function 'pyenv' --description 'Features for Pyenv virtualenvs'
|
||||||
|
|
||||||
set -g PYENV_VERSIONS_DIR $HOME/.pyenv/versions
|
|
||||||
|
|
||||||
abbr -a d 'deactivate'
|
abbr -a d 'deactivate'
|
||||||
alias pv='cd $PYENV_VERSIONS_DIR'
|
alias pv='cd $PYENV_VERSIONS_DIR'
|
||||||
alias ip='source $PYENV_VERSIONS_DIR/ipython/bin/activate.fish'
|
alias ip='source $PYENV_VERSIONS_DIR/ipython/bin/activate.fish'
|
||||||
|
|
||||||
|
|
||||||
function 'venv' --description 'Enter a pyenv virtualenv'
|
function 'venv' --description 'Enter a pyenv virtualenv'
|
||||||
source ~/.pyenv/versions/$argv[1]/bin/activate.fish
|
source ~/.pyenv/versions/$argv[1]/bin/activate.fish
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user