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