-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
117 lines (89 loc) · 3.04 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/bin/bash
# If not running interactively, don't do anything
[ "$PS1" = "" ] && return
if [ -d "$HOME/dra/bin" ]; then
PATH="$HOME/dra/bin:$PATH"
fi
if [ -d "$HOME/.local/binaries" ]; then
PATH="$HOME/.local/binaries:$PATH"
fi
eval "$(ssh-agent -s)" >/dev/null
. /usr/share/bash-completion/bash_completion
if [ -d "$HOME/.nix-profile/" ]; then
source "$HOME"/.nix-profile/etc/profile.d/nix.sh
source "$HOME"/.nix-profile/share/bash-completion/bash_completion
fi
if [ -f "$HOME/.cargo/env" ]; then
source "$HOME"/.cargo/env
else
PATH="$HOME/.cargo/bin:$PATH"
fi
#HISTORY
#export HISTCONTROL="${HISTCONTROL:-ignorespace:erasedups}"
export HISTCONTROL="${HISTCONTROL:-ignorespace}"
export HISTSIZE=10000
shopt -s histappend #append to bash_history if Terminal quits
# Recherche avec UpArrow/DownArrow
if [ -t 1 ]; then
bind '"[A":history-search-backward'
bind '"[B":history-search-forward'
fi
if [ -x "$(command -v zoxide)" ]; then
eval "$(zoxide init bash)"
fi
[[ $- == *i* ]] && [ -f "$HOME/.nix-profile/share/fzf/completion.bash" ] && source "$HOME/.nix-profile/share/fzf/completion.bash"
[[ $- == *i* ]] && [ -f /usr/share/bash-completion/completions/fzf ] && source /usr/share/bash-completion/completions/fzf
[ -f /usr/share/doc/fzf/examples/key-bindings.bash ] && source /usr/share/doc/fzf/examples/key-bindings.bash
[ -f "$HOME"/.nix-profile/share/fzf/key-bindings.bash ] && source "$HOME"/.nix-profile/share/fzf/key-bindings.bash
if [ -x "$(command -v starship)" ]; then
eval "$(starship init bash)"
fi
export RANGER_LOAD_DEFAULT_RC=FALSE
if [ -x "$(command -v direnv)" ]; then
eval "$(direnv hook bash)"
fi
if [ -f "$HOME"/.config/broot/launcher/bash/br ]; then
source "$HOME"/.config/broot/launcher/bash/br
fi
export EDITOR="nvim"
#export GOBIN="$HOME/go/bin"
export GOPATH="$HOME/dev"
PATH="$GOPATH/bin:$PATH"
export BAT_THEME="Nord"
source "$HOME/.bash_aliases"
source "$HOME/.bash_functions"
PATH="$HOME/dev/src/github.com/humboldtux/scripts":$PATH
PATH="$HOME/dev/src/github.com/humboldtux/scripts-priv":$PATH
export PATH
if [ -x "$(command -v navi)" ]; then
eval "$(navi widget bash)"
export NAVI_PATH="$HOME/dev/src/github.com/humboldtux/cheats-priv:$HOME/dev/src/github.com/humboldtux/cheats:$HOME/.local/share/navi/cheats"
fi
if [ -x "$(command -v zellij)" ]; then
eval "$(zellij setup --generate-completion bash)"
fi
if [ -x "$(command -v procs)" ]; then
eval "$(procs --gen-completion-out bash)"
fi
if [ -x "$(command -v cscli)" ]; then
eval "$(cscli completion bash)"
fi
if [ -f "$HOME/.govc_env" ]; then
source "$HOME"/.govc_env
fi
# shellcheck disable=SC1090
if ls /opt/vagrant/embedded/gems/gems/vagrant-*/contrib/bash/completion.sh &>/dev/null; then
. /opt/vagrant/embedded/gems/gems/vagrant-*/contrib/bash/completion.sh
fi
if [ -f "/usr/bin/packer" ]; then
complete -C /usr/bin/packer packer
fi
if [ -x "$(command -v minikube)" ]; then
eval "$(minikube completion bash)"
fi
if [ -x "$(command -v kubectl)" ]; then
eval "$(kubectl completion bash)"
fi
if [ -x "$(command -v faas-cli)" ]; then
eval "$(faas-cli completion --shell bash)"
fi