-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
46 lines (35 loc) · 708 Bytes
/
bash_profile
File metadata and controls
46 lines (35 loc) · 708 Bytes
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
#
# .bash_profile
#
# Author: Egidio Docile
#
# Get aliases and functions
[ -f ~/.bashrc ] && . ~/.bashrc
pathmunge() {
local -r dir="$1"
local -r pos="$2"
[[ -h "${dir}" ]] && return
case ":${PATH}:" in
*:"${dir}":*)
;;
*)
if [[ "${pos}" == "after" ]] ; then
PATH=$PATH:"${dir}"
else
PATH="${dir}":$PATH
fi
;;
esac
}
# Environment variables
export DOCKER_HOST="unix:///$XDG_RUNTIME_DIR/podman/podman.sock"
if command -v vimx &> /dev/null; then
export EDITOR="vimx"
elif command -v vim &> /dev/null; then
export EDITOR="vim"
else
export EDITOR="vi"
fi
# Add directories to PATH
pathmunge ~/.local/bin before
unset -f pathmunge