diff options
author | Karel Kočí <cynerd@email.cz> | 2022-10-13 14:10:55 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-10-13 14:32:31 +0200 |
commit | 5d9f7dbec2660c6975d8150d01fab5bc9961b0ec (patch) | |
tree | dc9c6a2e25bb1ace3554bc29faac4bc9bc61c4dd /zshrc.d/prompt | |
parent | e80598cdfdde033efdc7b26c603b7646ea1c31ca (diff) | |
download | shellrc-5d9f7dbec2660c6975d8150d01fab5bc9961b0ec.tar.gz shellrc-5d9f7dbec2660c6975d8150d01fab5bc9961b0ec.tar.bz2 shellrc-5d9f7dbec2660c6975d8150d01fab5bc9961b0ec.zip |
Add ability to include this in profile
The modification to load bashrc and zshrc from profiles is required.
The following code show the required settings in NixOS to make this
work.
shellInit = dir: concatMapStrings (v: ''
for file in ${v}/etc/${dir}/*; do
[ -f "$file" ] || continue
. "$file"
done
'') config.environment.profiles;
environment.etc."bashrc.local".text = shellInit "bashrc.d";
environment.etc."zshrc.local".text = shellInit "zshrc.d";
Diffstat (limited to 'zshrc.d/prompt')
0 files changed, 0 insertions, 0 deletions