<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Benjamin CARADEUC</title>
    <description>The latest articles on DEV Community by Benjamin CARADEUC (@benavern).</description>
    <link>https://dev.to/benavern</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F103643%2Fcb433e89-263c-44f5-8a15-b0c6a7446032.jpeg</url>
      <title>DEV Community: Benjamin CARADEUC</title>
      <link>https://dev.to/benavern</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/benavern"/>
    <language>en</language>
    <item>
      <title>Manage your aliases with z-alias</title>
      <dc:creator>Benjamin CARADEUC</dc:creator>
      <pubDate>Sun, 03 May 2020 21:19:43 +0000</pubDate>
      <link>https://dev.to/benavern/manage-your-aliases-with-z-alias-4oe</link>
      <guid>https://dev.to/benavern/manage-your-aliases-with-z-alias-4oe</guid>
      <description>&lt;p&gt;&lt;em&gt;French version &lt;a href="https://benjamin.caradeuc.info/2020/05/03/g%C3%A9rez-vos-alias-avec-z-alias/"&gt;HERE&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;Haven't you ever wanted to use a your CLI like a pro, but never been able to remember that specific command you need ?&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;That happens to me all the time.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Haven't you been bored of writing that very long command in your terminal when you could have made it only 1 character ?&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Everyday...&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Don't you want to replace an existing command with one that makes the output finally readable ?&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Hell, yeah!&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Aren't you tired of always forgetting how to create new aliases and make them permanent ?&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Guilty 😇️&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
   Here is your solution
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vWogaON8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-28d89282e0daa1e2496205e2f218a44c755b0dd6536bbadf5ed5a44a7ca54716.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/benavern"&gt;
        benavern
      &lt;/a&gt; / &lt;a href="https://github.com/benavern/z-alias"&gt;
        z-alias
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Edit your bash aliases the funny way
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
Z-ALIAS&lt;/h1&gt;
&lt;blockquote&gt;
&lt;p&gt;Edit your bash aliases the funny way&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;a href="https://www.npmjs.com/package/z-alias" rel="nofollow"&gt;&lt;img src="https://camo.githubusercontent.com/4cbf10e426b388576f5c317cc27ba469142ee5a7/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f7a2d616c6961733f7374796c653d666f722d7468652d6261646765" alt="npm"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
About&lt;/h2&gt;
&lt;p&gt;This project provides an easy solution for using &lt;strong&gt;aliases&lt;/strong&gt; from your command line. &lt;code&gt;z-alias&lt;/code&gt; solves the hassle of remembering how to create / edit / delete your aliases.&lt;/p&gt;
&lt;h2&gt;
Install&lt;/h2&gt;
&lt;div class="highlight highlight-source-shell"&gt;&lt;pre&gt;npm i -g z-alias&lt;/pre&gt;&lt;/div&gt;
&lt;h2&gt;
Usage&lt;/h2&gt;
&lt;div class="highlight highlight-source-shell"&gt;&lt;pre&gt;z-alias -h&lt;/pre&gt;&lt;/div&gt;
&lt;pre&gt;&lt;code&gt;  Usage
    $ z-alias [options] [arguments]
    Options
    --list, -l    List all aliases
    --open, -o    Open aliases file in your favorite editor
    --search, -s  Search in aliases
    --add, -a     Add an alias
    --edit, -e    Edit an alias
    --remove, -r  Remove an alias

    --help, -h    Display help
    --version, -v Print z-alias version

  Examples:
    $ z-alias -l
    $ z-alias -o
    $ z-alias -s [&amp;lt;searchTerm&amp;gt; &amp;lt;searchTerm2&amp;gt; ...]
    $ z-alias -a [&amp;lt;aliasName&amp;gt; "&amp;lt;aliasCommand&amp;gt;"]
    $ z-alias -e [&amp;lt;aliasName&amp;gt; "&amp;lt;aliasCommand&amp;gt;"]
    $ z-alias -r [&amp;lt;aliasName&amp;gt; &amp;lt;aliasName2&amp;gt; ...]

  Configuration:  
    * To change the path of the aliases file, paste and adapt this line
      at the end of your .bashrc file.

      export Z_ALIAS_FILE=~/.bash_aliases
  
    * To make&lt;/code&gt;&lt;/pre&gt;…&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/benavern/z-alias"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;(pronounced &lt;code&gt;ði ˈeɪliəs&lt;/code&gt;, like "The alias")&lt;/p&gt;

