forked from daviwil/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
62 lines (48 loc) · 1.94 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
# Augment PATH
export PATH="$HOME/.bin:$HOME/.npm-global/bin:$PATH"
# Load the default Guix profile
GUIX_PROFILE="$HOME/.guix-profile"
. "$GUIX_PROFILE"/etc/profile
# Load additional Guix profiles
GUIX_EXTRA_PROFILES=$HOME/.guix-extra-profiles
for i in $GUIX_EXTRA_PROFILES/*; do
profile=$i/$(basename "$i")
if [ -f "$profile"/etc/profile ]; then
GUIX_PROFILE="$profile"
. "$GUIX_PROFILE"/etc/profile
fi
unset profile
done
# Load Nix environment
if [ -f /run/current-system/profile/etc/profile.d/nix.sh ]; then
. /run/current-system/profile/etc/profile.d/nix.sh
fi
# Don't use the system-wide PulseAudio configuration
unset PULSE_CONFIG
unset PULSE_CLIENTCONFIG
# Export the path to IcedTea so that tools pick it up correctly
export JAVA_HOME=$(dirname $(dirname $(readlink $(which java))))
# Make sure we can reach the GPG agent for SSH auth
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
# Make sure `ls` collates dotfiles first (for dired)
export LC_COLLATE="C"
# Many build scripts expect CC to contain the compiler command
export CC="gcc"
# Make Flatpak apps visible to launcher
export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.local/share/flatpak/exports/share"
# Make applications in other profiles visible to launcher
export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.guix-extra-profiles/music/music/share"
export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.guix-extra-profiles/video/video/share"
export XDG_DATA_DIRS="$XDG_DATA_DIRS:$HOME/.guix-extra-profiles/browsers/browsers/share"
# Ensure that font folders are loaded correctly
xset +fp $(dirname $(readlink -f ~/.guix-extra-profiles/desktop/desktop/share/fonts/truetype/fonts.dir))
# We're in Emacs, yo
export VISUAL=emacsclient
export EDITOR="$VISUAL"
# Add Azure CLI to PATH if it exists
if [ -f $HOME/Tools/azure-cli ]; then
export PATH=$PATH:$HOME/Tools/azure-cli/bin
source '$HOME/Tools/azure-cli/az.completion'
fi
# Load .bashrc to get login environment
[ -f ~/.bashrc ] && . ~/.bashrc