From 75f560424357934f54ad89fc82d38064ce6d5edf Mon Sep 17 00:00:00 2001 From: k1574 Date: Wed, 4 Nov 2020 07:48:02 +0500 Subject: [PATCH] More fixes. --- .gitignore | 1 + dot/file/profile | 10 ++++++---- profile | 5 +++-- setenv/rc | 2 +- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 8d43f5d..250961a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ rcs/vim/.netrwhist xsrf/cache xsrf/certificates xsrf/cookies.txt +rcmain diff --git a/dot/file/profile b/dot/file/profile index 8170ab1..d557245 100755 --- a/dot/file/profile +++ b/dot/file/profile @@ -18,6 +18,7 @@ export_loop(){ # Standard variables. export_loop \ ENV '$HOME/.shrc' \ + DEV '$HOME/dev' \ LIB '$HOME/lib' \ IMG '$HOME/img' \ SND '$HOME/snd' \ @@ -25,6 +26,10 @@ export_loop \ VID '$HOME/vid' \ LOAD '$HOME/load' \ TXT '$HOME/txt' \ + SHR '$HOME/shr' \ + MNT '$HOME/mnt' \ + TMP '$HOME/tmp' \ + EXE '$HOME/exe' \ SHPROMPT '"% "' \ PS1 '"$SHPROMPT"' \ SUDO_PROMPT '"#"' \ @@ -33,15 +38,12 @@ export_loop \ GIT_EDITOR '$VISUAL' \ PAGER 'less' \ MANPAGER '$PAGER' \ + MAN '$SHR/man' \ PROFILE '$HOME/.profile' \ TMPL '$HOME/tmpl' \ APP '$HOME/app' \ ENVDIR '$HOME/env' \ SETENV '$LIB/setenv/sh' \ - TMP '$HOME/tmp' \ - SHR '$HOME/shr' \ - MNT '$HOME/mnt' \ - EXE '$EXE/bin' \ GOPATH '$APP/go' \ GOEXE '$GOPATH/bin'\ VPATH '$DEV/v'\ diff --git a/profile b/profile index c05504c..be89c5c 100644 --- a/profile +++ b/profile @@ -1,4 +1,4 @@ -# jien's rc configuration file. +# k1574's rc configuration file. prompt = '% ' # The simplest possible prompt. fn % { @@ -21,7 +21,7 @@ app = $home/app # Program installation directory. env = $home/env # Environment setting directory. dev = $home/dev # Development. #etc = $local/etc # Configuration files for any system. -exe = $home/bin # Executable binaries installation directory. +exe = $home/exe # Executable binaries installation directory. tmp = $home/tmp # Temporary. shr = $home/shr # Share files for programs. man = $shr/man # Directory for manual pages. Are supposed to be written in plain text. @@ -138,3 +138,4 @@ if(test -r $setenv){ . $setenv setenv rc } + diff --git a/setenv/rc b/setenv/rc index 99c1448..13bb9c9 100644 --- a/setenv/rc +++ b/setenv/rc @@ -4,7 +4,7 @@ fn setenv { rc=$1 - mkdir -p $dirs + mkdir -p $env # Variables. for(file in $env/$rc/var/* ){ test -r $file && `{basename $file} = `{cat $file}