Coder Social home page Coder Social logo

ti-insulto's Introduction

Ti insulto

Codacy Badge

Insulta l'utente quando scrive comandi sbagliati.

Cambia gli insulti come preferisci :)

fastbyte01@fastbyte:~ $ sl

  Lascia stare non fa per te

-bash: sl: command not found
fastbyte01@fastbyte:~ $ gti status

  Non hai niente di meglio da fare?!

-bash: gti: command not found
fastbyte01@fastbyte:~ $ sp aux

  A volte mi fai davvero paura

-bash: sp: command not found

Compatibilità

  • Bash v4 e successivo
  • Zsh

Installazione

# Metodo 1 - Sai quello che stai facendo
git clone https://github.com/Fastbyte01/ti-insulto.git ti-insulto
sudo cp ti-insulto/src/bash.command-not-found /etc/

Per utilizzare lo script al login bisogna aggiungere il seguente codice nel file /etc/bash.bashrc o in una posizione differente dove puoi configurare automaticamente la tua shell durante il login (zsh ha dei file di configurazione diversi):

if [ -f /etc/bash.command-not-found ]; then
    . /etc/bash.command-not-found
fi

Esegui il logout e poi di nuovo il login. A questo punto, quando digiti dei comandi sbagliati l'effetto sarà visibile.

Configurazione

Ti insulto può essere personalizzato inserendo delle nuove frasi nelle variabili d'ambientec CMD_NOT_FOUND_MSGS o CMD_NOT_FOUND_MSGS_APPEND. I valori devono essere degli array. CMD_NOT_FOUND_MSGS rimpiazza i messaggi di default, mentre CMD_NOT_FOUND_MSGS_APPEND aggiunge altri messaggi a quelli esistenti.

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.