Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 months ago
JSON representation
A bunch of custom scripts for my WSL setup through various computers.
- Host: GitHub
- URL: https://github.com/chkatsaros/wsl-scripts
- Owner: chkatsaros
- Created: 2022-02-23T20:08:50.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-20T10:43:00.000Z (over 2 years ago)
- Last Synced: 2024-07-30T21:04:28.368Z (5 months ago)
- Topics: bash, bash-script, bash-scripting, bashrc, configuration, scripts, shell-script, wsl, wsl2
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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