Skip to content

Commit

Permalink
Merge pull request #26 from cgruver/main
Browse files Browse the repository at this point in the history
add support for workspace.rc to set custom env
  • Loading branch information
etsauer committed Aug 22, 2024
2 parents 94c4af4 + 7e1b6eb commit d6433bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/tools/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ packages:

execute:
- script: ohmyz.sh
- script: workspace-env.sh
4 changes: 4 additions & 0 deletions modules/tools/workspace-env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(echo "HISTFILE=${HOME}/.zsh_history"; echo "HISTSIZE=1000"; echo "SAVEHIST=1000") >> ${HOME}/.zshrc
(echo "if [ -f ${PROJECT_SOURCE}/workspace.rc ]"; echo "then"; echo " . ${PROJECT_SOURCE}/workspace.rc"; echo "fi") >> ${HOME}/.zshrc
echo "PS1='[\u@\h \W]\$ '" >> "${HOME}"/.bashrc
(echo "if [ -f ${PROJECT_SOURCE}/workspace.rc ]"; echo "then"; echo " . ${PROJECT_SOURCE}/workspace.rc"; echo "fi") >> ${HOME}/.bashrc

0 comments on commit d6433bb

Please sign in to comment.