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/kshrc10
1 files changed, 4 insertions, 6 deletions
diff --git a/config/ksh/kshrc b/config/ksh/kshrc
index 36350d0..e81bd97 100644
--- a/config/ksh/kshrc
+++ b/config/ksh/kshrc
@@ -1,14 +1,12 @@
 #!/bin/ksh
-. $HOME/.config/shrc
+. $HOME/etc/shrc
 KSHCONFIG="$XDG_CONFIG_HOME/ksh"
-if ! echo "$PATH"|grep -q ".local/bin"; then
-  export PATH="$HOME/.local/bin:$PATH"
-fi
 FPATH=$XDG_CONFIG_HOME/ksh/functions
+alias functions="cat \$FPATH/*|grep -vF '#!/bin/ksh'"
 
 HISTFILE=$XDG_DATA_HOME/ksh/histfile
-if ! [[ -d $HISTFILE ]]; then
-	mkdir -p $HISTFILE;
+if ! [[ -d $(dirname $HISTFILE) ]]; then
+	mkdir -p $(dirname $HISTFILE);
 fi
 HISTSIZE=5000
 HISTCONTROL="ignoredups"