A collection of useful Bash scripts
MIT License
A collection of useful Bash scripts.
This repository provides numerous helpful bash scripts and functions.
The README contains a brief description of each script and function. For more
detailed usage information run a script or function with the -h
option.
Place this repository in your $PATH
.
Source the load-functions.sh
file in your shell profile. This will load
the custom bash functions into your shell.
Prints the help text in the top comment of a script.
Prints the ssl certificate for the provided URL.
The xcopy and xpaste scripts emulate the ctrl+{c,v} behavior in the shell.
A script which clears any swap files nvim has made.
A script which opens a terminal in a floating window using bspwm.
A tool which modifies your /etc/hosts
file to give you local domains for
quick development.
Fixes terminal after outputting binary garbage.
Shows todo notes in source files.
Kills current terminal.
Make shortcut.
Sets the desktop background with feh.
Creates a file with execution privileges.
Grep with color argument.
StartX shortcut.
URL encoding utility.
Runs a command when files change.
Opens a GitHub pull request.
Local HTTP server using Python 3's http.server
module.
Select an area of the screen and take a screen shot.
Play bloop noise
Start Jupyter Lab without a password.
Show file mode.
Rename X window.
Read text out letter by letter.
Edit file with $EDITOR
.
Give file execute permissions and edit with $EDITOR
.
Convert markdown to PDF.
View socklog system logs.
Manage displays with xrandr.
Open GitHub repository from terminal.
Remove all branches except the one which is currently checked out.
Use the trash
command to remove emacs auto save files.
These files can be restored with the trash-restore
command.
Prints the UTF-8 code point for glyph from stdin.
Move current working directory.
Changes extension of files.
Wait until input matches pattern and exit.
Records the screen as a GIF.
Page standard error.
Kill an X window.
Converts tabs in a file to spaces.
Downloads a video stream specified by a m3u8 file into an mp4 file.
Create and cd into directory.
Git clone and cd into directory.