-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
77 lines (62 loc) · 2.17 KB
/
bash_profile
File metadata and controls
77 lines (62 loc) · 2.17 KB
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
export EDITOR=nvim
# git can now ask for gpg key passphrase
GPG_TTY=$(tty)
export GPG_TTY
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f "${HOME}"/.bash_aliases ]; then
# shellcheck disable=SC1091
. "${HOME}"/.bash_aliases
fi
# Change Pinta Language back to english
#export LANG=en_GB
#export LANG=en_US.UTF-8
# Verbose terraform stderr
# export TF_LOG="TRACE"
# Custom CA Bundle
# export CURL_CA_BUNDLE=/path/to/cert.pem
# github's hub as an alias for git
#eval "$(hub alias -s)"
# bash completion section
#complete -C aws_completer aws
#complete -C /usr/local/bin/vault vault
#complete -C /usr/local/bin/nomad nomad
#complete -C /usr/local/bin/terraform terraform
#source <(kubectl completion bash)
# Sourcing Operating System specific bash_profile settings
if [ -f "${HOME}"/.bash_os_profile ]; then
# shellcheck disable=SC1091
. "${HOME}"/.bash_os_profile
fi
# Sourcing Work specific bash_profile settings
if [ -f "${HOME}"/.bash_work_profile ]; then
# shellcheck disable=SC1091
. "${HOME}"/.bash_work_profile
fi
# https://ohmyposh.dev/
# load oh-my-posh prompt
#eval "$(oh-my-posh init bash --config "$(fd --type f -F -- 'dracula.omp.json' "$(brew --cellar)/oh-my-posh")")"
eval "$(oh-my-posh init bash --config "${HOME}"/.ohmyposh.json)"
# opam configuration
# shellcheck disable=SC1091
(test -r "${HOME}/.opam/opam-init/init.sh" && . "${HOME}/.opam/opam-init/init.sh" &> /dev/null) || true
# Load Fabric configuration
if [ -f "${HOME}/.config/fabric/fabric-bootstrap.inc" ]; then
. "${HOME}/.config/fabric/fabric-bootstrap.inc"
fi
# activate mise
# https://mise.jdx.dev/
eval "$(mise activate bash)"
if [[ -d "${KREW_ROOT:-$HOME/.krew}" ]]; then
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:${PATH}"
fi