shell: export guix’s SSL_CERT_{DIR,FILE} as needed
[~bandali/configs] / .profile
CommitLineData
9daac239
AB
1# ~/.profile: executed by the command interpreter for login shells.
2# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
3# exists.
14623136 4
47d195d9
AB
5# source host-specific profile
6if [ -f "$HOME/.config/profiles/$(hostname)" ]; then
7 . "$HOME/.config/profiles/$(hostname)"
8fi
9
2446aab5
AB
10export EDITOR="emacsclient -nw"
11export VISUAL="emcl"
d99f86cd 12
9daac239
AB
13PATH="$HOME/bin:$HOME/.local/bin:$PATH"
14PATH="$HOME/.cabal/bin:$HOME/.cargo/bin:$HOME/.elan/bin:$PATH"
47d195d9 15if [ -z "$IS_GUIX_SYSTEM" ]; then
09b0be0b
AB
16 PATH="$HOME/.config/guix/current/bin${PATH:+:}$PATH"
17 export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
47d195d9 18fi
9daac239 19export PATH
a75331ab 20
0f10b2c2
AB
21export XDG_CONFIG_HOME="$HOME/.config"
22export XDG_DATA_HOME="$HOME/.local/share"
9daac239
AB
23
24export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
25export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc
a75331ab 26
0f10b2c2
AB
27export MAILDIR="$HOME/mail"
28export CVS_RSH="ssh"
a75331ab 29
9daac239
AB
30export GOPATH="$HOME/src/go"
31
32# if running bash
33if [ -n "$BASH_VERSION" ]; then
34 # include .bashrc if it exists
35 if [ -f "$HOME/.bashrc" ]; then
36 . "$HOME/.bashrc"
37 fi
38fi
39
47d195d9
AB
40if [ -z "$IS_GUIX_SYSTEM" ]; then
41 # if guix is installed
42 if [ -x "$(command -v guix)" ]; then
48a62574
AB
43 export SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
44 export SSL_CERT_FILE="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
47d195d9
AB
45 GUIX_PROFILE="$HOME/.guix-profile"
46 . "$GUIX_PROFILE/etc/profile"
47 fi
48fi
49
9daac239 50setxkbmap \
a38abd4c 51 -layout us,ir \
9daac239 52 -option ctrl:nocaps \
9daac239 53 -option grp:shifts_toggle
a38abd4c
AB
54
55xmodmap -e "keysym Menu = Super_R"
56
57xrdb -merge "$HOME/.Xresources"