]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - shell/shell/env
shell/env: add Go settings
[config/dotfiles.git] / shell / shell / env
index f3e42937f3adf700f08fdf82f206652e8b65cc42..973e54fda6e0f6fbe9b7b681e8c802bca3dde754 100644 (file)
@@ -139,4 +139,29 @@ fi
 MTR_OPTIONS='--show-ips'
 export MTR_OPTIONS
 
+# Additional command line options for `valgrind`.
+VALGRIND_OPTS=
+VALGRIND_OPTS="$VALGRIND_OPTS --quiet"
+VALGRIND_OPTS="$VALGRIND_OPTS --error-exitcode=1"
+VALGRIND_OPTS="$VALGRIND_OPTS --memcheck:leak-check=full"
+VALGRIND_OPTS="$VALGRIND_OPTS --memcheck:show-reachable=yes"
+VALGRIND_OPTS="$VALGRIND_OPTS --memcheck:track-fds=yes"
+export VALGRIND_OPTS
+
+# Use short SSH timeout for Git commands so remote fetches/pushes fail
+# quickly. Thanks to ceddral for the idea.
+GIT_SSH_COMMAND='ssh -o ConnectTimeout=3'
+export GIT_SSH_COMMAND
+
+# Go settings
+GOPATH="$HOME/development/go:/usr/share/gocode"
+export GOPATH
+# Prevent privacy issues by disabling the use of https://proxy.golang.org
+# which is the default since Go 1.13.
+GOPROXY=direct
+export GOPROXY
+# Same for https://sum.golang.org/
+GOSUMDB=off
+export GOSUMDB
+
 # vim: ft=sh