blob: 786cf6a2086db8a3cecd76f80ab116a376f4c702 (
plain) (
blame)
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
|
#!/bin/sh -l
append_path () {
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
for i in "$HOME"/.local/bin "$HOME"/.local/opt/*/bin "$HOME/go/bin"
do
if test -d "$i"
then
append_path "$i"
fi
done
export PATH
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/"
for i in nvim vim vi
do
if command -v "$i" > /dev/null
then
export VISUAL="$i"
break
fi
done
for i in ex ed
do
if command -v "$i" > /dev/null
then
export EDITOR=$i
fi
done
for i in less more
do
if command -v "$i" > /dev/null
then
export PAGER=less
fi
done
if test -f "$HOME"/.cargo/env
then
. "$HOME/.cargo/env"
fi
|