This repository has been archived by the owner on May 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.bashrc
executable file
·47 lines (39 loc) · 1.71 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
#!/usr/bin/env bash
#--------------------------------------------------------------------------------------------------------------------
###WAL COLORS
(cat ~/.cache/wal/sequences &)
source ~/.cache/wal/colors.sh
#--------------------------------------------------------------------------------------------------------------------
###FUNCTIONS
[ -d ~/.func ] && for file in ~/.func/*; do source "$file" ; done
###PROFILE
[[ -e ~/.profile ]] && source ~/.profile
###DIRENV
eval "$(direnv hook bash)"
###LAUNCHER
if [[ -n ${LAUNCHER} ]]; then
PS1="> "
bind 'RETURN: "\e[4~ & \n exit \n"'
return
fi
#--------------------------------------------------------------------------------------------------------------------
###SETTINGS
[[ $- != *i* ]] && return
[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
use_color=true
[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
[[ -z ${match_lhs} ]] && type -P dircolors >/dev/null && match_lhs=$(dircolors --print-database)
[[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] && use_color=true
xhost +local:root > /dev/null 2>&1
complete -cf sudo
shopt -s checkwinsize
shopt -s expand_aliases
shopt -s histappend
#--------------------------------------------------------------------------------------------------------------------
###THEME
source ~/.config/promptline
#--------------------------------------------------------------------------------------------------------------------
source /home/bresilla/.config/broot/launcher/bash/br
[[ -f ~/.resh/shellrc ]] && source ~/.resh/shellrc
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh