]> git.pld-linux.org Git - projects/setup.git/commitdiff
export SAVEHIST for zsh (this requires cleaning anyway), do not
authorTomasz Pala <gotar@pld-linux.org>
Mon, 12 Dec 2016 14:41:23 +0000 (15:41 +0100)
committerTomasz Pala <gotar@pld-linux.org>
Mon, 12 Dec 2016 14:41:23 +0000 (15:41 +0100)
export PS2 - shell specific stuff should go to *rc (interactive)

bb0d325b5b9ec09d386e30bf0d13442c091a5666

etc/profile

index 718ff2197681f9c669e281148f4b56973123ee0e..ef64015f71be4c55264d6cac4f5a015a411d3b3e 100644 (file)
@@ -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:
This page took 0.155252 seconds and 4 git commands to generate.