Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chkatsaros/wsl-scripts

A bunch of custom scripts for my WSL setup through various computers.
https://github.com/chkatsaros/wsl-scripts

bash bash-script bash-scripting bashrc configuration scripts shell-script wsl wsl2

Last synced: about 2 months ago
JSON representation

A bunch of custom scripts for my WSL setup through various computers.

Awesome Lists containing this project

README

        

# wsl-scripts
A bunch of custom scripts for my WSL setup through various computers.

## cloc-git

### Description

**cloc-git** is a tool to count the lines and the different types of files from a given git repository. In order to use it, please make sure you have cloc already installed in your system. You can install it by: sudo apt install cloc -y

### How to execute

- cloc-git {https-from-git-repo}

## shut

### Description

**shut** is a script that utilizes the shutdown.exe windows command in order to shutdown the computer after given minutes. If the minutes given are less than zero the shutdown process is canceled. If no argument is given an error message appears.

### How to execute

- Shutdown the computer in 10 minutes: shut 10
- Cancel previously set shutdown: shut -1

## reboot

### Description

**reboot** is a script that utilizes the shutdown.exe windows command in order to reboot the computer after given minutes. If the minutes given are less than zero the reboot process is canceled. If no argument is given the computer starts rebooting.

### How to execute

- Reboot the computer: reboot
- Reboot the computer in 10 minutes: reboot 10
- Cancel previously set reboot: reboot -1

## delete-branches

### Description

**delete-branches** is a script that deletes all *local* branches except of "master" branch. Be careful when using **delete-branches** as it uses force delete to delete branches.

### How to execute

- Inside the repository directory: delete-branches

## git-merger

### Description

**git-merger** is a script that merges all *local* branches - except of "master" itself - with the "master" branch. The main case of usage is when the user executes a git pull while in the "master" branch and wants to also update the local branches accordingly.

### How to execute

- Inside the repository directory: git-merger