-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_bashrc
64 lines (50 loc) · 1.34 KB
/
dot_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
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
set -o vi
# Disable bell. This is also in .inputrc
bind 'set bell-style none'
export CLICOLORS=1
export LSCOLORS=GxFxCxDxBxegedabagaced
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# Don’t clear the screen after quitting a manual page
export MANPAGER="less -X"
export EDITOR=vi
if command -v hx &> /dev/null; then
# Prefer helix editor
export EDITOR=hx
fi
# Prefer GB English and use UTF-8
export LANG="en_GB.UTF-8"
export LC_ALL="en_GB.UTF-8"
# Free Desktop XDG vars
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CACHE_HOME=$HOME/.cache
export XDG_DATA_HOME=$HOME/.local/share
export XDG_STATE_HOME=$HOME/.local/state
# See ~/.bashrc.d/env-xdg.bashrc for shims
# to make non-compliant programs use the XDG directories.
# Finally, user specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc" || true
fi
done
fi
unset rc
if [ -f "$XDG_DATA_HOME/cargo/env" ]; then
. "$XDG_DATA_HOME/cargo/env"
fi
if [ -d "/usr/lib64/helix/runtime" ]; then
export HELIX_RUNTIME="/usr/lib64/helix/runtime"
fi