CarlosEduardoL / cfsh

A Simple tool to manage aliases and environment variables across multiple shells.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CFSH - Config Shell

A Simple tool to manage aliases and environment variables across multiple shells.

Installation

git clone https://github.com/CarlosEduardoL/cfsh.git
cd cfsh
cargo install .

Usage

  • 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)

Configuration

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:

About

A Simple tool to manage aliases and environment variables across multiple shells.

License:MIT License


Languages

Language:Rust 100.0%