Skip to content

An assistant in your daily and repetitive tasks with the linux shell. Created by and for developers

License

Notifications You must be signed in to change notification settings

jrichardsz/linux-commandline-assistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linux Commandline Assistant

An assistant in your daily and repetitive tasks with the linux shell. Created by and for developers!!

Image from: https://analyticstraining.com/difference-between-artificial-intelligence-machine-learning-and-deep-learning/

Steps

  • Clone this repository
  • Choose a name for your assistant: jarvis, friday, alfred, etc. For this guide, we will use: jarvis
  • Create a symlink, executing the following line inside the cloned folder:
ln -s $(pwd)/assistant.sh /usr/bin/jarvis
  • set execute permissions
chmod +x /usr/bin/jarvis

Invoke Assistant

If your assistant name is jarvis, you could invoke it, just typing its name in the shell:

jarvis

Response will be

Hi sr, I am jarvis
What Can I do for you? Tell me a command...

Example

jarvis ip

Response will be

Hi sr, I am jarvis
Result of ip command is:

192.168.1.150

New Commands

Just create new file with .sh extension in commands folder. File name will be the command name.

Private Commands

Just create new file with .sh extension in private_commands folder. File name will be the command name. These private commands are scanned before community commands, so is an option to override some community command with a customization just for you.

Also private commands are ignore by default.

Variables

If you have complex commands which requires variables, just create a file called variables. Example:

JAVA_FOR_ECLIPSE=/../apps/jdk123
MAVEN_HOME=/../apps/apache-maven-3.6.0
POSTMAN_HOME=/../apps/Postman/
GIT_AUTHOR="JRichardsz<jrichardsz.java@gmail.com>"
ECLILPSE_HOME=/../apps/eclipse

All these variables will be present in any of your command scripts, so you could use it :D

Contribute

If you have some awesome command that could help to another developers in the world, just perform a Pull Request and I will review it!

Contributors

Thanks goes to these wonderful people :


Richard Leon

License

Linux Command Line Assistant is open-sourced software licensed under the MIT license. Frameworks and libraries has it own licensed

About

An assistant in your daily and repetitive tasks with the linux shell. Created by and for developers

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages