Add GOPATH, fix grep aliases
This commit is contained in:
parent
94cd7cccb3
commit
2af0b3cf11
2
vimrc
2
vimrc
|
@ -16,7 +16,7 @@ set smarttab
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
set nocompatible
|
set nocompatible
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
set background=light
|
set background=dark
|
||||||
set hidden
|
set hidden
|
||||||
set history=100
|
set history=100
|
||||||
set nowrap
|
set nowrap
|
||||||
|
|
8
zshrc
8
zshrc
|
@ -103,7 +103,11 @@ HISTFILE=~/.zsh-history
|
||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
SAVEHIST=10000
|
SAVEHIST=10000
|
||||||
|
|
||||||
|
# Go configuration (is this still needed with go mod?)
|
||||||
|
export GOPATH=$HOME/go
|
||||||
|
|
||||||
# set PATHs (highest priority last)
|
# set PATHs (highest priority last)
|
||||||
|
export PATH=$HOME/go/bin:$PATH
|
||||||
export PATH=$HOME/local/bin:$PATH
|
export PATH=$HOME/local/bin:$PATH
|
||||||
export PATH=$HOME/bin:$PATH
|
export PATH=$HOME/bin:$PATH
|
||||||
|
|
||||||
|
@ -122,9 +126,9 @@ git config --global alias.br branch
|
||||||
# Other aliases
|
# Other aliases
|
||||||
|
|
||||||
# recursive grep with line numbers and colour, ignoring binary files:
|
# 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:
|
# same but case-insensitive:
|
||||||
alias gnri="grep -nRi -I --exclude-dir='.*' --color"
|
alias gnri="grep -nRi -I --color"
|
||||||
|
|
||||||
# Postgres default user:
|
# Postgres default user:
|
||||||
export PGUSER=postgres
|
export PGUSER=postgres
|
||||||
|
|
Loading…
Reference in New Issue