86 lines
1.9 KiB
Bash
86 lines
1.9 KiB
Bash
#!/bin/bash
|
|
|
|
mylib=$HOME/lib
|
|
|
|
export REALNAME="Daniel Lundin"
|
|
export EMAIL="dln@eintr.org"
|
|
|
|
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
|
|
|
## Shell stuff
|
|
export PATH=$HOME/bin:$PATH:/bin:/sbin:/usr/sbin:/usr/local/sbin
|
|
export LANG=en_US.UTF-8
|
|
export HISTCONTROL=ignoreboth
|
|
export HISTSIZE=3000
|
|
export WORDCHARS='*?_[]~=&;!#$%^(){}'
|
|
export EDITOR=nvim
|
|
export VISUAL=nvim
|
|
|
|
# ssh
|
|
export SSH_AUTH_SOCK=$HOME/.ssh/ssh_auth_sock
|
|
|
|
## fzf
|
|
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'
|
|
|
|
## Parquet
|
|
export PATH=$mylib/parquet-tools:$PATH
|
|
|
|
## Packer
|
|
export PATH=$mylib/packer:$PATH
|
|
|
|
## Terraform
|
|
export PATH=$mylib/terraform:$PATH
|
|
|
|
## Pager
|
|
export LESS='-BNJFXRgiM -h512 -x2'
|
|
export PAGER='less -nL'
|
|
export ACK_PAGER='less -nLR'
|
|
|
|
## fzf
|
|
export FZF_TMUX=1
|
|
export FZF_COMPLETION_TRIGGER="."
|
|
|
|
## Git
|
|
export GIT_AUTHOR_NAME=$REALNAME
|
|
export GIT_COMMITTER_NAME=$GIT_AUTHOR_NAME
|
|
export GIT_PAGER='/usr/share/git/diff-highlight/diff-highlight | less -+F -x8 -nBJXRgiM -h512'
|
|
|
|
## Java
|
|
export JAVA_HOME=/usr/lib/jvm/java-8-oracle/
|
|
export IDEA_VM_OPTIONS="$HOME/Dropbox/dotfiles/idea.vmoptions"
|
|
export IDEA_JDK=$HOME/lib/jdk-8u5-tuxjdk-b08
|
|
|
|
## CMake
|
|
export CTEST_OUTPUT_ON_FAILURE=1
|
|
|
|
## GTest
|
|
export GTEST_COLOR=1
|
|
|
|
## GCC
|
|
export CGCC_FORCE_COLOR=1
|
|
|
|
## Go
|
|
export GOPATH=$HOME
|
|
|
|
## Rust
|
|
export PATH=$HOME/.vim/bundle/racer/target/release:$PATH
|
|
export RUST_SRC_PATH=$HOME/src/github.com/rust-lang/rust/src
|
|
|
|
## grep
|
|
export GREP_COLOR='38;5;232;48;5;214;1'
|
|
|
|
export TERM=st-256color
|
|
|
|
if [ "$TERM" != "dumb" ]; then
|
|
if [ -x /usr/bin/pygmentize ]; then
|
|
export LESSOPEN="|/usr/bin/pygmentize -f terminal256 -O style=tango %s"
|
|
elif [ -x /usr/local/bin/lesspipe.sh ]; then
|
|
export LESSOPEN="|/usr/local/bin/lesspipe.sh %s"
|
|
elif [ -x /usr/bin/lesspipe.sh ]; then
|
|
export LESSOPEN="|/usr/local/bin/lesspipe.sh %s"
|
|
fi
|
|
fi
|
|
|
|
# local exports
|
|
[ -f $HOME/.bash_exports_local ] && source <($HOME/.bash_exports_local)
|
|
|