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

found a fix for "l" lazy scripit #302

Open oldmate123 opened 3 years ago

oldmate123 commented 3 years ago

im running kali 2020.4 you guys that cant run this are just doing it wrong i admit it got me too you cant simply press "l" it needs to be in root/superuser cd into lazy scripit and then ( ./l ) or download "thunar" from github this will allow you to move files from root to you home dir just copy and paste lscripit into where ever you want it in home then you can do cd into lscripit then sudo ./l this works really good you dont have to be in full root

or simple way is to type nano .bash_aliases alias lazy="cd ~/home/oldmate/Documents/Programmes/lscript/ && ls" alias l="sudo ./l" this is my case there might be another way to wright this in nano but this is how i know it in my case i do lazy then the l also if you make nano .bash_alias after you save it you need to open a new window and run source .bash_aliases then you can run your short commands you have made but only in that one window everytime you want to use your short commands you need to wright source .bash_aliases first then that will become your short command window hope this helps with that short command i have for lazy "sudo./l i still need my password otherwise the l command wont run if you don't want to do all this its much easy to just do ( su then cd into lscripit then (./l )

qualk commented 3 years ago

or edit zsh_rc and remove the "l" alias at the bottom, then make a zsh_alias file and put alias=./path/to/lscript/l in it.

kevtheskin commented 3 years ago

im running kali 2020.4 you guys that cant run this are just doing it wrong i admit it got me too you cant simply press "l" it needs to be in root/superuser cd into lazy scripit and then ( ./l ) or download "thunar" from github this will allow you to move files from root to you home dir just copy and paste lscripit into where ever you want it in home then you can do cd into lscripit then sudo ./l this works really good you dont have to be in full root

or simple way is to type nano .bash_aliases alias lazy="cd ~/home/oldmate/Documents/Programmes/lscript/ && ls" alias l="sudo ./l" this is my case there might be another way to wright this in nano but this is how i know it in my case i do lazy then the l also if you make nano .bash_alias after you save it you need to open a new window and run source .bash_aliases then you can run your short commands you have made but only in that one window everytime you want to use your short commands you need to wright source .bash_aliases first then that will become your short command window hope this helps with that short command i have for lazy "sudo./l i still need my password otherwise the l command wont run if you don't want to do all this its much easy to just do ( su then cd into lscripit then (./l )

Hello there, I cant get this to work in my fresh install of kali. sudo ./l works but if you move through the menu's it takes you back to prompt. Why did have to restrict things. I cant even boot into root. Thanks in advance for any info. Cheers Kev

cammiehoffman commented 2 years ago

how did you edit it? im a newbie sorry

qkum commented 2 years ago

in normal language.

become sudo: sudo su + enter

cd into the lsscript folder. cd /root/home/lscript/ + enter

Type: ./ l + enter

and lazy script starts