-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.profile_extra
52 lines (45 loc) · 1.23 KB
/
.profile_extra
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
# Add to path functions
append_to_path() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="${PATH:+"$PATH:"}$1"
fi
}
prepend_to_path() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="$1${PATH:+":$PATH"}"
fi
}
# Add to path
prepend_to_path "$HOME/.local/bin"
prepend_to_path "$HOME/.local/scripts"
# Locale
export LANG="en_GB.utf8"
# General variables
if command -v nvim > /dev/null 2>&1; then
export EDITOR=nvim
elif command -v vim > /dev/null 2>&1; then
export EDITOR=vim
elif command -v vi > /dev/null 2>&1; then
export EDITOR=vi
fi
export PAGER="less -iR"
export TERMINAL="alacritty"
export BROWSER="flatpak run com.brave.Browser"
# Export less variables to have colored man pages
export LESS_TERMCAP_mb=$'\e[1;32m'
export LESS_TERMCAP_md=$'\e[1;32m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[01;33m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[1;4;31m'
# Aur Utils
export AUR_REPO="aur"
export AUR_DBROOT="/var/cache/pacman/aurpkg"
export AUR_PAGER="nvim"
# Shell variables
export SHELL="/bin/bash"
# History file path
mkdir -p "$HOME/.config/bash"
export HISTFILE="$HOME/.config/bash/history"
newsboat -x reload