Hi David,
if those files do not exist on your system and you do not have the RACF rights to create those, you always have the option to create corresponding files in your own HOME directory. The files in /etc are there to provide some meaningful system wide options but can be customized by using the corresponding dot files in your $HOME. The corresponding dot files are:
.zshenv
.zprofile
.zshrc
.zlogin
.zlogout
They are usually located at the root for your home directory, for example $HOME/.zshrc. For a beginning configuration, you should focus on .zshrc and .zprofile. Those two are similar to .profile and .bashrc. The way zsh searches for startup and shutdown files is documented at: https://www.ibm.com/docs/en/zos/3.1.0?topic=shell-files. I agree the documentation IBM provides is underwhelming. However there are lot's of useful articles about zsh config files on the internet. But be warned a lot of the zsh modules mentioned in those articles are not available in the z/OS port! Documentation for available z/OS zsh modules: https://www.ibm.com/docs/en/zos/3.1.0?topic=shell-zsh-modules
Start with .zshrc, you can create it with touch $HOME/.zshrc, then edit it using vi or you can use the TSO/E ISHELL to create and edit the file. I prefer to edit directly inside z/Unix, using vim. As a matter of fact I think the ISHELL should be banned from earth ;-). Anyway here is a very simple example of a .zshrc file that I have been using during my testing:
#-------------------------------------------------------------
# Alias Definitions follow here
#-------------------------------------------------------------
alias lt="ls -laT"
alias le="ls -laE"
alias c="clear"
alias v="vim"
alias env="env | sort"
#-------------------------------------------------------------
# Add our own function path to zsh's fpath
#-------------------------------------------------------------
fpath=( ~/.zfunc "${fpath[@]}" )
#-------------------------------------------------------------
# Function to get the git branch
#-------------------------------------------------------------
parse_git_branch() {
git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p'
}
#-------------------------------------------------------------$03
# Create color prompt with git status included $03
#-------------------------------------------------------------$03
autoload -U colors && colors
export ASCII_TERMINFO=$ROAD4Z_HOME/share/terminfo
PROMPT_COMMAND='echo -en "\033]0;z/Unix ${HOST}\a"'
COLOR_DEF='%f'
NEWLINE=$'\n'
setopt PROMPT_SUBST
export PROMPT='%{$fg[blue]%}%n@%M %{$fg[green]%}%d %{$fg[yellow]%}$(parse_git_branch)$COLOR_DEF$NEWLINE%% '
For the .zshrc file to work for you, you have to create a new directory in your $HOME
mkdir -p $HOME/.zfunc
Because the zsh colors function, available on any other zsh implementation I know of, you have to get this file from here
regards
Ronny
------------------------------
Ronny Funk
------------------------------