Shorted generic- to gen-

This commit is contained in:
2025-07-09 03:55:24 +02:00
parent 8c411a21c7
commit 94bb060a5b
123 changed files with 96 additions and 96 deletions

27
roles/gen-shell/README.md Normal file
View File

@@ -0,0 +1,27 @@
# Shell 🐚
## Description
This Ansible role ensures that [.profile](https://en.wikipedia.org/wiki/Bourne_shell#Startup_scripts) is sourced in both [Bash](https://www.gnu.org/software/bash/) and [Zsh](https://www.zsh.org/) environments. It enables consistent environment variable loading across different login shells by linking shell-specific profile files (`.bash_profile`, `.zprofile`) to a centralized `.profile`.
## Overview
By standardizing `.profile` as the central source for environment configuration, this role ensures consistent shell behavior. It does **not** manage the contents of `.profile` itself — only guarantees that it is sourced by supported shells.
## Purpose
The purpose of this role is to unify shell environment setup across Bash and Zsh. It minimizes duplication and confusion by encouraging the use of `.profile` for shared configuration such as environment variables and agent settings.
## Features
- **Centralized Configuration:** Promotes `.profile` as the single source for shared shell settings.
- **Cross-Shell Compatibility:** Ensures both Bash and Zsh source `.profile` properly.
- **Non-Invasive:** Does not alter the content of `.profile`.
## Credits 📝
Developed and maintained by **Kevin Veen-Birkenbach**.
Learn more at [www.veen.world](https://www.veen.world)
Part of the [CyMaIS Project](https://github.com/kevinveenbirkenbach/cymais)
License: [CyMaIS NonCommercial License (CNCL)](https://s.veen.world/cncl)

View File

@@ -0,0 +1,32 @@
---
galaxy_info:
author: "Kevin Veen-Birkenbach"
description: "Ensures that .profile is sourced in all shells."
license: "CyMaIS NonCommercial License (CNCL)"
license_url: "https://s.veen.world/cncl"
company: |
Kevin Veen-Birkenbach
Consulting & Coaching Solutions
https://www.veen.world
min_ansible_version: "2.9"
platforms:
- name: Archlinux
versions:
- rolling
- name: Debian
versions:
- all
- name: Ubuntu
versions:
- all
galaxy_tags:
- shell
- bash
- zsh
- environment
- profile
- dotfiles
repository: https://s.veen.world/cymais
issue_tracker_url: https://s.veen.world/cymaisissues
documentation: https://s.veen.world/cymais
dependencies: []

View File

@@ -0,0 +1,20 @@
---
- name: Ensure ~/.bash_profile sources ~/.profile
lineinfile:
path: "$HOME/.bash_profile"
line: '[ -f ~/.profile ] && . ~/.profile'
insertafter: EOF
state: present
create: yes
mode: "0644"
become: false
- name: Ensure ~/.zprofile sources ~/.profile
lineinfile:
path: "$HOME/.zprofile"
line: '[ -f ~/.profile ] && . ~/.profile'
insertafter: EOF
state: present
create: yes
mode: "0644"
become: false