-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
135 lines (102 loc) · 3.73 KB
/
Copy pathbashrc
File metadata and controls
135 lines (102 loc) · 3.73 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
133
134
135
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
_keychain_keys=()
for _k in github golem gitlab-home-lab-merlin turkishDelight; do
[ -f "$HOME/.ssh/$_k" ] && _keychain_keys+=("$_k")
done
[ ${#_keychain_keys[@]} -gt 0 ] && eval "$(keychain --eval --quiet "${_keychain_keys[@]}")"
unset _keychain_keys _k
export EDITOR=nvim
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=50000
HISTFILESIZE=100000
export HISTTIMEFORMAT="%F %T "
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
# [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/git/LS_COLORS/LS_COLORS && eval "$(dircolors -b ~/git/LS_COLORS/LS_COLORS)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
source ~/.alias
source ~/.alias.sh
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
export FZF_DEFAULT_COMMAND='fd --type f --hidden --follow --exclude .git'
[[ -s "$HOME/.local/share/marker/marker.sh" ]] && source "$HOME/.local/share/marker/marker.sh"
[ -s "/home/merlin/.jabba/jabba.sh" ] && source "/home/merlin/.jabba/jabba.sh"
# . ~/.nix-profile/etc/profile.d/nix.sh
# source ~/git/git-subrepo/.rc
[ "$TERM" = "linux" ] && source $HOME/abrazo/tty-colors.sh
export LANG="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
source ~/.local/share/blesh/ble.sh
source ~/.bash-powerline.sh
source <(leadr --bash)
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
eval "$(atuin init bash --disable-up-arrow)"
# atuin path
export ATUIN_ROOT="$HOME/.atuin"
case ":$PATH:" in
*":$ATUIN_ROOT/bin:"*) ;;
*) export PATH="$ATUIN_ROOT/bin:$PATH" ;;
esac
# atuin end
eval "$(atuin init bash)"
# pnpm
export PNPM_HOME="/home/merlin/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# krew
export KREW_ROOT="$HOME/.krew"
case ":$PATH:" in
*":$KREW_ROOT/bin:"*) ;;
*) export PATH="$KREW_ROOT/bin:$PATH" ;;
esac
# krew end
# cuda-toolkit
export CUDA_ROOT="/usr/local/cuda"
case ":$PATH:" in
*":$CUDA_ROOT/bin:"*) ;;
*) export PATH="$CUDA_ROOT/bin:$PATH" ;;
esac
case ":$LD_LIBRARY_PATH:" in
*":$CUDA_ROOT/lib64:"*) ;;
*) export LD_LIBRARY_PATH="$CUDA_ROOT/lib64:$LD_LIBRARY_PATH" ;;
esac
# cuda-toolkit end
# Atuin history with fzf integration for search, standard arrow keys for browsing
# Arrow keys: regular bash history (with prefix matching via readline)
bind '"\e[A": history-search-backward' 2>/dev/null || true
bind '"\e[B": history-search-forward' 2>/dev/null || true
[ -f "$HOME/.config/broot/launcher/bash/br" ] && source "$HOME/.config/broot/launcher/bash/br"
. "$HOME/.cargo/env"
# Guarded broot sourcing for PR #36
[ -f "$HOME/.config/broot/launcher/bash/br" ] && source "$HOME/.config/broot/launcher/bash/br"
. "$HOME/.atuin/bin/env"