-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_bashrc
41 lines (33 loc) · 1.04 KB
/
dot_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
[ ! -f "${XDG_CONFIG_HOME:-$HOME/.config}/shell/profile.sh" ] || . "${XDG_CONFIG_HOME:-$HOME/.config}/shell/profile.sh"
# Configure Homebrew completions
if type brew &>/dev/null
then
PATH="$(brew --prefix)/opt/coreutils/libexec/gnubin:$PATH"
HOMEBREW_PREFIX="$(brew --prefix)"
if [[ -r "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh" ]]
then
source "${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh"
else
for COMPLETION in "${HOMEBREW_PREFIX}/etc/bash_completion.d/"*
do
[[ -r "${COMPLETION}" ]] && source "${COMPLETION}"
done
fi
fi
# Configure mise
eval "$(mise activate bash --shims)"
# Configure pipx completions
eval "$(register-python-argcomplete pipx)"
# Configure zoxide
eval "$(zoxide init bash --cmd cd)"
# Configure fzf
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='code'
fi
export VISUAL='code'
export CARAPACE_BRIDGES='zsh,fish,bash,argcomplete' # optional
source <(carapace _carapace)