0f17b9bcade0378e66f9a3bdb5ec47542822140f
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
5 # source host-specific profile
6 if [ -f "$HOME/.config/profiles/$(hostname)" ]; then
7 .
"$HOME/.config/profiles/$(hostname)"
10 export EDITOR
="emacsclient -nw"
13 PATH
="$HOME/usr/local/bin:$HOME/.local/bin:$PATH"
14 PATH
="$HOME/.cabal/bin:$HOME/.cargo/bin:$HOME/.elan/bin:$PATH"
15 if [ -z "$IS_GUIX_SYSTEM" ]; then
16 PATH
="$HOME/.config/guix/current/bin${PATH:+:}$PATH"
17 INFOPATH
="$HOME/.config/guix/current/share/info${INFOPATH:+:}$INFOPATH"
18 export GUIX_LOCPATH
="$HOME/.guix-profile/lib/locale"
23 export XDG_CONFIG_HOME
="$HOME/.config"
24 export XDG_DATA_HOME
="$HOME/.local/share"
26 export INPUTRC
="$XDG_CONFIG_HOME"/readline
/inputrc
27 export SCREENRC
="$XDG_CONFIG_HOME"/screen
/screenrc
29 export MAILDIR
="$HOME/mail"
32 export GOPATH
="$HOME/src/go"
35 if [ -n "$BASH_VERSION" ]; then
36 # include .bashrc if it exists
37 if [ -f "$HOME/.bashrc" ]; then
42 if [ -z "$IS_GUIX_SYSTEM" ]; then
43 # if guix is installed
44 if [ -x "$(command -v guix)" ]; then
45 SSL_CERT_DIR
="$HOME/.guix-profile/etc/ssl/certs"
46 if [ -d "$SSL_CERT_DIR" -o -h "$SSL_CERT_DIR" ]; then
48 export SSL_CERT_FILE
="$HOME/.guix-profile/etc/ssl/certs/ca-certificates.crt"
50 printf "it seems you forgot to \`guix install nss-certs\'\n"
52 GUIX_PROFILE
="$HOME/.guix-profile"
53 .
"$GUIX_PROFILE/etc/profile"
57 # start an ssh-agent (with guix's openssh)
58 if [ -z "$IS_GUIX_SYSTEM" ]; then
59 if ! pgrep
-u "$USER" ssh-agent
> /dev
/null
; then
60 ssh-agent
> ~
/.ssh-agent-thing
62 if [[ ! "$SSH_AUTH_SOCK" ]]; then
63 eval "$(<~/.ssh-agent-thing)"
70 -option grp
:shifts_toggle
72 xmodmap
-e "keysym Menu = Super_R"
74 xsetroot
-cursor_name left_ptr
78 xrdb
-merge "$HOME/.Xresources"
80 # footenote: when on a foreign distro and using Xfce, don't forget to
81 # disable its auto-start of gpg- and ssh-agent, by issuing
82 # xfconf-query -c xfce4-session -p /startup/ssh-agent/enabled -n -t bool -s false
83 # xfconf-query -c xfce4-session -p /startup/gpg-agent/enabled -n -t bool -s false
84 # see https://docs.xfce.org/xfce/xfce4-session/advanced#ssh_and_gpg_agents
85 # also, MATE does something similar with gnome-keyring-daemon:
86 # http://william.shallum.net/random-notes/disabling-gnome-keyring-daemon-ssh-agent-on-mate-desktop