Code Monkey home page Code Monkey logo

shell-scripting-mrzyr0-b2-ynov's Introduction

shell-scripting-MrZyr0

.bash_profile

Beaucoup de personnalisation sur le PS1 mais surtout beaucoup d'ajout d'alias de commandes !

Si tu as déjà un bash_profile

  • Pour télécharger et appliquer (une sauvegarde du bash_profile actuelle est faite !) :
cd ~ && mv .bash_profile .bash_profile.bak && wget https://raw.githubusercontent.com/tentacode-classroom/shell-scripting-MrZyr0/master/.bash_profile -O .bash_profile && source .bash_profile
  • Pour supprimer le bash_profile :
cd ~ && rm .bash_profile && mv .bash_profile.bak .bash_profile && source .bash_profile

Si tu n'as pas bash_profile

  • Pour télécharger et appliquer (une sauvegarde du bash_profile actuelle est faite !) :
cd ~ wget https://raw.githubusercontent.com/tentacode-classroom/shell-scripting-MrZyr0/master/.bash_profile -O .bash_profile && source .bash_profile
  • Pour supprimer le bash_profile (il faudra relancer le terminal) :
cd ~ && rm .bash_profile && exit

Nouvelles commandes ! (alias)

  • where permet d'afficher le chemin absolu du répertoire courant
    capture d'écran
  • why permet d'avoir le code erreur de la commande précédante (avec une description si l'erreur est connu)
    capture d'écran
  • cx *un fichier à rendre executable* permet de rapidement rendre executable un fichier
    capture d'écran
  • cls et cc sont des raccourcis au clear

ls

  • lsc permet d'afficher une colorisation pour ls -AF
    capture d'écran
  • lsf permet d'afficher une colorisation pour ls -lAFh
    capture d'écran

Code couleur :

capture d'écran

ultimateCleaner.sh

Il suffit de prendre le fichier compatible à son OS (à cause d'une commande non compatible avec les mac) et de l'appeler en lui donnant le dossier à trier. Exemple ./ultimateCleanerForMac.sh bazar/

MacOS

Pour les Mac il faut que le script soit à côté du dossier à trier Le script va créer un dossier CLEAN dans le dossier à trier.

Debian

Pour Debian le script peut-être appelé de n'import où sur n'importe quel dossier. Le script va créer un dossier CLEAN à côté du dossier à trier.

Dans le dossier CLEAN il y a des sous-dossier par rapport au type des fichiers

Télécharger

Debian : wget https://github.com/tentacode-classroom/shell-scripting-MrZyr0/blob/master/ultimateCleanerForDebian.sh -O ultimateCleaner.sh MacOS : wget https://github.com/tentacode-classroom/shell-scripting-MrZyr0/blob/master/ultimateCleanerForMac.sh -O ultimateCleaner.sh

showSupportedColors.sh

C'est un petit script pour afficher les codes des couleurs supportées ainsi qu'une description pour savoir comment les utiliser

Télécharger

wget https://raw.githubusercontent.com/tentacode-classroom/shell-scripting-MrZyr0/master/showSupportedColors.sh -O showSupportedColors.sh

shell-scripting-mrzyr0-b2-ynov's People

Contributors

mrzyr0 avatar imgbotapp avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.