Framework for bash
You will use .bash_profile file (section 'how to use') to load this project and the two main sections:
- Core: Files for managing shell profile
- Modules: Section for tools
- Scripts folder:
- Random password generator (handled by powershell, will be replaced by another language soon)
- Shells folder:
- bash:
- aliases
- functions
- jobs
- profiles
- .bash_profile
- .bashrc
- pwsh: Containing pwsh environment (will be deprecated soon)
- bash:
- Basic packages
git file curl
Mainly tested on bash 5.2+.
- Backup your $HOME/.bash_profile if exists
- Clone where you want, copy .bash_profile to your home and set $project_path. Then restart the current shell session.
git clone git@github.com:e-lemongrab/myshell.git
cp -rfv myshell/core/shells/bash/.bash_profile $HOME
sed -i 's|$HOME/Documents/myshell|'"$(pwd)"'/myshell|g' ~/.bash_profile
exec -l $SHELL
- Run "checks" to list compatibility and "myshell" to get the available commands to use
Once done the bash configuration, if you have "pwsh" installed, automatically will set the $PROFILE for powershell - $HOME/.config/powershell/Microsoft.PowerShell_profile.ps1
If you want to use this profile from Windows:
- Install WSL2 distro
- Edit $PROFILE (ex: code $PROFILE, from a powershell terminal) with content from content core/shells/pwsh/Microsoft.PowerShell_profile.ps1
Remember to set the value for section "VARIABLE DECLARATION":
- $global:distro=xxx
- $global:project_path=xxx (relative path from $HOME)