changed layout of joke stuff

This commit is contained in:
Nikolas Weger 2023-08-02 08:23:25 +02:00
parent fc94e2be0f
commit cf8cc236c7
2 changed files with 6 additions and 8 deletions

View file

@ -3,7 +3,7 @@
#assume_yes = true
# Disable specific steps - same options as the command line flag
disable = ["firmware", "tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes", "flatpak", "shell"]
disable = ["firmware", "tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes", "flatpak", "shell", "rustup"]
# Skip Notify
skip_notify = true

View file

@ -18,28 +18,28 @@ case "$1" in
dijkstra_lines=$(nl "$dijkstra" | tail -n 1 | awk '{print $1}')
echo -n "Daily Hackerquote: "
awk 'NR=='$((1 + RANDOM % dijkstra_lines ))'{print;exit}' "$dijkstra"
echo -n " - Edsger W. Dijkstra"
echo " - Edsger W. Dijkstra"
;;
"knuth")
knuth="$HOME/.local/share/hackerquotes/knuth"
knuth_lines=$(nl "$knuth" | tail -n 1 | awk '{print $1}')
echo -n "Daily Hackerquote: "
awk 'NR=='$((1 + RANDOM % knuth_lines ))'{print;exit}' "$knuth"
echo -n " - Donald E. Knuth"
echo " - Donald E. Knuth"
;;
"perlis")
perlis="$HOME/.local/share/hackerquotes/perlis"
perlis_lines=$(nl "$perlis" | tail -n 1 | awk '{print $1}')
echo -n "Daily Hackerquote: "
awk 'NR=='$((1 + RANDOM % perlis_lines ))'{print;exit}' "$perlis"
echo -n " - Alan J. Perlis"
echo " - Alan J. Perlis"
;;
"torvalds")
torvalds="$HOME/.local/share/hackerquotes/torvalds"
torvalds_lines=$(nl "$torvalds" | tail -n 1 | awk '{print $1}')
echo -n "Daily Hackerquote: "
awk 'NR=='$((1 + RANDOM % torvalds_lines ))'{print;exit}' "$torvalds"
echo -n " - Linus Torvalds"
echo " - Linus Torvalds"
;;
"misc")
misc="$HOME/.local/share/hackerquotes/misc"
@ -50,5 +50,3 @@ case "$1" in
esac
;;
esac