Skip to content

Nicolas-Delahaie/shell-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Usefull and automated personal shell commands

Installation

To make scripts accessible from anywhere in your terminal, follow these steps:

  1. Clone the repository to your local machine

  2. Move into the cloned directory

  3. Add the scripts to the PATH variable:

    • Linux / MacOS:
    echo "export PATH=\"\$PATH:$(pwd)/bin\"" >> ~/.bashrc
    source ~/.bashrc
    • Windows (PowerShell):
    $currentDir = Get-Location
    [Environment]::SetEnvironmentVariable("Path", "$env:Path;$currentDir\bin", "User")
     $env:Path = [System.Environment]::GetEnvironmentVariable("Path","User") + ";" + [System.Environment]::GetEnvironmentVariable("Path","Machine")
  4. Execute script

    • Linux / MacOS:
    ./<script>
    • Windows (wsl via PowerShell):
    wsl <script>

About

Usefull and automated personal shell commands.

Resources

Stars

Watchers

Forks

Contributors

Languages