Add GOPATH, fix grep aliases

This commit is contained in:
Rob Watson 2020-07-30 14:51:44 +02:00
parent 94cd7cccb3
commit 2af0b3cf11
2 changed files with 7 additions and 3 deletions

2
vimrc
View File

@ -16,7 +16,7 @@ set smarttab
set encoding=utf-8
set nocompatible
set t_Co=256
set background=light
set background=dark
set hidden
set history=100
set nowrap

8
zshrc
View File

@ -103,7 +103,11 @@ HISTFILE=~/.zsh-history
HISTSIZE=10000
SAVEHIST=10000
# Go configuration (is this still needed with go mod?)
export GOPATH=$HOME/go
# set PATHs (highest priority last)
export PATH=$HOME/go/bin:$PATH
export PATH=$HOME/local/bin:$PATH
export PATH=$HOME/bin:$PATH
@ -122,9 +126,9 @@ git config --global alias.br branch
# Other aliases
# recursive grep with line numbers and colour, ignoring binary files:
alias gnr="grep -nR -I --exclude-dir='.*' --color"
alias gnr="grep -nR -I --color"
# same but case-insensitive:
alias gnri="grep -nRi -I --exclude-dir='.*' --color"
alias gnri="grep -nRi -I --color"
# Postgres default user:
export PGUSER=postgres