bash: adapt config for guix system
[~bandali/configs] / .profile
... / ...
CommitLineData
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
5export EDITOR="emacsclient -nw"
6export VISUAL="emcl"
7
8PATH="$HOME/bin:$HOME/.local/bin:$PATH"
9PATH="$HOME/.cabal/bin:$HOME/.cargo/bin:$HOME/.elan/bin:$PATH"
10PATH="$HOME/.guix-profile/bin:$HOME/.guix-profile/sbin${PATH:+:}$PATH"
11export PATH
12
13export XDG_CONFIG_HOME="$HOME/.config"
14export XDG_DATA_HOME="$HOME/.local/share"
15
16export INPUTRC="$XDG_CONFIG_HOME"/readline/inputrc
17export SCREENRC="$XDG_CONFIG_HOME"/screen/screenrc
18
19export MAILDIR="$HOME/mail"
20export CVS_RSH="ssh"
21
22export GOPATH="$HOME/src/go"
23
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
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
36if [ -x "$(command -v guix)" ]; then
37 GUIX_PROFILE="$HOME/.guix-profile"
38 . "$GUIX_PROFILE/etc/profile"
39fi
40
41setxkbmap \
42 -layout us,ir \
43 -option ctrl:nocaps \
44 -option grp:shifts_toggle
45
46xmodmap -e "keysym Menu = Super_R"
47
48xrdb -merge "$HOME/.Xresources"