A Simple tool to manage aliases and environment variables across multiple shells.
git clone https://github.com/CarlosEduardoL/cfsh.git
cd cfsh
cargo install .
- On bash, add the following line to your
.bashrc
file:
eval "$(cfsh bash)"
- On zsh, add the following line to your
.zshrc
file:
eval "$(cfsh zsh)"
- On fish, add the following line to your
config.fish
file:
cfsh fish | source
- On powershell, add the following line to your
Microsoft.PowerShell_profile.ps1
file:
Invoke-Expression (& cfsh powershell | Out-String)
You can create your config file using ron, yaml or json. The default config file is on
- Linux:
$XDG_CONFIG_HOME/cfsh/config.ron
or$HOME/.config/cfsh/config.ron
- MacOS:
$HOME/Library/Application Support/cfsh/config.ron
- Windows:
{FOLDERID_RoamingAppData}\cfsh\config.ron
Warning
Yaml does not suport nested enums, so you can't use the not
condition on yaml configs.
Example config: