-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
93 lines (75 loc) · 2.66 KB
/
.bashrc
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Start up Starship
eval "$(starship init bash)"
# If not running interactively, don't do anything
[[ "$-" != *i* ]] && return
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
shopt -s histappend
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
#
# Uncomment to turn on programmable completion enhancements.
# Any completions you add in ~/.bash_completion are sourced last.
[[ -f /etc/bash_completion ]] && . /etc/bash_completion
[[ -f $HOME/etc/bash_aliases ]] && . $HOME/etc/bash_aliases
export GOPATH=~/go
export PATH=$PATH:$HOME/bin:$GOPATH/bin:$HOME/.local/bin
# AWS
export AWS_VAULT_KEYCHAIN_NAME=login
complete -C /usr/local/bin/aws_completer aws aws-vault
_aws-vault_bash_autocomplete() {
local cur prev opts base
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
opts=$( ${COMP_WORDS[0]} --completion-bash "${COMP_WORDS[@]:1:$COMP_CWORD}" )
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0
}
complete -F _aws-vault_bash_autocomplete -o default aws-vault
export AWS_VAULT_PROMPT=osascript
export AWS_SDK_LOAD_CONFIG=1
# Aliases
#
# Some people use a different file for aliases
if [ -f "${HOME}/.bash_aliases" ]; then
source "${HOME}/.bash_aliases"
fi
# Environment variables
HISTSIZE=5000000
HISTFILESIZE=-1
HISTTIMEFORMAT="%y/%m/%d %T "
EDITOR=nvim
TERM=screen-256color
ANSIBLE_NOCOWS=1
BASH_SILENCE_DEPRECATION_WARNING=1
RIPGREP_CONFIG_PATH=~/.config/ripgreprc
#FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow'
FZF_DEFAULT_COMMAND='fd --follow --hidden --exclude .git --color=always'
FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
FZF_DEFAULT_OPTS="--ansi"
export TERM EDITOR HISTSIZE HISTFILESIZE ANSIBLE_NOCOWS RIPGREP_CONFIG_PATH BASH_SILENCE_DEPRECATION_WARNING FZF_DEFAULT_COMMAND FZF_CTRL_T_COMMAND FZF_DEFAULT_OPTS
set -o vi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# Complete SSH hosts
#complete -W "$(echo `cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | grep -v "\["`;)" ssh
#Pass through for Ctrl-S to work in vim
stty -ixon
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# Secrets
DO_API_TOKEN=
REDDIT_CLIENTID=
REDDIT_SECRET=
B2_ACCOUNT_ID=
B2_ACCOUNT_KEY=
RESTIC_REPOSITORY=
RESTIC_PASSWORD_FILE=
HETZNER_API_TOKEN=
HUMIO_TOKEN=
GITHUB_TOKEN=
TELEGRAM_TOKEN=
[[ -f $HOME/.env ]] && . $HOME/.env
export DO_API_TOKEN REDDIT_CLIENTID REDDIT_SECRET B2_ACCOUNT_ID B2_ACCOUNT_KEY RESTIC_REPOSITORY RESTIC_PASSWORD_FILE HETZNER_API_TOKEN WALLABAG_USERNAME WALLABAG_PASSWORD WALLABAG_CLIENT_ID WALLABAG_CLIENT_SECRET GITHUB_TOKEN TELEGRAM_TOKEN DATADOG_KEY DATADOG_KEY_ID HUMIO_TOKEN
export GITHUB_OAUTH_TOKEN=$GITHUB_TOKEN
# Needed for terragrunt plan-alls
ulimit -n 10240