Confinicky provides you with a CLI for performing basic CRUD operations on your export and alias commands.
View on Githubgem install confinicky
Confinicky works with Ruby 2.0+
cfy setup
Setting up confinicky is easy. Specify a file to store your aliases and another for environment variables. These can be stored in the same file or even your .bashrc if you'd like.
For organizational purposes I recommend using two dedicated files and sourcing them in your .bashrc file.
cfy set env FOO=bar
cfy set alias home='cd ~'
Setting a value will create a new entry or update an existing definition with the value you assign.
cfy rm env FOO
cfy rm alias home
cfy list
cfy ls env
cfy ls alias
Specify a type to only show vars or aliases.
cfy inspect PATH
Have a long path variable? Use the inspect method to print a table of every value it contains.
cfy clean env
Confinicky will reduce duplicate statements so that it can properly perform CRUD operations on your document.