dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit acd0f5e21381c2eca3f5c5e593e6ef683e0830fa
parent 995337bd25a770833458c46de6d0bb2881348827
Author: hhvn <hayden@haydenvh.com>
Date:   Sat,  6 Feb 2021 12:25:28 +0000

.profile .config/ksh/kshrc: move PATH declaration to config (kshrcremote works better like this)

Diffstat:
M.config/ksh/kshrc | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.config/ksh/kshrc b/.config/ksh/kshrc @@ -18,7 +18,10 @@ settitle(){ printf "\033]0;%s\007" "$1" } -ksh_prompt(){ +__ksh_prompt(){ + echo "$0" | grep -v ksh >/dev/null && { + printf "($(basename $0)) " + } errorcode=$1 tput setaf 10 [ $errorcode -eq 0 ] && tput setaf 15 || tput setaf 10 @@ -50,13 +53,14 @@ ksh_prompt(){ tput sgr0 } -PS1="\$(ksh_prompt \$?)" +PS1="\$(__ksh_prompt \$?)" PS2="$(tput setaf 7):; $(tput sgr0)" PS3="$(tput setaf 7):; $(tput sgr0)$(tput el) " PS4="$(tput setaf 7):; $(tput sgr0)" export PS1 PS2 PS3 PS4 +export PATH="$PATH:$HOME/.scripts/bin" for f in $HOME/.config/ksh/* do [ "$(basename "$f")" != "kshrc" ] && . $f