-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
86 lines (69 loc) · 1.98 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
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
#!/usr/bin/env bash
# catch non-bash and non-interactive shells
[[ $- == *i* && $BASH_VERSION ]] && SHELL=bash || return 0
(uname -s | grep -q Darwin) && {
# Remove annoying deprecation message
export BASH_SILENCE_DEPRECATION_WARNING=1
unset POSIXLY_CORRECT
}
. ~/.config/bash/path_env
# set some defaults
# export HISTSIZE=10000
export HISTSIZE=
export HISTFILESIZE=
export HISTCONTROL=ignoreboth:ignoredups:erasedups
export HISTIGNORE="q:f:v"
# colors in less (manpager)
export LESS_TERMCAP_mb=$'\e[01;31m'
export LESS_TERMCAP_md=$'\e[01;31m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[01;44;33m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[01;32m'
export LESSHISTFILE="-"
set -o vi
bind -m vi-command "Control-l:clear-screen"
bind -m vi-insert "Control-l:clear-screen"
set -o notify
shopt -s direxpand 2>/dev/null
shopt -s checkhash
shopt -s sourcepath
shopt -s expand_aliases
shopt -s extglob dotglob
shopt -s no_empty_cmd_completion
shopt -s autocd 2>/dev/null
shopt -s cdspell
shopt -s cmdhist histappend histreedit histverify
[[ $DISPLAY ]] && shopt -s checkwinsize
# prompt if file sourcing below fails
PS1='[\u@\h \W]\$ '
# uncomment these lines to disable the multi-line prompt
# add user@host, and remove the unicode line-wrap characters
# export PROMPT_LNBR1=''
# export PROMPT_MULTILINE=''
# export PROMPT_USERFMT='\u\[\e[0m\]@\[\e[31m\]\h '
# source shell configs
for f in "$XDG_CONFIG_HOME/bash/"*?.bash; do
# shellcheck source=/dev/null
. "$f"
done
if command -v brew >/dev/null 2>&1; then
prefix="$(brew --prefix)"
# shellcheck source=/dev/null
if [ -d "$prefix/etc/bash_completion.d/" ]; then
# shellcheck source=/dev/null
for f in "$prefix/etc/bash_completion.d/"*; do
# shellcheck source=/dev/null
. "$f"
done
fi
unset prefix
fi
unset f
#al-info
# neofetch
if command -v zoxide >/dev/null 2>&1; then
eval "$(zoxide init bash)"
fi
ls