-
Notifications
You must be signed in to change notification settings - Fork 2
/
profile
72 lines (59 loc) · 1.46 KB
/
profile
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
#
# ~/.profile
#
# User-local profile files
: "${HOME?Need to set HOME}"
if [ -d "$HOME/.profile.d" ]
then
for f in "$HOME/.profile.d/"?*
do
logger --id=$$ "Sourcing file: $f"
[ -x "$f" ] && . "$f"
done
unset f
fi
# XDG
export XDG_CONFIG_HOME="$HOME/.config"
# Use nvim/vim/vi as default editor
if command -v "nvim" >/dev/null 2>&1; then
export EDITOR="nvim"
export VISUAL="nvim"
else
if command -v "vim" >/dev/null 2>&1; then
export EDITOR="vim"
export VISUAL="vim"
else
export EDITOR="vi"
export VISUAL="vi"
fi
fi
# Use less as pager
if command -v "less" >/dev/null 2>&1; then
export PAGER="less"
fi
# Load less pager config
if [[ -r "$HOME/.lessrc" ]]; then
source "$HOME/.lessrc"
fi
if command -v "qutebrowser" >/dev/null 2>&1; then
export GUIBROWSER=qutebrowser
elif command -v "firefox" >/dev/null 2>&1; then
export GUIBROWSER=firefox
fi
export PATH="$HOME/bin:$HOME/.local/bin:$PATH"
# Setup python startup config
export PYTHONSTARTUP=$HOME/.pythonrc.py
# Setup ruby gem path
if command -v 'ruby' >/dev/null 2>&1; then
export PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
fi
if [ -d "$HOME/.texmf" ]; then
export TEXMFHOME="$HOME/.texmf"
fi
# Set up terminal emulator
if command -v "alacritty" >/dev/null 2>&1; then
export TERMINAL="alacritty"
fi
export MPD_HOST="raspberrypi-4b.lan"
export MPD_LIBRARY_PATH=/data/music/
export KODI_HOST="raspberrypi-4b.lan"