Repository navigation
Expand file tree
/
Copy pathdot_bashrc
More file actions
132 lines (105 loc) · 3.99 KB
/
Copy pathdot_bashrc
File metadata and controls
132 lines (105 loc) · 3.99 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# shellcheck shell=bash source=/dev/null
# Source global definitions
[[ -f /etc/bashrc ]] && . /etc/bashrc
# Load blesh
if $_isarch; then
[[ $- == *i* ]] && source /usr/share/blesh/ble.sh --noattach
else
[[ -d $HOME/.local/share/blesh ]] && source "$HOME/.local/share/blesh/ble.sh"
fi
# User specific aliases, environment, and functions
homebrew="$(command -v {/opt/homebrew,/usr/local}/bin/brew 2>/dev/null)"
if [[ -n $homebrew ]]; then
if [[ -z ${HOMEBREW_REPOSITORY+x} ]]; then
# shellcheck disable=SC2046
eval $(env -i HOME="$HOME" "$homebrew" shellenv)
else
# shellcheck disable=SC2046
eval $(env -i HOME="$HOME" "$homebrew" shellenv | grep -w PATH=)
fi
fi
unset homebrew
# enable bash completion in interactive shells
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# if [[ $OSTYPE = darwin* ]] && [[ $TERM = tmux-256color ]]; then
# export TERMINFO="$HOME/.local/share/terminfo"
# if ! [[ $TERMINFO/74/tmux-256color -nt $HOME/.config/dotfiles/tmux-256color.terminfo ]]; then
# mkdir -p "$TERMINFO"
# /usr/bin/tic -x "$HOME/.config/dotfiles/tmux-256color.terminfo"
# fi
# fi
# Aliases
[[ -f ~/.config/shell/aliases ]] && . ~/.config/shell/aliases
# Functions
[[ -f ~/.config/shell/funcs ]] && . ~/.config/shell/funcs
# completion for dotfiles command
alias dotfiles='git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME'
[[ $(type -t __git_complete) = function ]] && __git_complete dotfiles git
# History
FIGNORE=DS_Store
HISTCONTROL=ignoreboth:ignoredups:erasedups
HISTSIZE=500000
HISTFILESIZE=50000000
HISTTIMEFORMAT="%F %T "
HISTIGNORE='&:[ ]*:exit:[bf]g:rm*:mpv*:z*:cp*:mv*:ls:ll:la:clear:date:pwd:mpc*'
shopt -s checkwinsize histappend
# Directory Navigation
shopt -s autocd
# Don't overwrite existing files by redirection
set -o noclobber
# Load private things
[[ -f "$HOME/.bash_private" ]] && . "$HOME/.bash_private"
# Load zoxide
eval "$(zoxide init bash)"
# Startup blesh
[[ ${BLE_VERSION-} ]] && ble-attach
# Start Sway
#[ "$(tty)" = "/dev/tty1" ] && exec sway
# if [[ ! "$PATH" == */home/dnewman/.fzf/bin* ]]; then
# PATH="${PATH:+${PATH}:}/home/dnewman/.fzf/bin"
# fi
if [[ -d "$HOME/.fzf/bin/" ]]; then
eval "$(fzf --bash)"
fi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
# Generated for envman. Do not edit.
[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh"
# Load starship
eval "$(starship init bash)"
# all my terminals support color so let's colorize this alllllll
# PS1="\[\e[33m\][\t] \`if [[ \$? = '0' ]]; then echo \"\[\e[0;32m\]\"; else echo \"\[\e[0;31m\]\"; fi\`\u@\h\[\e[0m\]> "
# modify the title bar, too
# PS1="\[\e]0;\u@\h: \w\a\]$PS1"
# Added by LM Studio CLI (lms)
[[ -d "$HOME/.lmstudio/" ]] && export PATH="$PATH:$HOME/.lmstudio/bin"
if [ -e "/usr/bin/asdf" ]; then
export ASDF_DATA_DIR="${HOME}/.asdf"
export PATH="$ASDF_DATA_DIR/shims:$PATH"
fi
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
bleopt highlight_syntax=true
# eval "$(atuin init bash)"
[[ -d ~/.linuxbrew ]] && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" && complete -C /home/linuxbrew/.linuxbrew/Cellar/opentofu/1.10.6/bin/tofu tofu
. "$HOME/.cargo/env"
source "$HOME/.cargo/env"
# ByteRover CLI
export PATH="$HOME/.brv-cli/bin:$PATH"
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/home/dnewman/.sdkman"
[[ -s "/home/dnewman/.sdkman/bin/sdkman-init.sh" ]] && source "/home/dnewman/.sdkman/bin/sdkman-init.sh"
# >>> intelligent-terminal shell-integration >>>
# Auto-generated by Intelligent Terminal. Do not edit between markers.
# Sources a versioned script under $HOME so this is machine-portable
# and a silent no-op when the script file is missing.
if [ -n "${BASH_VERSION:-}" ]; then
__it_si="${HOME:-}/.intelligent-terminal/shell-integration_v3.sh"
[ -f "$__it_si" ] && . "$__it_si"
unset __it_si
fi
# <<< intelligent-terminal shell-integration <<<