From 5b8b457d3cff261d35a821b73dd5e923f1f9e0d3 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 2 May 2023 10:01:13 +0200 Subject: [PATCH] updated sheldon zsh config --- .chezmoi.toml.tmpl | 10 ++++++++++ dot_config/zsh/{profile.zsh => dot_zprofile} | 0 dot_config/zsh/{env.zsh => dot_zshenv} | 1 - dot_config/zsh/{rc.zsh => dot_zshrc} | 2 +- dot_config/zsh/symlink_dot_zprofile | 1 - dot_config/zsh/symlink_dot_zshenv | 1 - dot_config/zsh/symlink_dot_zshrc | 1 - dot_local/bin/executable_bofh | 3 ++- 8 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 .chezmoi.toml.tmpl rename dot_config/zsh/{profile.zsh => dot_zprofile} (100%) rename dot_config/zsh/{env.zsh => dot_zshenv} (99%) rename dot_config/zsh/{rc.zsh => dot_zshrc} (79%) delete mode 100644 dot_config/zsh/symlink_dot_zprofile delete mode 100644 dot_config/zsh/symlink_dot_zshenv delete mode 100644 dot_config/zsh/symlink_dot_zshrc diff --git a/.chezmoi.toml.tmpl b/.chezmoi.toml.tmpl new file mode 100644 index 0000000..12016de --- /dev/null +++ b/.chezmoi.toml.tmpl @@ -0,0 +1,10 @@ +{{ $email := promptString "email" -}} +{{ $username := promptString "username" -}} + +[git] + autoCommit = true + autoPush = true + +[data] + email = {{ $email | quote }} + name = {{ $username | quote }} diff --git a/dot_config/zsh/profile.zsh b/dot_config/zsh/dot_zprofile similarity index 100% rename from dot_config/zsh/profile.zsh rename to dot_config/zsh/dot_zprofile diff --git a/dot_config/zsh/env.zsh b/dot_config/zsh/dot_zshenv similarity index 99% rename from dot_config/zsh/env.zsh rename to dot_config/zsh/dot_zshenv index dd96660..b0576df 100644 --- a/dot_config/zsh/env.zsh +++ b/dot_config/zsh/dot_zshenv @@ -1,4 +1,3 @@ -# kate: syntax zsh; # path export PATH="$HOME"/.local/bin:"$PATH" diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/dot_zshrc similarity index 79% rename from dot_config/zsh/rc.zsh rename to dot_config/zsh/dot_zshrc index 0dc116d..d1b3373 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/dot_zshrc @@ -2,7 +2,7 @@ if test -v DISTROBOX_HOST_HOME; then unset ZDOTDIR; exec zsh; fi # fix distrobox if test "x$TERMINALNAME" = "xalacritty"; then eval "$(zellij setup --generate-auto-start zsh)"; fi # autostart zellij only in alacritty # startup banner -potentialBanner=('bofh; echo " - BOFH"' 'hackerquotes' 'colorscript random' 'fastfetch') +potentialBanner=('bofh' 'hackerquotes' 'colorscript random' 'fastfetch') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" # and source plugins diff --git a/dot_config/zsh/symlink_dot_zprofile b/dot_config/zsh/symlink_dot_zprofile deleted file mode 100644 index dd49749..0000000 --- a/dot_config/zsh/symlink_dot_zprofile +++ /dev/null @@ -1 +0,0 @@ -profile.zsh diff --git a/dot_config/zsh/symlink_dot_zshenv b/dot_config/zsh/symlink_dot_zshenv deleted file mode 100644 index c3ac24e..0000000 --- a/dot_config/zsh/symlink_dot_zshenv +++ /dev/null @@ -1 +0,0 @@ -env.zsh diff --git a/dot_config/zsh/symlink_dot_zshrc b/dot_config/zsh/symlink_dot_zshrc deleted file mode 100644 index 807d307..0000000 --- a/dot_config/zsh/symlink_dot_zshrc +++ /dev/null @@ -1 +0,0 @@ -rc.zsh diff --git a/dot_local/bin/executable_bofh b/dot_local/bin/executable_bofh index 14f1a51..d55c70c 100644 --- a/dot_local/bin/executable_bofh +++ b/dot_local/bin/executable_bofh @@ -2,4 +2,5 @@ excuses_file="$HOME/.local/share/bofh" num_lines=$(nl "$excuses_file" | tail -n 1 | awk '{print $1}') -awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file" \ No newline at end of file +echo -n "Daily Excuse: " +awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file"