Skip to content

Repository files navigation

If you don't know what an alias is, I recommend that you use them. What is an alias?


Malias

Build StatusOpen issuesLast versionLicense

Malias is a shell script that lets you add, edit, delete and more to manage your aliases on linux/mac. It's compatible with bash and zshrc (or either use your own file).

Example to show your current aliases: malias -l

Installation

git clone https://github.com/victormln/alias.git ~/.alias
~/.alias/install.sh
source~/.bashrc # or source ~/.zshrc

The install script adds the following line to your .bashrc or .zshrc:

alias malias="~/.alias/alias.sh"

Uninstalling

To uninstall you can use in your console: uninstall_maliasNOTE: If you want to totally uninstall the script, delete the folder: ~/.alias

The uninstall script removes the following line from your .bashrc or .zshrc:

alias malias="~/.alias/alias.sh"

Configuration

You can configure a lot of parameters. For example, don't search for automatic updates, change the language or change the directory of the file that contains your aliases. To change all these parameters you can open the file conf/user.conf.

Usage

For example, if you want to add an alias, you can execute: malias -a your_alias

All available arguments:

ArgumentAbbreviationMeaningUse
--help-hShow available commandsmalias --help
list or view or show-lShow the aliases you havemalias -l
add-aAdd an alias (or more than one)malias -a test1
edit-eEdit an alias (or more than one)malias -e test1
delete-dDelete an alias (or more than one)malias -d test1 test2
copy-cpCopy an alias (or more than one). You can copy an alias that already exists.malias -cp alias_origen alias_nuevo alias_nuevo2
--confOpen the file with all the configurations. By default the file is opened with "vi", you can change it in the opened file.malias --conf
--clearRemove from the file that contains the aliases, those that are empty and empty linesmalias --clear
--importImport alises from specific file.malias --import directory/fileName.txt
installInstall an aliases from the directory "alias".malias install name_of_file
--restoreRestore a backup file with all your aliases before executing any action.malias --restore
--updateSearch for available updates.malias --update
-vShows the version of the script.malias -v

Updating

You can update this script with the option --update:

malias --update

If this options does not work:

cd~/.alias
git pull origin master

Contributing

If you have some improvements to this script, feel free to make a pull request.

About

Manage all your shell alias easily

Topics

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages