-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
78 lines (63 loc) · 2.3 KB
/
.bash_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# inspired by and borrowed from: https://github.com/keeganlow/dotfiles
# Add `~/bin` to the `$PATH`
export PATH="$HOME/bin:$PATH"
export PATH="/usr/local/opt/curl/bin:$PATH"
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
# Append to the Bash history file, rather than overwriting it
shopt -s histappend
# Prefer US English and use UTF-8
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LANG="en_US.UTF-8"
export GOPATH=${HOME}
export GO111MODULE=on
export ORACLE_HOME=/Users/bjorn.ahl/Tools/instantclient_18_1
export PKG_CONFIG_PATH=/Users/bjorn.ahl/Tools/pkgconfig
export LD_LIBRARY_PATH=$ORACLE_HOME
color_prompt=yes
if ! [ -x /usr/bin/tput ] || ! tput setaf 1 >&/dev/null; then
# We have no color support; not compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=
fi
export TERM='screen-256color'
if [[ -f "${HOME}/.gpg-agent-info" ]]; then
# on OS X with GPGTools, comment out the next line:
eval $(gpg-agent --daemon)
GPG_TTY=$(tty)
export GPG_TTY
. "${HOME}/.gpg-agent-info"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
export GPG_AGENT_INFO
export SSH_AUTH_SOCK
fi
# source dotfiles in .dotfiles
if [[ -f ~/.dotfiles ]]; then
echo "file exists"
while read dotfile; do
if [[ -f ~/"${dotfile}" ]]; then
source ~/"${dotfile}"
fi
done <~/.dotfiles
fi
# Add Tab-completion for SSH host aliases
if [[ -f ~/.ssh/config ]]; then
complete -o default -o nospace -W "$(grep -i "^host " $HOME/.ssh/conf.d/* |grep -v "^Host \*" | awk '{print $2}')" scp sftp ssh
fi
# Autocomplete for awscli
complete -C 'docker run -e COMP_LINE -e COMP_POINT -e COMMAND_LINE --rm --entrypoint /usr/bin/aws_completer txapps/awscli' awscli
# Adding autocomplete for bash
source <(gopass completion bash)
# Define alias
alias tc="tmux new -s $1"
alias ta="tmux attach -d -t $1"
alias terraform="tf"
if [[ -d "/usr/local/opt/coreutils" ]]; then
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
fi
if [[ -d "/usr/local/Cellar/libpq/11.1/bin" ]]; then
PATH=$PATH:/usr/local/Cellar/libpq/11.1/bin
fi
alias pass-private=' export PASSWORD_STORE_DIR=/Users/bjorn.ahl/src/github.com/dbgeek/pass'