commit 731e97905e591be85f77a171d9d832c9c7e18a40
parent aa673a6e2066b3ea31c1fe47296ce180a435d546
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Mon, 17 Aug 2020 18:55:17 -0700
Move profile to xdg config
Diffstat:
5 files changed, 47 insertions(+), 47 deletions(-)
diff --git a/ksh/.config/ksh b/ksh/.config/ksh
@@ -1,13 +0,0 @@
-# simple ksh init file
-
-set -o vi
-
-. ~/.profile
-. $XDG_CONFIG_HOME/aliases
-
-HISTFILE="$HISTBASE/ksh/history"
-HISTSIZE="820000"
-PS1="\w "
-PS2="2> "
-PS3="3> "
-PS4="4> "
diff --git a/ksh/.config/ksh.kshrc b/ksh/.config/ksh.kshrc
@@ -0,0 +1,13 @@
+# simple ksh init file
+
+set -o vi
+
+[ -f $XDG_CONFIG_HOME/profile ] && . $XDG_CONFIG_HOME/profile
+[ -f $XDG_CONFIG_HOME/aliases ] && . $XDG_CONFIG_HOME/aliases
+
+HISTFILE="$HISTBASE/ksh/history"
+HISTSIZE="820000"
+PS1="\w "
+PS2="2> "
+PS3="3> "
+PS4="4> "
diff --git a/profile/.config/profile b/profile/.config/profile
@@ -0,0 +1,33 @@
+# unix profile
+
+# Default programs and settings
+export XDG_CONFIG_HOME="$HOME/.config"
+export SHELL=ksh
+export ENV="$XDG_CONFIG_HOME/ksh.kshrc"
+export BROWSER=vimb
+export EDITOR=vim
+export TERMINAL=st
+export COMPOSITOR=picom
+export PAGER=less
+export LESS="X F M r S W x2 ~ q i b80 h15 z23 j5"
+export LESSHISTFILE="/dev/null"
+export LOCKER=slock
+export ALL_PROXY="socks://localhost:9050"
+export HTTP_PROXY="$ALL_PROXY"
+export CARGO_HOME="$HOME/.local/lib/cargo"
+export HISTBASE="$HOME/.local/var"
+export TMPDIR="/tmp"
+export INPUTRC="$XDG_CONFIG_HOME/readline"
+export PASSWORD_STORE_DIR="$HOME/.local/var/pass"
+
+# PATH
+PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:$PATH
+PATH=$CARGO_HOME/bin:$PATH
+PATH=$HOME/bin:$PATH
+PATH=$HOME/.local/bin:$PATH
+export PATH
+
+# Locations
+export WALLPAPERS="$HOME/image/wallpapers"
+export SCREENSHOTS="$HOME/own/image/screenshots"
+export STICKY="$HOME/own/text/sticky"
diff --git a/profile/.profile b/profile/.profile
@@ -1,33 +0,0 @@
-# unix profile
-
-# Default programs and settings
-export XDG_CONFIG_HOME="$HOME/.config"
-export SHELL=ksh
-export ENV="$XDG_CONFIG_HOME/ksh"
-export BROWSER=vimb
-export EDITOR=vim
-export TERMINAL=st
-export COMPOSITOR=picom
-export PAGER=less
-export LESS="X F M r S W x2 ~ q i b80 h15 z23 j5"
-export LESSHISTFILE="/dev/null"
-export LOCKER=slock
-export ALL_PROXY="socks://localhost:9050"
-export HTTP_PROXY="$ALL_PROXY"
-export CARGO_HOME="$HOME/.local/lib/cargo"
-export HISTBASE="$HOME/.local/var"
-export TMPDIR="/tmp"
-export INPUTRC="$XDG_CONFIG_HOME/readline"
-export PASSWORD_STORE_DIR="$HOME/.local/var/pass"
-
-# PATH
-PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:$PATH
-PATH=$CARGO_HOME/bin:$PATH
-PATH=$HOME/bin:$PATH
-PATH=$HOME/.local/bin:$PATH
-export PATH
-
-# Locations
-export WALLPAPERS="$HOME/image/wallpapers"
-export SCREENSHOTS="$HOME/own/image/screenshots"
-export STICKY="$HOME/own/text/sticky"
diff --git a/xsession/.xsession b/xsession/.xsession
@@ -1,4 +1,4 @@
-. ~/.profile
+[ -f ~/.config/profile ] && . ~/.config/profile
# disable core dumps.
ulimit -Sc 0