~mehdix/dotfiles

dotfiles/.bashrc -rw-r--r-- 905 bytes
dbb66100Mehdi Sadeghi Change prompt to two lines and add nix. a day ago
                                                                                
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
echo .bashrc begin
# .bashrc
[ $0 != sh ] && [ -n "${ENV:=$HOME/.env}" ] && . "$ENV"

PS1='\[\033[1;33m\]$($HOME/.local/bin/prompt)\[\033[0m\]'
HISTCONTROL=ignoreboth:erasedups
HISTIGNORE="gst"
# see man strftime
HISTTIMEFORMAT="%F "

# Uncomment this line and remove `histappend' to enable shared history.
PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r;"
#shopt -s histappend

# Enable recursive search including hidden subs
shopt -s globstar dotglob

# See Bash manual
_completion_loader()
{
	# Completion files on Arch
	. "/usr/share/bash-completion/completions/$1" >/dev/null 2>&1 && return 124
}
complete -D -F _completion_loader -o bashdefault -o default

# Load if available
[ -f ~/.fzf.bash ] && . ~/.fzf.bash
[ -f ~/.config/broot/launcher/bash/br ] && . ~/.config/broot/launcher/bash/br
[ -f ~/.local/src/z.sh ] && . ~/.local/src/z.sh

echo .bashrc end