aboutsummaryrefslogtreecommitdiff
path: root/bashrc.d/prompt
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-10-13 14:10:55 +0200
committerKarel Kočí <cynerd@email.cz>2022-10-13 14:32:31 +0200
commit5d9f7dbec2660c6975d8150d01fab5bc9961b0ec (patch)
treedc9c6a2e25bb1ace3554bc29faac4bc9bc61c4dd /bashrc.d/prompt
parente80598cdfdde033efdc7b26c603b7646ea1c31ca (diff)
downloadshellrc-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 'bashrc.d/prompt')
0 files changed, 0 insertions, 0 deletions