Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Functions in system init scripts



On Oct 19, 11:10am, Daniel Qarras wrote:
}
} > One way to fix this is to make your terminal emulator
} > execute the shells as login shells (gnome-terminal can do that IIRC).
} 
} True, thanks for the tip (although this doesn't sound optimal as xterm
} would still be unfixed).

You can also put something like this in your ~/.zshenv file:

# Force most interactive shells to be login shells
[[ -t 0 && -o interactive && -o shinstdin ]] && setopt login

You can add a test for various values of $TERM, etc., as needed.



Messages sorted by: Reverse Date, Date, Thread, Author