[projects/setup] export SAVEHIST for zsh (this requires cleaning anyway), do not export PS2 - shell specific stuff sh

gotar gotar at pld-linux.org
Mon Dec 12 15:43:10 CET 2016


commit 5a580e7455934bd95fea954f8b8db0312ba04ec1
Author: Tomasz Pala <gotar at pld-linux.org>
Date:   Mon Dec 12 15:41:23 2016 +0100

    export SAVEHIST for zsh (this requires cleaning anyway), do not
    export PS2 - shell specific stuff should go to *rc (interactive)
    
    bb0d325b5b9ec09d386e30bf0d13442c091a5666

 etc/profile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/etc/profile b/etc/profile
index 718ff21..ef64015 100644
--- a/etc/profile
+++ b/etc/profile
@@ -101,15 +101,15 @@ case "$SH" in
 	esac
 	;;
   zsh)
-	# other HISTFILE, zsh uses diffrent fmt
+	# other HISTFILE, zsh uses a different format - should be moved to zshrc and not exported
 	HISTFILE=~/.historyz
-	# w/o this hist file won't get saved!
-	SAVEHIST=$HISTSIZE
+	# w/o this hist file won't get saved! - env.d/HISTFILESIZE belongs to bash only
+	export SAVEHIST=$HISTSIZE
 	;;
 esac
 
 unset SH
-export PATH USER LOGNAME HOSTNAME HISTFILE HISTSIZE PS2
+export PATH USER LOGNAME HOSTNAME HISTFILE HISTSIZE
 
 # Put all of the variables as files in /etc/env.d/
 # example:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/setup.git/commitdiff/5a580e7455934bd95fea954f8b8db0312ba04ec1



More information about the pld-cvs-commit mailing list