From cf8cc236c7d1e31064df3d62b0590d9ec4248bbb Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 2 Aug 2023 08:23:25 +0200 Subject: [PATCH] changed layout of joke stuff --- dot_config/topgrade.toml | 2 +- dot_local/bin/executable_joke | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index 3e0643e..ca03fc1 100644 --- a/dot_config/topgrade.toml +++ b/dot_config/topgrade.toml @@ -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 diff --git a/dot_local/bin/executable_joke b/dot_local/bin/executable_joke index dd278c9..ef2e977 100644 --- a/dot_local/bin/executable_joke +++ b/dot_local/bin/executable_joke @@ -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" @@ -49,6 +49,4 @@ case "$1" in ;; esac ;; -esac - - +esac \ No newline at end of file