arismelachroinos / lscript

The LAZY script will make your life easier, and of course faster.
GNU General Public License v3.0
4.06k stars 1.08k forks source link

How to set alias (l not working in terminal) #331

Open qualk opened 1 year ago

qualk commented 1 year ago

Here is how to set the alias in terminal: If using zsh (default on Kali), make a file called zsh_alias, or if using Bash, use bash_alias.

Inside of that file, paste alias l='sudo /root/lscript/l'. There are many things you can configure here: the l located after alias can be replaced by whatever you want the command to be. For example, I recommend using 'lscript', (which would be alias lscript='sudo /root/lscript/l'. If the project is located in another directory, replace the directory with that.

docin02 commented 1 year ago

Not to sound like a NOOB (i strive to reach that level of knowledge someday) but could you pleade elaborate on how i implement this file? Where do i place it and how do i make it usable?