This website contains a modest collection of terminal scripts I've written. Built with HTML + plain JS and CSS.
These scripts aim to automate tasks and set shortcuts whether for productivity or fun. They are like executables that you can run from the terminal by typing the script name.
To make things easier, here, the terms script, executable, and binary mean the same thing.
.,,uod8B8bou,,.
..,uod8BBBBBBBBBBBBBBBBRPFT?l!i:.
,=m8BBBBBBBBBBBBBBBRPFT?!||||||||||||||
!...:!TVBBBRPFT||||||||||!!^^""' ||||
!.......:!?|||||!!^^""' ||||
!.........|||| ||||
!.........|||| ## ||||
!.........|||| ||||
!.........|||| ||||
!.........|||| ||||
!.........|||| ||||
`.........|||| ,||||
.;.......|||| _.-!!|||||
.,uodWBBBBb.....|||| _.-!!|||||||||!:'
!YBBBBBBBBBBBBBBb..!|||:..-!!|||||||!iof68BBBBBb....
!..YBBBBBBBBBBBBBBb!!||||||||!iof68BBBBBBRPFT?!:: `.
!....YBBBBBBBBBBBBBBbaaitf68BBBBBBRPFT?!::::::::: `.
!......YBBBBBBBBBBBBBBBBBBBRPFT?!::::::;:!^"`;::: `.
!........YBBBBBBBBBBRPFT?!::::::::::^''...::::::; iBBbo.
`..........YBRPFT?!::::::::::::::::::::::::;iof68bo. WBBBBbo.
`..........:::::::::::::::::::::::;iof688888888888b. `YBBBP^'
`........::::::::::::::::;iof688888888888888888888b. `
`......:::::::::;iof688888888888888888888888888888b.
`....:::;iof688888888888888888888888888888888899fT!
`..::!8888888888888888888888888888888899fT|!^"'
`' !!988888888888888888888888899fT|!^"'
`!!8888888888888888899fT|!^"'
`!988888888899fT|!^"'
`!9899fT|!^"'
`!^"'
It's a file containing a series of terminal commands that your shell can execute.
It's a software that interprets cli commands. You can use multiple shells and each has its own characteristics. The most common shell is bash.
Stands for bourne again shell, a software to interpret cli commands. It's also an extended version of the unix bourne shell (sh).
The pros of using bash are:
(+) Popularity
(+) Default shell in many linux distros
It's commonly used in script files. It starts with #! and tells the system which interpreter to use.
I recommend using
#!/usr/bin/env <INTERPRETER>because it's portable. The env command exists on Unix-like systems. It's a utility program that manages environment variables, finds and execute programs using $PATH, so it depends on your $PATH.Alternatively, use the fixed path
#!/bin/bashwhen you need the system bash and want to avoid $PATH manipulation. This works on both MacOS and Linux.Although, I see the shebang line more as an indication for the user who will run the script.
I recommend that you use
/usr/local/bin/because it's the most common location for executables that aren't managed by your package manager. Additionally, it's in the default $PATH.Alternatively, for user-specific scripts use
~/.local/bin(you may need to add this to your $PATH).You can also store it somewhere else and symlink to
/usr/local/bin/. In the end, it's totally up to your preferences.
You can do that, but I don't recommend it. Each ruby version managed by rbenv has its own
<PATH_TO_SHIM_DIR>/binfolder, so a script might not be available for your current ruby version unless you set it up.
Yes, the file extension it's purely informational. Actually, the shebang at the beginning of a file is what determines which interpreter to use.
Yes! I didn’t even know this existed before I made this, I swear 😅
These are my fav themes from highlight.js:
- tokyo-night-dark
- nord
- ir-black
- hybrid
- gradient-dark
- gml
- github-dark-dimmed
- felipec