about summary refs log tree commit diff stats
path: root/config/ksh/kshrc
diff options
context:
space:
mode:
Diffstat (limited to 'config/ksh/kshrc')
-rw-r--r--config/ksh/kshrc22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/ksh/kshrc b/config/ksh/kshrc
new file mode 100644
index 0000000..abf9bf0
--- /dev/null
+++ b/config/ksh/kshrc
@@ -0,0 +1,22 @@
+#!/bin/ksh
+export XDG_CACHE_HOME=${XDG_CACHE_HOME:=~/.cache}
+export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:=~/.config}
+export XDG_DATA_HOME=${XDG_DATA_HOME:=~/.local/share}
+. $XDG_CONFIG_HOME/shrc
+KSHCONFIG="$XDG_CONFIG_HOME/ksh"
+if ! echo "$PATH"|grep -q ".local/bin"; then
+  export PATH="$HOME/.local/bin:$PATH"
+fi
+
+HISTFILE=$XDG_DATA_HOME/ksh/histfile
+HISTSIZE=5000
+HISTCONTROL="ignoredups"
+TMPDIR=$XDG_CACHE_HOME/ksh
+
+#load ksh external configs
+for file in $KSHCONFIG/*.ksh; do
+	. "$file"
+done
+. $XDG_CONFIG_HOME/lf/lfcd.sh
+[[ -f "$KSHCONFIG/diraliases" ]] && . "$KSHCONFIG/diraliases"
+[[ -f "$XDG_CONFIG_HOME/aliasrc" ]] && . "$XDG_CONFIG_HOME/aliasrc"
id='n117' href='#n117'>117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168