&lt;p&gt;It is a little CLI app that I made in 1 day. It helps me manage my aliases, edit them, delete them, and it also works with &lt;a href="https://www.zsh.org/"&gt;Zsh&lt;/a&gt;!&lt;/p&gt;




&lt;h2&gt;
  
  
  How to
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Install
&lt;/h3&gt;

&lt;p&gt;First, install it globally&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;npm i &lt;span class="nt"&gt;-g&lt;/span&gt; z-alias
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;h3&gt;
  
  
  Usage
&lt;/h3&gt;

&lt;p&gt;Then you can use it. You can find some help by typing&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight shell"&gt;&lt;code&gt;z-alias &lt;span class="nt"&gt;-h&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;





&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  Usage:
    $ z-alias [options] [arguments]

    Options:
    --list, -l    List all aliases
    --open, -o    Open aliases file in your favorite editor
    --search, -s  Search in aliases
    --add, -a     Add an alias
    --edit, -e    Edit an alias
    --remove, -r  Remove an alias

    --help, -h    Display help
    --version, -v Print z-alias version

  Examples:
    $ z-alias -l
    $ z-alias -o
    $ z-alias -s [&amp;lt;searchTerm&amp;gt; &amp;lt;searchTerm2&amp;gt; ...]
    $ z-alias -a [&amp;lt;aliasName&amp;gt; "&amp;lt;aliasCommand&amp;gt;"]
    $ z-alias -e [&amp;lt;aliasName&amp;gt; "&amp;lt;aliasCommand&amp;gt;"]
    $ z-alias -r [&amp;lt;aliasName&amp;gt; &amp;lt;aliasName2&amp;gt; ...]

  Configuration:  
    * To change the path of the aliases file, paste and adapt this line
      at the end of your .bashrc file.

      export Z_ALIAS_FILE=~/.bash_aliases

    * To make your aliases available in all new shells paste this line
      at the end of your .bashrc file (adapt if above line has been added).

      if [ -f ~/.bash_aliases ]; then source ~/.bash_aliases; fi
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;search&lt;/code&gt; option can take more than one search term.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;add&lt;/code&gt;, &lt;code&gt;edit&lt;/code&gt;, &lt;code&gt;remove&lt;/code&gt; options take optional parameters, you will be able to change your mind once you've hit ENTER.&lt;/p&gt;

&lt;h3&gt;
  
  
  Settings
&lt;/h3&gt;

&lt;p&gt;You can change the path to the file where the aliases are stored by exporting a &lt;code&gt;Z_ALIAS_FILE&lt;/code&gt; environment variable in your &lt;code&gt;.bashrc&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You can make it work with Zsh and other alternative shells by adding these lines to the end of your &lt;code&gt;.zshrc&lt;/code&gt; for example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if [ -f ~/.bash_aliases ]; then
    source ~/.bash_aliases
fi;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;






&lt;h2&gt;
  
  
  Contribute
&lt;/h2&gt;

&lt;p&gt;Feel free to contribute to the project. I'll be glad to read your issues and help, to review your merge-requests.&lt;/p&gt;

&lt;p&gt;If you find that tool usefull, you can buy me a beer too &lt;a href="https://paypal.me/benjamincaradeuc"&gt;here&lt;/a&gt;&lt;/p&gt;

</description>
      <category>bash</category>
      <category>alias</category>
      <category>cli</category>
      <category>node</category>
    </item>
  </channel>
</rss>
