From cca4072c374836c549086485fc498764cb854281 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Mon, 30 Mar 2020 16:42:05 +0200 Subject: [PATCH 1/2] Fix handling of FPATH --- .zshrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.zshrc b/.zshrc index 0c0f63b..542968d 100644 --- a/.zshrc +++ b/.zshrc @@ -121,7 +121,16 @@ fi # don't want to recreate that mess manually. if [ -d ~/bin/func ] then + export FPATH FPATH=`preppath -v FPATH ~/bin/func` + # We also have to mark all functions explicitely as undefined, + # or zsh won't look for them. (Is this new? I thought that zsh would + # automatically search for unknown commands in FPATH, too. Maybe + # there's an option for that.) + for f in ~/bin/func/* + do + typeset -fu $(basename $f) + done fi # for new style completion: From 1fb9fc5a6c3d283e4fc782680b9b89b9c34a2855 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 16 Apr 2020 12:12:25 +0200 Subject: [PATCH 2/2] Set foreground color to black Just setting the background color may result in unreadable combinations. A black foreground should always work well with a light background. --- .znewterm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.znewterm b/.znewterm index fd65a85..0e45ddc 100644 --- a/.znewterm +++ b/.znewterm @@ -66,7 +66,7 @@ then then . ~/.zxtermcolors else - perl -e 'printf(qq{if whence xtermcontrol >/dev/null\nthen\nxtermcontrol --bg "#%02X%02X%02X"\nexport BG=light\nfi\n}, map { rand(128)+128 } qw(1 1 1))' > ~/.zxtermcolors + perl -e 'printf(qq{if whence xtermcontrol >/dev/null\nthen\nxtermcontrol --bg "#%02X%02X%02X" --fg "#000000"\nexport BG=light\nfi\n}, map { rand(128)+128 } qw(1 1 1))' > ~/.zxtermcolors fi fi