diff options
author | Ensa <psychoticfervor@tuta.io> | 2020-03-07 07:08:38 -0800 |
---|---|---|
committer | Ensa <psychoticfervor@tuta.io> | 2020-03-07 07:08:38 -0800 |
commit | c4632455cff4a5097a3a35ad9d0531388776d028 (patch) | |
tree | d31eb3b660ef94decb06c407057d1cdb2532cd25 /config/ksh/functions/update_completion_manpages | |
parent | 8fa69fc68072910f855958b3b79360ede1a32682 (diff) | |
download | cfg-c4632455cff4a5097a3a35ad9d0531388776d028.tar.gz |
ksh config update
synopsis: now utilizes FPATH instead of one functions file, relocated more into kshrc, fancy prompt prompt.ksh formerly zz-prompt.ksh, now doesn't need a weird name because i'm not using loops to load in config files. prompt.ksh provides a different appearance than the previous PS1, and has a section for displaying the git repo branch if PWD is a git repo. it also now uses a (commented out) reference table for ANSI escape codes because variable names were too long. kshrc now simply loads shrc from ~/.config instead of setting up the XDG vars in advance uses FPATH pointing to config/ksh/functions poured in exports.ksh, changed one export to a normal variable because it wasn't needed checks for /usr/X11R6 to see if MANPATH should be what works on openbsd now uses checkloads for all config files instead of for file in funcions/ WIP zone, a lot of this isn't named properly yet but everything's contents should be self-explanatory
Diffstat (limited to 'config/ksh/functions/update_completion_manpages')
-rw-r--r-- | config/ksh/functions/update_completion_manpages | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/ksh/functions/update_completion_manpages b/config/ksh/functions/update_completion_manpages new file mode 100644 index 0000000..dc4e77a --- /dev/null +++ b/config/ksh/functions/update_completion_manpages @@ -0,0 +1,8 @@ +#!/bin/ksh +update_completion_manpages() { + rm $XDG_CACHE_HOME/ksh/precompletions/manpages + for manpage in $(man -kw Nm~.); + do + basename $manpage|sed 's/\..*//'>>$XDG_CACHE_HOME/ksh/precompletions/manpages + done +} |