From 2af0b3cf113ac326eb2b39abaed05edf6b6a14d7 Mon Sep 17 00:00:00 2001 From: Rob Watson Date: Thu, 30 Jul 2020 14:51:44 +0200 Subject: [PATCH] Add GOPATH, fix grep aliases --- vimrc | 2 +- zshrc | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 7642df8..cb92e6b 100644 --- a/vimrc +++ b/vimrc @@ -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 diff --git a/zshrc b/zshrc index bd6808b..1265332 100644 --- a/zshrc +++ b/zshrc @@ -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