Giter Club home page Giter Club logo

bash-ai's Introduction

Bash-AI

This project takes textual input (english or other languages), translates them into runnable bash commands and executes them right away. It aims at making googling and stackoverflow-ing commands as well as reading exhaustive help messages or man pages obsolete and speed up whatever you are doing. You don't know how to do something in a terminal? Just express in natural language what you want to accomplish and let bash-ai do the rest.

ubuntu@hostname:~$ ai print the alphabet in order
echo {a..z}
a b c d e f g h i j k l m n o p q r s t u v w x y z
ubuntu@hostname:~$ ai i want a list of all installed packages that have the string "ai" in their name
dpkg --get-selections | grep -i "ai"
bash-ai                                         install
containerd                                      deinstall
libaio1:amd64                                   install
libblockdev-mdraid3:amd64                       install
libcairo-gobject2:amd64                         install
libcairo2:amd64                                 install
libdecor-0-plugin-1-cairo:amd64                 install
libpangocairo-1.0-0:amd64                       install
libthai-data                                    install
libthai0:amd64                                  install
openai                                          install
philbot-containerized                           deinstall
thefuck-ai                                      install
whiptail                                        install
ubuntu@hostname:~$ echo hello world | ai count the characters in the input and print them
wc -m
12
ubuntu@hostname:~$ ai print all files in the current directory, disregarding on whether they are hidden | ai filter out all lines in the incoming data that do not start with . or that end with /
ls -a
grep '^\.' | grep -v '/$'
.
..
.bash_history
.bash_logout
.bashrc
.cache
.config
.gitconfig
.gitignore
.lesshst
.local
.npm
.profile
.sh_history
.ssh
.sudo_as_admin_successful
.wget-hsts
.zcompdump
.zsh_history
.zshrc
ubuntu@hostname:~$ ai list all guilds that a discord bot is in by name, by using the discord API and filterning down to the guilds names. assume the discord api token is in a properties file at location /var/lib/philbot/environment.properties.backend, the file containing key value pairs separated by =, the key is DISCORD_API_TOKEN
cat /var/lib/philbot/environment.properties.backend | grep DISCORD_API_TOKEN | cut -d'=' -f2 | xargs -I {} curl -H "Authorization: Bot {}" https://discord.com/api/v8/users/@me/guilds | jq -r '.[].name'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4644    0  4644    0     0  15624      0 --:--:-- --:--:-- --:--:-- 15583
discord.sobieski.codes
womma
Cuntry Club
Philbot's Home
...

Install via wget -O - https://raw.githubusercontent.com/plengauer/bash-ai/main/INSTALL.sh | sh

bash-ai's People

Contributors

plengauer avatar renovate[bot] avatar renovate-bot avatar

Watchers

 avatar

bash-ai's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/publish.yml
  • actions/checkout v4
  • actions/create-release v1
  • actions/upload-release-asset v1
.github/workflows/renovate.yml
  • renovatebot/github-action v40.1.11

  • Check this box to trigger a request for Renovate to run again on this repository

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/publish.yml
  • actions/checkout v4
  • actions/create-release v1
  • actions/upload-release-asset v1
.github/workflows/renovate.yml
  • renovatebot/github-action v40.1.10

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/publish.yml
  • actions/checkout v4
  • actions/create-release v1
  • actions/upload-release-asset v1
.github/workflows/renovate.yml
  • renovatebot/github-action v40.1.10

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: .github/renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting String near 0,
{

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: .github/renovate.json
Error type: Invalid JSON (parsing failed)
Message: Syntax error: expecting String near true,,
"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.