Update zshrc: add poetry config, tweak alias

This commit is contained in:
Rob Watson 2020-07-14 15:26:41 +02:00
parent c9b7a98207
commit 94cd7cccb3
1 changed files with 5 additions and 2 deletions

7
zshrc
View File

@ -110,6 +110,9 @@ export PATH=$HOME/bin:$PATH
# set up asdf (must be after paths)
. $HOME/.asdf/asdf.sh
# set up poetry
. $HOME/.poetry/env
# Git aliases
git config --global alias.co checkout
git config --global alias.ci commit
@ -119,9 +122,9 @@ git config --global alias.br branch
# Other aliases
# recursive grep with line numbers and colour, ignoring binary files:
alias gnr="grep -nR -I --color"
alias gnr="grep -nR -I --exclude-dir='.*' --color"
# same but case-insensitive:
alias gnri="grep -nRi -I --color"
alias gnri="grep -nRi -I --exclude-dir='.*' --color"
# Postgres default user:
export PGUSER=postgres