-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(README): add installation & usage instructions
Signed-off-by: Adam Perkowski <[email protected]>
- Loading branch information
1 parent
2ea052d
commit cd0bd72
Showing
4 changed files
with
242 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ oldver.json | |
keyfile.toml | ||
*_old | ||
*.old | ||
*.gif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/sh -e | ||
|
||
# Prevent execution if this script was only partially downloaded | ||
{ | ||
rc='\033[0m' | ||
red='\033[0;31m' | ||
|
||
check() { | ||
exit_code=$1 | ||
message=$2 | ||
|
||
if [ "$exit_code" -ne 0 ]; then | ||
printf '%sERROR: %s%s\n' "$red" "$message" "$rc" | ||
exit 1 | ||
fi | ||
|
||
unset exit_code | ||
unset message | ||
} | ||
|
||
findArch() { | ||
case "$(uname -m)" in | ||
x86_64|amd64) arch="x86_64" ;; | ||
aarch64|arm64) arch="aarch64" ;; | ||
*) check 1 "Unsupported architecture" | ||
esac | ||
} | ||
|
||
getUrl() { | ||
case "${arch}" in | ||
x86_64) echo "https://github.com/ChrisTitusTech/linutil/releases/latest/download/linutil";; | ||
*) echo "https://github.com/ChrisTitusTech/linutil/releases/latest/download/linutil-${arch}";; | ||
esac | ||
} | ||
|
||
findArch | ||
temp_file=$(mktemp) | ||
check $? "Creating the temporary file" | ||
|
||
curl -fsL "$(getUrl)" -o "$temp_file" | ||
check $? "Downloading linutil" | ||
|
||
chmod +x "$temp_file" | ||
check $? "Making linutil executable" | ||
|
||
"$temp_file" | ||
check $? "Executing linutil" | ||
|
||
rm -f "$temp_file" | ||
check $? "Deleting the temporary file" | ||
} # End of wrapping |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# VHS | ||
# https://github.com/charmbracelet/vhs | ||
|
||
Output nvrs.gif | ||
|
||
Require echo | ||
|
||
Set Shell "zsh" | ||
Set FontSize 32 | ||
Set Width 1280 | ||
Set Height 720 | ||
Set TypingSpeed 0ms | ||
Set Theme { "black": "#000D19", "red": "#7D0C0C", "green": "#0C7D45", "yellow": "#7D750C", "blue": "#0C567E", "magenta": "#6E1D57", "cyan": "#12748F", "white": "#A3A3A3", "brightBlack": "#000D19", "brightRed": "#951313", "brightGreen": "#16A85F", "brightYellow": "#ABA119", "brightBlue": "#1A76A8", "brightMagenta": "#A01576", "brightCyan": "#188AA9", "brightWhite": "#A3A3A3", "background": "#00050D", "foreground": "#A3A3A3", "selection": "#6E1D57", "cursor": "#A3A3A3" } | ||
|
||
Hide | ||
Type "source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh" | ||
Enter | ||
Type "source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh" | ||
Enter | ||
Ctrl+L | ||
Sleep 100ms | ||
Show | ||
|
||
Set TypingSpeed 30ms | ||
|
||
Type "1. fetch latest versions of defined packages" | ||
Sleep 1s | ||
Ctrl+U | ||
Sleep 500ms | ||
Type "nvrs" | ||
Sleep 500ms | ||
Enter | ||
|
||
Sleep 1.5s | ||
Ctrl+L | ||
|
||
Type "2. compare them to latest known versions" | ||
Sleep 1s | ||
Ctrl+U | ||
Sleep 500ms | ||
Type "nvrs --cmp" | ||
Sleep 500ms | ||
Enter | ||
|
||
Sleep 1.5s | ||
Ctrl+L | ||
|
||
Type "3. update the known versions" | ||
Sleep 1s | ||
Ctrl+U | ||
Sleep 500ms | ||
Type "nvrs --take ALL" | ||
Sleep 500ms | ||
Enter | ||
|
||
Sleep 2s | ||
|
||
Enter | ||
Type "4. go on github.com/adamperkowski/nvrs & leave a star" | ||
|
||
Sleep 4s |