]> git.nbdom.net Git - nb.git/commitdiff
etc/vim/source/vars.vim
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 8 Dec 2022 17:09:49 +0000 (18:09 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 8 Dec 2022 17:09:49 +0000 (18:09 +0100)
etc/profile.d/functions
etc/vim/source/functions.vim
share/db/nb.db

index 1c2d178b755c2338ce94fa3a86bfd074fc6baf50..edc5e7f8ca6a728fd6b2e08b6de766f4e20ac063 100755 (executable)
@@ -602,7 +602,7 @@ shell_replace() {
 if (/^(\s*).{1,3}>SHELL_REPLACE (.*)$/ .. /^\s*.{1,3}<SHELL_REPLACE.*/){
  $ch = 1;
  $idt = $1;
- $cmd = ". /etc/profile && $2";
+ $cmd = "bash -lc \"$2\"";
  $i++;
  if ($i==1) { print; print map{s/^/$idt/;$_} `$cmd`; }
  elsif (/^\s*.{1,3}<SHELL_REPLACE/) { print; }
index 682db6fe3b974e39df402733afecf4a1e89467c5..9dce07fd626a70d239c9977c16af85afac359faa 100644 (file)
 """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
 let File = { 'type' : '' }
 let $USER_INITIALS = system('printf "%s" ${USER_INITIALS:-`whoami`}')
-" NB 05.12.17 for i in systemlist('set | grep ^USER_ | sed -e "s/=''\?/\t/" -e "s/''$//"' )
-" NB 05.12.17   let v = split(i,"\t")
-" NB 05.12.17   " echo v[0]
-" NB 05.12.17   execute "let ".v[o]." = \"".v[1]."\""
-" NB 05.12.17 endfor
 
 let $FileInit = ''
 func! FileInit(...)
index 874f925b41e6efe21757a091aeff89d3852ac884..7c5d4e02c83d767b5604429ab4b5401d83c67d5a 100644 (file)
Binary files a/share/db/nb.db and b/share/db/nb.db differ