#!/bin/ksh . $HOME/.config/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 HISTFILE=$XDG_DATA_HOME/ksh/histfile HISTSIZE=5000 HISTCONTROL="ignoredups" TMPDIR=$XDG_CACHE_HOME/ksh # shortcut for cloning GITHUB="https://github.com" # make pfetch show what i want export PF_INFO="ascii title os host shell editor wm pkgs uptime palette" # fix manpath so local man pages work # crude *bsd detection if [[ -d /usr/X11R6 ]]; then export MANPATH="/usr/share/man:/usr/X11R6/man:/usr/local/man:$XDG_DATA_HOME/man" else export MANPATH="/usr/share/man:/usr/local/share/man:$XDG_DATA_HOME/man" fi set -o vi #load ksh external configs . $XDG_CONFIG_HOME/lf/lfcd.sh [[ -f "$KSHCONFIG/diraliases" ]] && . "$KSHCONFIG/diraliases" [[ -f "$XDG_CONFIG_HOME/aliasrc" ]] && . "$XDG_CONFIG_HOME/aliasrc" [[ -f "$KSHCONFIG/completions.ksh" ]] && . "$KSHCONFIG/completions.ksh" [[ -f "$KSHCONFIG/prompt.ksh" ]] && . "$KSHCONFIG/prompt.ksh"