updated sheldon zsh config

This commit is contained in:
Nikolas Weger 2023-05-02 10:01:13 +02:00
parent 94ef22b629
commit 5b8b457d3c
8 changed files with 13 additions and 6 deletions

10
.chezmoi.toml.tmpl Normal file
View file

@ -0,0 +1,10 @@
{{ $email := promptString "email" -}}
{{ $username := promptString "username" -}}
[git]
autoCommit = true
autoPush = true
[data]
email = {{ $email | quote }}
name = {{ $username | quote }}

View file

@ -1,4 +1,3 @@
# kate: syntax zsh;
# path # path
export PATH="$HOME"/.local/bin:"$PATH" export PATH="$HOME"/.local/bin:"$PATH"

View file

@ -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 if test "x$TERMINALNAME" = "xalacritty"; then eval "$(zellij setup --generate-auto-start zsh)"; fi # autostart zellij only in alacritty
# startup banner # startup banner
potentialBanner=('bofh; echo " - BOFH"' 'hackerquotes' 'colorscript random' 'fastfetch') potentialBanner=('bofh' 'hackerquotes' 'colorscript random' 'fastfetch')
eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" eval "$potentialBanner[$RANDOM%$#potentialBanner+1]"
# and source plugins # and source plugins

View file

@ -1 +0,0 @@
profile.zsh

View file

@ -1 +0,0 @@
env.zsh

View file

@ -1 +0,0 @@
rc.zsh

View file

@ -2,4 +2,5 @@
excuses_file="$HOME/.local/share/bofh" excuses_file="$HOME/.local/share/bofh"
num_lines=$(nl "$excuses_file" | tail -n 1 | awk '{print $1}') num_lines=$(nl "$excuses_file" | tail -n 1 | awk '{print $1}')
echo -n "Daily Excuse: "
awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file" awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file"