From fd1b3fa486b67e4c5f0e4198dc773745b2554652 Mon Sep 17 00:00:00 2001 From: Noah Masur Date: Wed, 19 Aug 2020 09:40:02 -0400 Subject: [PATCH] add aliases for poetry --- fish.configlink/functions/aliases.fish | 5 +++++ fish.configlink/functions/pyenv.fish | 3 --- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fish.configlink/functions/aliases.fish b/fish.configlink/functions/aliases.fish index 47370dc..34d5cff 100644 --- a/fish.configlink/functions/aliases.fish +++ b/fish.configlink/functions/aliases.fish @@ -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 diff --git a/fish.configlink/functions/pyenv.fish b/fish.configlink/functions/pyenv.fish index a7fe359..39862af 100644 --- a/fish.configlink/functions/pyenv.fish +++ b/fish.configlink/functions/pyenv.fish @@ -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