updated sheldon zsh config
This commit is contained in:
parent
94ef22b629
commit
5b8b457d3c
8 changed files with 13 additions and 6 deletions
10
.chezmoi.toml.tmpl
Normal file
10
.chezmoi.toml.tmpl
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{{ $email := promptString "email" -}}
|
||||||
|
{{ $username := promptString "username" -}}
|
||||||
|
|
||||||
|
[git]
|
||||||
|
autoCommit = true
|
||||||
|
autoPush = true
|
||||||
|
|
||||||
|
[data]
|
||||||
|
email = {{ $email | quote }}
|
||||||
|
name = {{ $username | quote }}
|
|
@ -1,4 +1,3 @@
|
||||||
# kate: syntax zsh;
|
|
||||||
# path
|
# path
|
||||||
export PATH="$HOME"/.local/bin:"$PATH"
|
export PATH="$HOME"/.local/bin:"$PATH"
|
||||||
|
|
|
@ -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
|
|
@ -1 +0,0 @@
|
||||||
profile.zsh
|
|
|
@ -1 +0,0 @@
|
||||||
env.zsh
|
|
|
@ -1 +0,0 @@
|
||||||
rc.zsh
|
|
|
@ -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"
|
Loading…
Add table
Reference in a new issue