dotfiles

shared miscellaneous configuration files between my systems
git clone git://git.eonn.xyz/dotfiles.git
Log | Files | Refs

.bash_profile (1325B)


      1 xorg_start(){
      2 	SYSTEM_PROFILE="/run/current-system/profile"
      3 	exec $SYSTEM_PROFILE/bin/xinit -- $SYSTEM_PROFILE/bin/Xorg :0 vt1 -keeptty \
      4 		-configdir $SYSTEM_PROFILE/share/X11/xorg.conf.d \
      5 		-modulepath $SYSTEM_PROFILE/lib/xorg/modules
      6 }
      7 
      8 SYSTEM_PROFILE="/run/current-system/profile"
      9 GUIX_PROFILE="/home/ian/.guix-profile"
     10 . "$GUIX_PROFILE"/etc/profile
     11 XDG_DATA_DIRS="$SYSTEM_PROFILE"/share:"$GUIX_PROFILE"/share
     12 XDG_CONFIG_DIRS="$SYSTEM_PROFILE"/etc:"$GUIX_PROFILE"/etc
     13 
     14 GUIX_EXTRA_PROFILES="/home/ian/.guix-extra-profiles"
     15 
     16 for i in $GUIX_EXTRA_PROFILES/*; do
     17 	profile=$i/$(basename "$i")
     18 	if [ -f "$profile"/etc/profile ]; then
     19 		GUIX_PROFILE="$profile"
     20 		. "$GUIX_PROFILE"/etc/profile
     21 		XDG_DATA_DIRS="$XDG_DATA_DIRS":"$GUIX_PROFILE"/share
     22 		XDG_CONFIG_DIRS="$XDG_CONFIG_DIRS":"$GUIX_PROFILE"/etc
     23 	fi
     24 	unset profile
     25 done
     26 
     27 export XDG_DATA_DIRS
     28 export XDG_CONFIG_DIRS
     29 
     30 export HOME=/home/ian
     31 export EDITOR="emacs -nw"
     32 
     33 export GUIX_PACKAGE_PATH="/home/ian/guix-config/guix-package-path"
     34 export GUILE_LOAD_PATH="$GUILE_LOAD_PATH":/home/ian/guix-config/modules
     35 
     36 EMACS_PROFILE="$GUIX_EXTRA_PROFILES"/emacs/emacs
     37 export EMACSLOADPATH="$EMACSLOADPATH":"$EMACS_PROFILE"/share/emacs/site-lisp
     38 
     39 if shopt -q login_shell; then
     40 	[[ -f ~/.bashrc ]] && source ~/.bashrc
     41 	[[ -t 0 && $(tty) == /dev/tty1 && ! $DISPLAY ]] && xorg_start
     42 fi