Add additional ZSH env file for secrets

This commit is contained in:
Rob Watson 2021-04-05 12:07:51 +02:00
parent 7685b52093
commit 84121f0012
3 changed files with 13 additions and 0 deletions

View File

@ -14,6 +14,11 @@ mkdir -p $HOME/.config/zsh/functions
ln -sfn $HOME/dev/dotfiles/zshenv $HOME/.zshenv
ln -sfn $HOME/dev/dotfiles/zshrc $HOME/.config/zsh/.zshrc
secretsfile="$HOME/.config/zsh/.zshsecrets"
if [ ! -f "$secretsfile" ]; then
cp $HOME/dev/dotfiles/zshsecrets.example "$secretsfile"
fi
# Tmux
ln -sfn $HOME/dev/dotfiles/tmux.conf $HOME/.tmux.conf

3
zshenv
View File

@ -35,4 +35,7 @@ export PATH=$HOME/bin:$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=$HOME/script:$PATH
# See `installdotfiles`:
source "$ZDOTDIR/.zshsecrets"
source "$HOME/.cargo/env"

5
zshsecrets.example Normal file
View File

@ -0,0 +1,5 @@
# secrets template
setopt ALL_EXPORT
GIT_NETFLUX_IO_TOKEN=