bash: adapt config for guix system
[~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
2446aab5
AB
5export EDITOR="emacsclient -nw"
6export VISUAL="emcl"
d99f86cd 7
9daac239
AB
8PATH="$HOME/bin:$HOME/.local/bin:$PATH"
9PATH="$HOME/.cabal/bin:$HOME/.cargo/bin:$HOME/.elan/bin:$PATH"
a38abd4c 10PATH="$HOME/.guix-profile/bin:$HOME/.guix-profile/sbin${PATH:+:}$PATH"
9daac239 11export PATH
a75331ab 12
0f10b2c2
AB
13export XDG_CONFIG_HOME="$HOME/.config"
14export XDG_DATA_HOME="$HOME/.local/share"
9daac239
AB
15
16export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
17export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc
a75331ab 18
0f10b2c2
AB
19export MAILDIR="$HOME/mail"
20export CVS_RSH="ssh"
a75331ab 21
9daac239
AB
22export GOPATH="$HOME/src/go"
23
a38abd4c
AB
24export GIT_EXEC_PATH="$HOME/.guix-profile/libexec/git-core"
25export PASSWORD_STORE_SYSTEM_EXTENSION_DIR="$HOME/.guix-profile/lib/password-store/extensions${PASSWORD_STORE_SYSTEM_EXTENSION_DIR:+:}$PASSWORD_STORE_SYSTEM_EXTENSION_DIR"
26
9daac239
AB
27# if running bash
28if [ -n "$BASH_VERSION" ]; then
29 # include .bashrc if it exists
30 if [ -f "$HOME/.bashrc" ]; then
31 . "$HOME/.bashrc"
32 fi
33fi
34
35# if guix is installed
d99f86cd 36if [ -x "$(command -v guix)" ]; then
9daac239
AB
37 GUIX_PROFILE="$HOME/.guix-profile"
38 . "$GUIX_PROFILE/etc/profile"
d99f86cd 39fi
0f10b2c2 40
9daac239 41setxkbmap \
a38abd4c 42 -layout us,ir \
9daac239 43 -option ctrl:nocaps \
9daac239 44 -option grp:shifts_toggle
a38abd4c
AB
45
46xmodmap -e "keysym Menu = Super_R"
47
48xrdb -merge "$HOME/.Xresources"