diff options
Diffstat (limited to 'config/ksh/kshrc')
-rw-r--r-- | config/ksh/kshrc | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/config/ksh/kshrc b/config/ksh/kshrc index abf9bf0..bd8f48b 100644 --- a/config/ksh/kshrc +++ b/config/ksh/kshrc @@ -1,22 +1,31 @@ #!/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 +. $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 -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" +[[ -f "$KSHCONFIG/completions.ksh" ]] && . "$KSHCONFIG/completions.ksh" +[[ -f "$KSHCONFIG/prompt.ksh" ]] && . "$KSHCONFIG/prompt.ksh" |