about summary refs log tree commit diff stats
path: root/config/shrc
diff options
context:
space:
mode:
authorensa <psii@riseup.net>2020-05-15 21:54:43 -0700
committerensa <psii@riseup.net>2020-05-15 21:54:43 -0700
commit4f042d9c092370793730b08adc16fd53c4dd03f7 (patch)
tree50b7073f4dfb49e728e0249656f279a9febad503 /config/shrc
parentcd76dfd861b1f362c330f15a1614a0df7fb618d8 (diff)
downloadcfg-4f042d9c092370793730b08adc16fd53c4dd03f7.tar.gz
wal removed, X11 files added, shrc/user-dirs.dirs revamped
bin/comm-sel: forced cordless to obey XDG_CONFIG_HOME
bin/shenv: updated path to shrc
config/
	X11/
		xprofile: files for preparing an X session
			just read the file
		xresources: resources for an X session
			good colors, xterm configuration
	cwmrc
		added autogroup for xterm
		changed term to xterm
		changed editor binding to not include kludge
	shrc
		now uses better home hierarchy
			read for details
		EDITOR changed to vise
		TERMINAL changed to xterm
		IRC_SERVERS_FILE now included
		PYTHONUSERBASE now included
		_JAVA_OPTIONS now included
		TERMINFO now included
		MAILCAPS now included
		most changes result in a cleaner ~
	user-dirs.dirs
		all lines given directories in ~/share/xdg/
	vis/
		themes/fake256.lua
			made to look like vim's zellner theme on a 16color term
		visrc.lua
			sets colorscheme to the aforementioned
	wal/
		removed all

forgot to include some things, expect another commit in a couple minutes
Diffstat (limited to 'config/shrc')
-rw-r--r--config/shrc37
1 files changed, 26 insertions, 11 deletions
diff --git a/config/shrc b/config/shrc
index 3529cb1..533386f 100644
--- a/config/shrc
+++ b/config/shrc
@@ -1,15 +1,24 @@
 #!/bin/sh
 # cleaner shell environment than .profile, used with shenv
-export XDG_CACHE_HOME="$HOME/.cache"
-export XDG_CONFIG_HOME="$HOME/.config"
-export XDG_DATA_HOME="$HOME/.local/share"
+export HOME_ETC="$HOME/etc"
+export HOME_DATA="$HOME/share"
+export HOME_LOG="$HOME/var/log"
+export HOME_CACHE="$HOME/var/cache"
+export HOME_BIN="$HOME/bin"
+export HOME_EXT="$HOME/local"
+export HOME_EXT_BIN="$HOME_EXT/bin"
+export HOME_EXT_SRC="$HOME_EXT/src"
 
-export PATH="$HOME/.local/bin:$PATH"
+export XDG_CACHE_HOME="${HOME_CACHE:=$HOME/.cache}"
+export XDG_CONFIG_HOME="${HOME_ETC:=$HOME/.config}"
+export XDG_DATA_HOME="${HOME_DATA:=$HOME/.local/share}"
 
-export EDITOR="nvim"
+export PATH="$HOME_BIN:$HOME_EXT_BIN:$PATH"
+
+export EDITOR="vise"
 export FILE="lf"
 export PAGER="less"
-export TERMINAL="st"
+export TERMINAL="xterm"
 export ALTSCR="st-altscreen"
 export BROWSER="firefox"
 export COMM="comm-sel"
@@ -21,6 +30,8 @@ export SCR="maim"
 export LOCK="slock"
 #less args
 export LESS='-iFMRX~ -x2'
+#ircii (and derivatives) ircservers location
+export IRC_SERVERS_FILE="$HOME_DATA/ircservers"
 #locale info
 export LANGUAGE="en"
 export LANG="POSIX.UTF-8"
@@ -30,11 +41,15 @@ export CLICOLOR=1
 #todo(1)
 export TODO="$HOME/doc/todo"
 #ksh
-export ENV="$XDG_CONFIG_HOME/ksh/kshrc"
+export ENV="$HOME_ETC/ksh/kshrc"
 
 #cleanup paths
-export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0"
+export GTK2_RC_FILES="$HOME_ETC/gtk-2.0/gtkrc-2.0"
 export LESSHISTFILE="-"
-export GOPATH="$HOME/.local/go"
-export CARGO_HOME="$XDG_DATA_HOME/cargo"
-export MEDNAFEN_HOME="$XDG_CONFIG_HOME/mednafen"
+export GOPATH="$HOME_EXT/go"
+export CARGO_HOME="$HOME_EXT/rust"
+export PYTHONUSERBASE="$HOME_EXT/python"
+export MEDNAFEN_HOME="$HOME_ETC/mednafen"
+export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$HOME_ETC/java"
+export TERMINFO="$HOME_DATA/terminfo"
+export MAILCAPS="$HOME_ETC/mailcap"