updated sheldon zsh config

This commit is contained in:
Nikolas Weger 2023-06-20 11:26:13 +02:00
parent 0d384685b9
commit 0084e63150
5 changed files with 11 additions and 12 deletions

View file

@ -1,9 +1,5 @@
shell = "zsh" shell = "zsh"
[templates]
defer = """{% for file in files %} zsh-defer source "{{ file }}" {% endfor %}"""
defer-more = """{% for file in files %} zsh-defer -t 0.5 source "{{ file }}" {% endfor %}"""
# own files # own files
[plugins.disableflow] [plugins.disableflow]
inline = 'stty -ixon' inline = 'stty -ixon'
@ -29,9 +25,6 @@ github = "zsh-users/zsh-completions"
github = "trapd00r/LS_COLORS" github = "trapd00r/LS_COLORS"
# plugins # plugins
[plugins.zshdefer]
github = "romkatv/zsh-defer"
[plugins.omzlib] [plugins.omzlib]
github = "ohmyzsh/ohmyzsh" github = "ohmyzsh/ohmyzsh"
dir = "lib" dir = "lib"

View file

@ -46,7 +46,7 @@ export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates
# other programs # other programs
export LESSHISTFILE="$XDG_STATE_HOME"/less/history export LESSHISTFILE="$XDG_STATE_HOME"/less/history
export EDITOR=nvim export EDITOR=nvim
export VISUAL=kate #export VISUAL=kate
export ZSH_WAKATIME_BIN=/usr/bin/wakatime export ZSH_WAKATIME_BIN=/usr/bin/wakatime
export PYTHONSTARTUP=/etc/python/pythonrc export PYTHONSTARTUP=/etc/python/pythonrc
@ -61,4 +61,5 @@ export HISTSIZE=$(( 1.2 * SAVEHIST ))
export ZSH_CACHE_DIR="$XDG_CACHE_HOME"/zsh export ZSH_CACHE_DIR="$XDG_CACHE_HOME"/zsh
export HISTFILE="$ZSH_CACHE_DIR"/history export HISTFILE="$ZSH_CACHE_DIR"/history
export GPG_TTY="$TTY" export GPG_TTY="$TTY"
export DIFFPROG='meld'
export AUTO_NTFY_DONE_IGNORE="ntfy emacs htop info less mail man meld most mutt nano screen ssh tail tmux top vi vim watch bat cat kate topgrade" export AUTO_NTFY_DONE_IGNORE="ntfy emacs htop info less mail man meld most mutt nano screen ssh tail tmux top vi vim watch bat cat kate topgrade"

View file

@ -1,8 +1,8 @@
if test -v DISTROBOX_HOST_HOME; then unset ZDOTDIR; exec zsh; fi # fix distrobox test -v DISTROBOX_HOST_HOME && { unset ZDOTDIR; exec zsh } # fix distrobox
if test "x$TERMINALNAME" = "xalacritty"; then eval "$(zellij setup --generate-auto-start zsh)"; fi # autostart zellij only in alacritty test "x$TERMINALNAME" = "xalacritty" && eval "$(zellij setup --generate-auto-start zsh)" # autostart zellij only in alacritty
# startup banner # startup banner
potentialBanner=('bofh' 'hackerquotes' 'colorscript random' 'fastfetch') potentialBanner=('bofh' 'hackerquotes' 'dadjoke' 'colorscript random' 'fastfetch')
eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" eval "$potentialBanner[$RANDOM%$#potentialBanner+1]"
# and source plugins # and source plugins

View file

@ -8,7 +8,7 @@ if (( ${+commands[brew]} )); then
else else
export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]"
fi fi
eval "$(ohmyposh init zsh)" eval "$(oh-my-posh init zsh)"
# evalstuff # evalstuff
_evalcache zoxide init --cmd cd zsh _evalcache zoxide init --cmd cd zsh

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
joke=$(curl -sH "Accept: text/plain" 'https://icanhazdadjoke.com/')
echo "Daily Dadjoke: $joke"