From 09118f860f8781c4937996f02ce95909942f11f2 Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 15 Dec 2022 14:51:35 +0100 Subject: [PATCH 01/87] use sheldon --- dot_config/sheldon/plugins.toml | 17 +++++++++++++++-- dot_config/zsh/rc.zsh | 23 ++++------------------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index bd2ae5f..59152c9 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -1,9 +1,18 @@ shell = "zsh" [templates] -defer = "{% for file in files %}zsh-defer source \"{{ file }}\"\n{% endfor %}" -defer-more = "{% for file in files %}zsh-defer -t 0.5 source \"{{ file }}\"\n{% endfor %}" +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 +[plugins.ownfiles] +local = "~/.config/zsh/" +use = ["{env,.p10k}.zsh"] [plugins.zsh-defer] github = "romkatv/zsh-defer" @@ -74,3 +83,7 @@ github = "romkatv/powerlevel10k" [plugins.own-files] local = "~/.config/zsh/" use = ["{aliases,keybinds,distroicon,transfer}.zsh"] + +[plugins.asdf] +local = "/opt/asdf-vm" +use = ["asdf.sh"] diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index 6f9fb20..cd68b67 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -6,14 +6,8 @@ bofh; echo " - BOFH" #hackerquotes #colorscript random -try_source () { test -r $1 && source $1 } - -# local env exports -try_source "$XDG_DATA_HOME"/zsh/env.zsh - -# Powerlevel10k - instant prompt and config -try_source "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh -try_source "$XDG_CONFIG_HOME"/zsh/.p10k.zsh # p10k configure +# powerlevel10k instant prompt +() { test -r $1 && source $1 } "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh # ensure zsh cache folder exists mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null @@ -21,10 +15,8 @@ mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null # compinit autoload -Uz compinit; compinit -d "$XDG_CACHE_HOME"/zsh/compdump -# antidote -try_source /usr/share/zsh-antidote/antidote.zsh -zstyle ':antidote:bundle' use-friendly-names 'yes' -antidote load +# source from sheldon +eval "$(sheldon source)" # other themes #_evalcache starship init zsh @@ -36,15 +28,8 @@ _evalcache dircolors -b /usr/share/LS_COLORS/LS_COLORS _evalcache atuin init zsh _evalcache navi widget zsh _evalcache direnv hook zsh -try_source /opt/asdf-vm/asdf.sh eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" -# seperate configs -try_source "$ZDOTDIR"/aliases.zsh -try_source "$ZDOTDIR"/keybinds.zsh -try_source "$ZDOTDIR"/distroicon.zsh -try_source "$ZDOTDIR"/transfer.zsh - # ssh ignored patterns zstyle ':completion:*:*:*:users' ignored-patterns '*' zstyle ':completion:*:*:*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*localdomain*' '*.eeleater.org' '*.local' '*.hbz-nrw.de' From 92fe578bd2e0d3db1b0978136d207153bf872cf4 Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 15 Dec 2022 23:58:18 +0100 Subject: [PATCH 02/87] update files --- dot_config/sheldon/plugins.toml | 7 +------ dot_config/zsh/rc.zsh | 9 +-------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 59152c9..0f576bd 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -12,7 +12,7 @@ zsh-defer -t 0.5 source "{{ file }}" # own files [plugins.ownfiles] local = "~/.config/zsh/" -use = ["{env,.p10k}.zsh"] +use = ["{env,.p10k,aliases,keybinds,distroicon,transfer}.zsh"] [plugins.zsh-defer] github = "romkatv/zsh-defer" @@ -79,11 +79,6 @@ github = "zsh-users/zsh-syntax-highlighting" [plugins.powerlevel10k] github = "romkatv/powerlevel10k" -# own files -[plugins.own-files] -local = "~/.config/zsh/" -use = ["{aliases,keybinds,distroicon,transfer}.zsh"] - [plugins.asdf] local = "/opt/asdf-vm" use = ["asdf.sh"] diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index cd68b67..7eb2941 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -9,19 +9,12 @@ bofh; echo " - BOFH" # powerlevel10k instant prompt () { test -r $1 && source $1 } "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh -# ensure zsh cache folder exists -mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null - # compinit -autoload -Uz compinit; compinit -d "$XDG_CACHE_HOME"/zsh/compdump +autoload -Uz compinit; mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null; compinit -d "$XDG_CACHE_HOME"/zsh/compdump # source from sheldon eval "$(sheldon source)" -# other themes -#_evalcache starship init zsh -#_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json - # eval stuff _evalcache zoxide init zsh _evalcache dircolors -b /usr/share/LS_COLORS/LS_COLORS From 1e10bd562217164d93a2b9d93051d5ce403cfd5c Mon Sep 17 00:00:00 2001 From: eeleater Date: Fri, 16 Dec 2022 00:07:40 +0100 Subject: [PATCH 03/87] update files --- dot_config/zsh/rc.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index 7eb2941..b321bf4 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -15,6 +15,10 @@ autoload -Uz compinit; mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null; compinit -d " # source from sheldon eval "$(sheldon source)" +# other themes +#_evalcache starship init zsh +#_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json + # eval stuff _evalcache zoxide init zsh _evalcache dircolors -b /usr/share/LS_COLORS/LS_COLORS From 5c73c422769a0945315f36f4a8ac2830051eaad3 Mon Sep 17 00:00:00 2001 From: eeleater Date: Mon, 19 Dec 2022 02:19:48 +0100 Subject: [PATCH 04/87] Update .config/sheldon/plugins.toml Update .config/zsh/env.zsh Add .config/zsh/files/compinit.zsh Add .config/zsh/files/sshcomp.zsh Update .config/zsh/rc.zsh Update .config/zsh/.zprofile Remove .config/zsh/.zsh_plugins.txt Remove .config/zsh/zsh_plugins.txt Update .local/bin/bofh Change attributes of .config/zsh/files/aliases.zsh Change attributes of .config/zsh/files/distroicon.zsh Change attributes of .config/zsh/files/keybinds.zsh Change attributes of .config/zsh/files/transfer.zsh Change attributes of .config/zsh/profile.zsh --- dot_config/sheldon/plugins.toml | 63 ++++++++++++-------- dot_config/zsh/env.zsh | 4 +- dot_config/zsh/{ => files}/aliases.zsh | 0 dot_config/zsh/files/compinit.zsh | 3 + dot_config/zsh/{ => files}/distroicon.zsh | 0 dot_config/zsh/{ => files}/keybinds.zsh | 0 dot_config/zsh/files/sshcomp.zsh | 12 ++++ dot_config/zsh/{ => files}/transfer.zsh | 8 +-- dot_config/zsh/{zprofile.zsh => profile.zsh} | 0 dot_config/zsh/rc.zsh | 16 +---- dot_config/zsh/symlink_dot_zprofile | 2 +- dot_config/zsh/symlink_dot_zsh_plugins.txt | 1 - dot_config/zsh/zsh_plugins.txt | 29 --------- dot_local/bin/executable_bofh | 4 +- 14 files changed, 63 insertions(+), 79 deletions(-) rename dot_config/zsh/{ => files}/aliases.zsh (100%) create mode 100644 dot_config/zsh/files/compinit.zsh rename dot_config/zsh/{ => files}/distroicon.zsh (100%) rename dot_config/zsh/{ => files}/keybinds.zsh (100%) create mode 100644 dot_config/zsh/files/sshcomp.zsh rename dot_config/zsh/{ => files}/transfer.zsh (87%) rename dot_config/zsh/{zprofile.zsh => profile.zsh} (100%) delete mode 100644 dot_config/zsh/symlink_dot_zsh_plugins.txt delete mode 100644 dot_config/zsh/zsh_plugins.txt diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 0f576bd..3cf499e 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -10,32 +10,44 @@ zsh-defer -t 0.5 source "{{ file }}" {% endfor %}""" # own files -[plugins.ownfiles] -local = "~/.config/zsh/" -use = ["{env,.p10k,aliases,keybinds,distroicon,transfer}.zsh"] +[plugins.localenv] +local = "~/.local/share/zsh/" +use = ["env.zsh"] -[plugins.zsh-defer] -github = "romkatv/zsh-defer" +[plugins.p10kconfig] +local = "~/.config/zsh/" +use = [".p10k.zsh"] + +[plugins.ownfiles] +local = "~/.config/zsh/files/" +use = ["{compinit,aliases,keybinds,distroicon,transfer}.zsh"] # completions -[plugins.zsh-completions] +[plugins.completions] github = "zsh-users/zsh-completions" +# lscolors +[plugins.lscolors] +github = "trapd00r/LS_COLORS" + # plugins -[plugins.ohmyzsh-lib] +[plugins.zshdefer] +github = "romkatv/zsh-defer" + +[plugins.ohmyzshlib] github = "ohmyzsh/ohmyzsh" dir = "lib" use = ["{completion,key-bindings,history,directories}.zsh"] -[plugins.ohmyzsh-plugins] +[plugins.ohmyzshplugins] github = "ohmyzsh/ohmyzsh" dir = "plugins" use = ["{systemd,fzf,command-not-found}/*.plugin.zsh"] -[plugins.fzf-tab] +[plugins.fzftab] github = "Aloxaf/fzf-tab" -[plugins.fzf-marks] +[plugins.fzfmarks] github = "urbainvaes/fzf-marks" [plugins.evalcache] @@ -44,41 +56,40 @@ github = "mroth/evalcache" [plugins.colorize] github = "zpm-zsh/colorize" -[plugins.ssh] -github = "zpm-zsh/ssh" - -[plugins.wakatime-zsh-plugin] +[plugins.wakatime] github = "sobolevn/wakatime-zsh-plugin" -[plugins.zsh-titles] +[plugins.titles] github = "amyreese/zsh-titles" -[plugins.zsh-thefuck] +[plugins.thefuck] github = "laggardkernel/zsh-thefuck" [plugins.oath] github = "alexdesousa/oath" -[plugins.zsh-exa] +[plugins.exa] github = "TwoPizza9621536/zsh-exa" -[plugins.zsh-bat] +[plugins.bat] github = "fdellwing/zsh-bat" -[plugins.zsh-you-should-use] +[plugins.youshoulduse] github = "MichaelAquilina/zsh-you-should-use" -[plugins.zsh-autosuggestions] +[plugins.autosuggestions] github = "zsh-users/zsh-autosuggestions" -use = ["{{ name }}.zsh"] -[plugins.zsh-syntax-highlighting] +[plugins.syntaxhighlighting] github = "zsh-users/zsh-syntax-highlighting" +[plugins.asdf] +github = "asdf-vm/asdf" + +[plugins.sshcomp] +local = "~/.config/zsh/files/" +use = ["sshcomp.zsh"] + # theme [plugins.powerlevel10k] github = "romkatv/powerlevel10k" - -[plugins.asdf] -local = "/opt/asdf-vm" -use = ["asdf.sh"] diff --git a/dot_config/zsh/env.zsh b/dot_config/zsh/env.zsh index a908235..e3784dc 100644 --- a/dot_config/zsh/env.zsh +++ b/dot_config/zsh/env.zsh @@ -60,6 +60,6 @@ export ZELLIJ_AUTO_EXIT=true export TERMINALNAME=$(fastfetch --pipe 2>/dev/null | grep -i terminal: | awk '{print $2}') # zsh specific -export HISTSIZE=1048576 -export SAVEHIST=1048576 +export SAVEHIST=$(( 1000 * 1000 )) +export HISTSIZE=$(( 1.2 * SAVEHIST )) export HISTFILE="$XDG_CACHE_HOME"/zsh/history diff --git a/dot_config/zsh/aliases.zsh b/dot_config/zsh/files/aliases.zsh similarity index 100% rename from dot_config/zsh/aliases.zsh rename to dot_config/zsh/files/aliases.zsh diff --git a/dot_config/zsh/files/compinit.zsh b/dot_config/zsh/files/compinit.zsh new file mode 100644 index 0000000..645a420 --- /dev/null +++ b/dot_config/zsh/files/compinit.zsh @@ -0,0 +1,3 @@ +autoload -Uz compinit +mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null +compinit -d "$XDG_CACHE_HOME"/zsh/compdump diff --git a/dot_config/zsh/distroicon.zsh b/dot_config/zsh/files/distroicon.zsh similarity index 100% rename from dot_config/zsh/distroicon.zsh rename to dot_config/zsh/files/distroicon.zsh diff --git a/dot_config/zsh/keybinds.zsh b/dot_config/zsh/files/keybinds.zsh similarity index 100% rename from dot_config/zsh/keybinds.zsh rename to dot_config/zsh/files/keybinds.zsh diff --git a/dot_config/zsh/files/sshcomp.zsh b/dot_config/zsh/files/sshcomp.zsh new file mode 100644 index 0000000..3984595 --- /dev/null +++ b/dot_config/zsh/files/sshcomp.zsh @@ -0,0 +1,12 @@ +zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*' sort false +zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*' group-name '' +zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*' verbose yes + +zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*' tag-order 'hosts:-host:host hosts:-domain:domain hosts:-ipaddr:ip\ address *' +zstyle ':completion:*:(scp|sshfs|rsync):*' group-order users files all-files hosts-domain hosts-host hosts-ipaddr +zstyle ':completion:*:(ssh|mosh):*' group-order users hosts-domain hosts-host users hosts-ipaddr + +zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:users' ignored-patterns '*' +zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-host' ignored-patterns '*(.|:)*' loopback localhost broadcasthost 'ip6-*' 'hbz*' +zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*.eeleater.org' '*.hbz-nrw.de' +zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.*' '255.255.255.255' '::1' 'fe80::*' 'ff02::*' diff --git a/dot_config/zsh/transfer.zsh b/dot_config/zsh/files/transfer.zsh similarity index 87% rename from dot_config/zsh/transfer.zsh rename to dot_config/zsh/files/transfer.zsh index 1415467..394bdf3 100644 --- a/dot_config/zsh/transfer.zsh +++ b/dot_config/zsh/files/transfer.zsh @@ -1,5 +1,5 @@ -transfer(){ - if [ $# -eq 0 ]; then +transfer () { + if test $# -eq 0; then echo "No arguments specified.\nUsage:\n transfer \n ... | transfer ">&2 return 1 fi @@ -8,12 +8,12 @@ transfer(){ file="$1" file_name=$(basename "$file") - if [ ! -e "$file" ]; then + if test ! -e "$file"; then echo "$file: No such file or directory">&2 return 1 fi - if [ -d "$file" ]; then + if test -d "$file"; then file_name="$file_name.zip" (cd "$file" && zip -r -q - .) | curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null else diff --git a/dot_config/zsh/zprofile.zsh b/dot_config/zsh/profile.zsh similarity index 100% rename from dot_config/zsh/zprofile.zsh rename to dot_config/zsh/profile.zsh diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index b321bf4..a2a95e7 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -1,32 +1,20 @@ if test -v DISTROBOX_HOST_HOME; then unset ZDOTDIR; exec zsh; fi # fix distrobox -if test $TERMINALNAME = "alacritty"; then eval "$(zellij setup --generate-auto-start zsh)"; fi # autostart only in alacritty +if test $TERMINALNAME = "alacritty"; then eval "$(zellij setup --generate-auto-start zsh)"; fi # autostart zellij only in alacritty #fastfetch bofh; echo " - BOFH" #hackerquotes #colorscript random -# powerlevel10k instant prompt () { test -r $1 && source $1 } "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh -# compinit -autoload -Uz compinit; mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null; compinit -d "$XDG_CACHE_HOME"/zsh/compdump - -# source from sheldon eval "$(sheldon source)" -# other themes +# eval stuff + other themes #_evalcache starship init zsh #_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json - -# eval stuff _evalcache zoxide init zsh -_evalcache dircolors -b /usr/share/LS_COLORS/LS_COLORS _evalcache atuin init zsh _evalcache navi widget zsh _evalcache direnv hook zsh eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" - -# ssh ignored patterns -zstyle ':completion:*:*:*:users' ignored-patterns '*' -zstyle ':completion:*:*:*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*localdomain*' '*.eeleater.org' '*.local' '*.hbz-nrw.de' diff --git a/dot_config/zsh/symlink_dot_zprofile b/dot_config/zsh/symlink_dot_zprofile index fc78fe4..dd49749 100644 --- a/dot_config/zsh/symlink_dot_zprofile +++ b/dot_config/zsh/symlink_dot_zprofile @@ -1 +1 @@ -zprofile.zsh +profile.zsh diff --git a/dot_config/zsh/symlink_dot_zsh_plugins.txt b/dot_config/zsh/symlink_dot_zsh_plugins.txt deleted file mode 100644 index d349554..0000000 --- a/dot_config/zsh/symlink_dot_zsh_plugins.txt +++ /dev/null @@ -1 +0,0 @@ -zsh_plugins.txt diff --git a/dot_config/zsh/zsh_plugins.txt b/dot_config/zsh/zsh_plugins.txt deleted file mode 100644 index 15e09a6..0000000 --- a/dot_config/zsh/zsh_plugins.txt +++ /dev/null @@ -1,29 +0,0 @@ -# oh my zsh -ohmyzsh/ohmyzsh path:lib/history.zsh -ohmyzsh/ohmyzsh path:lib/completion.zsh -ohmyzsh/ohmyzsh path:lib/directories.zsh -ohmyzsh/ohmyzsh path:lib/key-bindings.zsh -ohmyzsh/ohmyzsh path:plugins/systemd -ohmyzsh/ohmyzsh path:plugins/fzf -ohmyzsh/ohmyzsh path:plugins/command-not-found - -# other plugins -Aloxaf/fzf-tab -urbainvaes/fzf-marks -mroth/evalcache -zpm-zsh/colorize -zpm-zsh/ssh -sobolevn/wakatime-zsh-plugin -amyreese/zsh-titles -laggardkernel/zsh-thefuck -MichaelAquilina/zsh-you-should-use -alexdesousa/oath -TwoPizza9621536/zsh-exa -fdellwing/zsh-bat - -# theme -romkatv/powerlevel10k - -# fish like -zsh-users/zsh-autosuggestions -zsh-users/zsh-syntax-highlighting diff --git a/dot_local/bin/executable_bofh b/dot_local/bin/executable_bofh index 711e373..d1ca04e 100644 --- a/dot_local/bin/executable_bofh +++ b/dot_local/bin/executable_bofh @@ -1,5 +1,5 @@ #!/usr/bin/env bash excuses_file="$HOME/.local/share/zsh/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 +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 From 27a779ca1561d790e5e4332c877fd1f84457fdac Mon Sep 17 00:00:00 2001 From: eeleater Date: Mon, 19 Dec 2022 02:21:37 +0100 Subject: [PATCH 05/87] Update .config/zsh/profile.zsh --- dot_config/zsh/profile.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/zsh/profile.zsh b/dot_config/zsh/profile.zsh index 8b13789..4e2652e 100644 --- a/dot_config/zsh/profile.zsh +++ b/dot_config/zsh/profile.zsh @@ -1 +1 @@ - +# create the file From a5c3567d85b61e5b5c4217a8fa72b3abc489f2bc Mon Sep 17 00:00:00 2001 From: eeleater Date: Tue, 20 Dec 2022 16:45:56 +0100 Subject: [PATCH 06/87] Update .config/sheldon/plugins.toml Update .config/zsh/env.zsh Add .config/zsh/files/functions.zsh Remove .config/zsh/files/keybinds.zsh Remove .config/zsh/files/transfer.zsh Update .config/zsh/rc.zsh --- dot_config/sheldon/plugins.toml | 31 +++++++++++++++++++++++++++--- dot_config/zsh/env.zsh | 3 ++- dot_config/zsh/files/functions.zsh | 15 +++++++++++++++ dot_config/zsh/files/keybinds.zsh | 7 ------- dot_config/zsh/files/transfer.zsh | 26 ------------------------- dot_config/zsh/rc.zsh | 15 ++------------- 6 files changed, 47 insertions(+), 50 deletions(-) create mode 100644 dot_config/zsh/files/functions.zsh delete mode 100644 dot_config/zsh/files/keybinds.zsh delete mode 100644 dot_config/zsh/files/transfer.zsh diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 3cf499e..7e27b84 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -20,7 +20,7 @@ use = [".p10k.zsh"] [plugins.ownfiles] local = "~/.config/zsh/files/" -use = ["{compinit,aliases,keybinds,distroicon,transfer}.zsh"] +use = ["{compinit,aliases,functions,distroicon}.zsh"] # completions [plugins.completions] @@ -42,7 +42,7 @@ use = ["{completion,key-bindings,history,directories}.zsh"] [plugins.ohmyzshplugins] github = "ohmyzsh/ohmyzsh" dir = "plugins" -use = ["{systemd,fzf,command-not-found}/*.plugin.zsh"] +use = ["{systemd,fzf,command-not-found,transfer}/*.plugin.zsh"] [plugins.fzftab] github = "Aloxaf/fzf-tab" @@ -86,10 +86,35 @@ github = "zsh-users/zsh-syntax-highlighting" [plugins.asdf] github = "asdf-vm/asdf" +[plugins.hoco] +github = "Felixoid/zsh-hoco" + [plugins.sshcomp] local = "~/.config/zsh/files/" use = ["sshcomp.zsh"] -# theme +# themes [plugins.powerlevel10k] github = "romkatv/powerlevel10k" + +#[plugins.starship] +#inline = "_evalcache starship init zsh --print-full-init" + +#[plugins.ohmyposh] +#inline = "_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json" + +# evals +[plugins.zoxide] +inline = "_evalcache zoxide init zsh" + +[plugins.atuin] +inline = "_evalcache atuin init zsh" + +[plugins.navi] +inline = "_evalcache navi widget zsh" + +[plugins.direnv] +inline = "_evalcache direnv hook zsh" + +[plugins.keychain] +inline = 'eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"' diff --git a/dot_config/zsh/env.zsh b/dot_config/zsh/env.zsh index e3784dc..8d71a50 100644 --- a/dot_config/zsh/env.zsh +++ b/dot_config/zsh/env.zsh @@ -62,4 +62,5 @@ export TERMINALNAME=$(fastfetch --pipe 2>/dev/null | grep -i terminal: | awk '{p # zsh specific export SAVEHIST=$(( 1000 * 1000 )) export HISTSIZE=$(( 1.2 * SAVEHIST )) -export HISTFILE="$XDG_CACHE_HOME"/zsh/history +export ZSH_CACHE_DIR="$XDG_CACHE_HOME"/zsh +export HISTFILE="$ZSH_CACHE_DIR"/history diff --git a/dot_config/zsh/files/functions.zsh b/dot_config/zsh/files/functions.zsh new file mode 100644 index 0000000..6a40a2f --- /dev/null +++ b/dot_config/zsh/files/functions.zsh @@ -0,0 +1,15 @@ +pet_select () { + BUFFER=$(pet search --query "$LBUFFER") + CURSOR=$#BUFFER + zle redisplay +} +zle -N pet_select +bindkey '^l' pet_select + +run_ranger () { + echo + ranger < $TTY + zle redisplay +} +zle -N run_ranger +bindkey '^f' run_ranger diff --git a/dot_config/zsh/files/keybinds.zsh b/dot_config/zsh/files/keybinds.zsh deleted file mode 100644 index 854db4d..0000000 --- a/dot_config/zsh/files/keybinds.zsh +++ /dev/null @@ -1,7 +0,0 @@ -run_ranger () { echo; ranger < $TTY; zle redisplay } -zle -N run_ranger -bindkey '^f' run_ranger - -pet_select () { BUFFER=$(pet search --query "$LBUFFER"); CURSOR=$#BUFFER; zle redisplay } -zle -N pet_select -bindkey '^l' pet_select diff --git a/dot_config/zsh/files/transfer.zsh b/dot_config/zsh/files/transfer.zsh deleted file mode 100644 index 394bdf3..0000000 --- a/dot_config/zsh/files/transfer.zsh +++ /dev/null @@ -1,26 +0,0 @@ -transfer () { - if test $# -eq 0; then - echo "No arguments specified.\nUsage:\n transfer \n ... | transfer ">&2 - return 1 - fi - - if tty -s; then - file="$1" - file_name=$(basename "$file") - - if test ! -e "$file"; then - echo "$file: No such file or directory">&2 - return 1 - fi - - if test -d "$file"; then - file_name="$file_name.zip" - (cd "$file" && zip -r -q - .) | curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null - else - cat "$file" | curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null - fi - else - file_name=$1 - curl --progress-bar --upload-file "-" "https://transfer.sh/$file_name" | tee /dev/null - fi -} diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index a2a95e7..8916d84 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -1,20 +1,9 @@ if test -v DISTROBOX_HOST_HOME; then unset ZDOTDIR; exec zsh; fi # fix distrobox if test $TERMINALNAME = "alacritty"; then eval "$(zellij setup --generate-auto-start zsh)"; fi # autostart zellij only in alacritty -#fastfetch -bofh; echo " - BOFH" -#hackerquotes -#colorscript random +potentialBanner=('bofh; echo " - BOFH"' 'fastfetch' 'hackerquotes' 'colorscript random') +eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" () { test -r $1 && source $1 } "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh eval "$(sheldon source)" - -# eval stuff + other themes -#_evalcache starship init zsh -#_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json -_evalcache zoxide init zsh -_evalcache atuin init zsh -_evalcache navi widget zsh -_evalcache direnv hook zsh -eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" From 8f5ff058fae74ec89a17fd0e6c4331feb0a8763f Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 29 Dec 2022 14:39:33 +0100 Subject: [PATCH 07/87] Update .config/sheldon/plugins.toml Update .config/zsh/files/aliases.zsh Update .config/zsh/files/compinit.zsh Update .config/zsh/rc.zsh --- dot_config/sheldon/plugins.toml | 6 +++++- dot_config/zsh/files/aliases.zsh | 1 - dot_config/zsh/files/compinit.zsh | 3 ++- dot_config/zsh/rc.zsh | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 7e27b84..082daf5 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -89,6 +89,10 @@ github = "asdf-vm/asdf" [plugins.hoco] github = "Felixoid/zsh-hoco" +[plugins.abbr] +github = "olets/zsh-abbr" +use = ["zsh-abbr.zsh"] + [plugins.sshcomp] local = "~/.config/zsh/files/" use = ["sshcomp.zsh"] @@ -105,7 +109,7 @@ github = "romkatv/powerlevel10k" # evals [plugins.zoxide] -inline = "_evalcache zoxide init zsh" +inline = "_evalcache zoxide init --cmd cd zsh" [plugins.atuin] inline = "_evalcache atuin init zsh" diff --git a/dot_config/zsh/files/aliases.zsh b/dot_config/zsh/files/aliases.zsh index 6815e47..d691777 100644 --- a/dot_config/zsh/files/aliases.zsh +++ b/dot_config/zsh/files/aliases.zsh @@ -1,4 +1,3 @@ -alias cd='z' alias grep='rg' alias find='fd' diff --git a/dot_config/zsh/files/compinit.zsh b/dot_config/zsh/files/compinit.zsh index 645a420..afd93cc 100644 --- a/dot_config/zsh/files/compinit.zsh +++ b/dot_config/zsh/files/compinit.zsh @@ -1,3 +1,4 @@ -autoload -Uz compinit mkdir -p "$XDG_CACHE_HOME"/zsh &>/dev/null + +autoload -Uz compinit compinit -d "$XDG_CACHE_HOME"/zsh/compdump diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index 8916d84..d0e46ea 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -1,5 +1,5 @@ if test -v DISTROBOX_HOST_HOME; then unset ZDOTDIR; exec zsh; fi # fix distrobox -if test $TERMINALNAME = "alacritty"; 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 potentialBanner=('bofh; echo " - BOFH"' 'fastfetch' 'hackerquotes' 'colorscript random') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" From 2aceac0b25471e15a7b3c3a745e426de0c8ec9da Mon Sep 17 00:00:00 2001 From: eeleater Date: Mon, 9 Jan 2023 12:09:00 +0100 Subject: [PATCH 08/87] Update .config/sheldon/plugins.toml --- dot_config/sheldon/plugins.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 082daf5..a43c4c3 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -122,3 +122,16 @@ inline = "_evalcache direnv hook zsh" [plugins.keychain] inline = 'eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"' + +[plugins.bashcomps] +inline = """ +source /usr/share/bash-completion/completions/distrobox +source /usr/share/bash-completion/completions/distrobox-create +source /usr/share/bash-completion/completions/distrobox-enter +source /usr/share/bash-completion/completions/distrobox-ephemeral +source /usr/share/bash-completion/completions/distrobox-generate-entry +source /usr/share/bash-completion/completions/distrobox-list +source /usr/share/bash-completion/completions/distrobox-rm +source /usr/share/bash-completion/completions/distrobox-stop +source /usr/share/bash-completion/completions/distrobox-upgrade +""" From efd3fd35fbbcda5d67e6638672ffed780678774d Mon Sep 17 00:00:00 2001 From: eeleater Date: Mon, 9 Jan 2023 12:12:12 +0100 Subject: [PATCH 09/87] update files --- dot_local/bin/executable_hackerquotes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_local/bin/executable_hackerquotes b/dot_local/bin/executable_hackerquotes index 83d73c4..b7a3e0c 100644 --- a/dot_local/bin/executable_hackerquotes +++ b/dot_local/bin/executable_hackerquotes @@ -1,4 +1,4 @@ -#!/usr/bin/zsh +#!/usr/bin/env zsh # Just print a hacker quote randomly when open a terminal. # From 84df5f315bbf32ddbd66f3551fc9f0b44bca7540 Mon Sep 17 00:00:00 2001 From: eeleater Date: Mon, 16 Jan 2023 10:32:35 +0100 Subject: [PATCH 10/87] update files --- dot_config/sheldon/plugins.toml | 13 ++----------- dot_config/zsh/rc.zsh | 2 -- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index a43c4c3..fadab1c 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -124,14 +124,5 @@ inline = "_evalcache direnv hook zsh" inline = 'eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"' [plugins.bashcomps] -inline = """ -source /usr/share/bash-completion/completions/distrobox -source /usr/share/bash-completion/completions/distrobox-create -source /usr/share/bash-completion/completions/distrobox-enter -source /usr/share/bash-completion/completions/distrobox-ephemeral -source /usr/share/bash-completion/completions/distrobox-generate-entry -source /usr/share/bash-completion/completions/distrobox-list -source /usr/share/bash-completion/completions/distrobox-rm -source /usr/share/bash-completion/completions/distrobox-stop -source /usr/share/bash-completion/completions/distrobox-upgrade -""" +local = "~/.config/zsh/files/" +use = ["bashcomps.zsh"] diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index d0e46ea..f463bf1 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -4,6 +4,4 @@ if test "x$TERMINALNAME" = "xalacritty"; then eval "$(zellij setup --generate-au potentialBanner=('bofh; echo " - BOFH"' 'fastfetch' 'hackerquotes' 'colorscript random') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" -() { test -r $1 && source $1 } "$XDG_CACHE_HOME"/p10k-instant-prompt-$USERNAME.zsh - eval "$(sheldon source)" From 0ccc378d0c0e8c75e2ad16ea318273cf2b88c4ee Mon Sep 17 00:00:00 2001 From: eeleater Date: Mon, 16 Jan 2023 10:32:48 +0100 Subject: [PATCH 11/87] update files --- dot_config/zsh/files/bashcomps.zsh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 dot_config/zsh/files/bashcomps.zsh diff --git a/dot_config/zsh/files/bashcomps.zsh b/dot_config/zsh/files/bashcomps.zsh new file mode 100644 index 0000000..7c9b85c --- /dev/null +++ b/dot_config/zsh/files/bashcomps.zsh @@ -0,0 +1,11 @@ +if (( ${+commands[distrobox]} )); then + source /usr/share/bash-completion/completions/distrobox + source /usr/share/bash-completion/completions/distrobox-create + source /usr/share/bash-completion/completions/distrobox-enter + source /usr/share/bash-completion/completions/distrobox-ephemeral + source /usr/share/bash-completion/completions/distrobox-generate-entry + source /usr/share/bash-completion/completions/distrobox-list + source /usr/share/bash-completion/completions/distrobox-rm + source /usr/share/bash-completion/completions/distrobox-stop + source /usr/share/bash-completion/completions/distrobox-upgrade +fi From 4803e74e774acb3470a8cd1b83d479b93f849822 Mon Sep 17 00:00:00 2001 From: eeleater Date: Sat, 11 Feb 2023 21:48:34 +0100 Subject: [PATCH 12/87] Update .config/sheldon/plugins.toml Update .config/zsh/rc.zsh --- dot_config/sheldon/plugins.toml | 2 +- dot_config/zsh/rc.zsh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index fadab1c..6bf13ef 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -105,7 +105,7 @@ github = "romkatv/powerlevel10k" #inline = "_evalcache starship init zsh --print-full-init" #[plugins.ohmyposh] -#inline = "_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json" +#inline = "_evalcache oh-my-posh init zsh" # evals [plugins.zoxide] diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index f463bf1..e90fcb8 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -1,7 +1,13 @@ 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"' 'fastfetch' 'hackerquotes' 'colorscript random') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" +# ohmyposh theme +potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'chips.omp.json' '1_shell.omp.json' 'honukai.omp.json' 'if_tea.omp.json' 'illusi0n.omp.json' 'kali.omp.json' 'lambda.omp.json' 'lambdageneration.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json' 'tokyo.omp.json') +export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" + +# and source plugins eval "$(sheldon source)" From 7984b858c7f7bf1fb8db2d749e0691bbe5f06d1d Mon Sep 17 00:00:00 2001 From: eeleater Date: Mon, 13 Feb 2023 13:36:19 +0100 Subject: [PATCH 13/87] Update .config/sheldon/plugins.toml Update .config/zsh/rc.zsh --- dot_config/sheldon/plugins.toml | 11 +++++++---- dot_config/zsh/rc.zsh | 4 +++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 6bf13ef..a3c6841 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -80,6 +80,9 @@ github = "MichaelAquilina/zsh-you-should-use" [plugins.autosuggestions] github = "zsh-users/zsh-autosuggestions" +#[plugins.autocomplete] +#github = "marlonrichert/zsh-autocomplete" + [plugins.syntaxhighlighting] github = "zsh-users/zsh-syntax-highlighting" @@ -98,14 +101,14 @@ local = "~/.config/zsh/files/" use = ["sshcomp.zsh"] # themes -[plugins.powerlevel10k] -github = "romkatv/powerlevel10k" +#[plugins.powerlevel10k] +#github = "romkatv/powerlevel10k" #[plugins.starship] #inline = "_evalcache starship init zsh --print-full-init" -#[plugins.ohmyposh] -#inline = "_evalcache oh-my-posh init zsh" +[plugins.ohmyposh] +inline = "_evalcache oh-my-posh init zsh" # evals [plugins.zoxide] diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index e90fcb8..44de57c 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -6,7 +6,9 @@ potentialBanner=('bofh; echo " - BOFH"' 'fastfetch' 'hackerquotes' 'colorscript eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" # ohmyposh theme -potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'chips.omp.json' '1_shell.omp.json' 'honukai.omp.json' 'if_tea.omp.json' 'illusi0n.omp.json' 'kali.omp.json' 'lambda.omp.json' 'lambdageneration.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json' 'tokyo.omp.json') +potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'chips.omp.json' '1_shell.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json') +export POSH_TOOLTIP=false +export POSH_TRANSIENT=true export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" # and source plugins From 4c06448dc1b00f594a8289dcf42cb6c6582e519c Mon Sep 17 00:00:00 2001 From: eeleater Date: Tue, 14 Feb 2023 10:54:20 +0100 Subject: [PATCH 14/87] Update .config/zsh/rc.zsh --- dot_config/zsh/rc.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index 44de57c..591b4c8 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -6,7 +6,7 @@ potentialBanner=('bofh; echo " - BOFH"' 'fastfetch' 'hackerquotes' 'colorscript eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" # ohmyposh theme -potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'chips.omp.json' '1_shell.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json') +potentialTheme=('emodipt-extend.omp.json' '1_shell.omp.json' 'kali.omp.json' 'lambda.omp.json' 'pure.omp.json') export POSH_TOOLTIP=false export POSH_TRANSIENT=true export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" From 5e4c2c1577310bc554fe5a5ea03d07430cdf8505 Mon Sep 17 00:00:00 2001 From: eeleater Date: Tue, 7 Mar 2023 08:57:34 +0100 Subject: [PATCH 15/87] update files --- dot_config/kitty/current-theme.conf | 53 ++++++++++++----------------- dot_config/kitty/kitty.conf | 2 +- dot_config/sheldon/plugins.toml | 42 +++++++---------------- dot_config/zsh/env.zsh | 27 ++++++--------- dot_config/zsh/files/evalstuff.zsh | 14 ++++++++ dot_config/zsh/rc.zsh | 7 +--- 6 files changed, 59 insertions(+), 86 deletions(-) create mode 100644 dot_config/zsh/files/evalstuff.zsh diff --git a/dot_config/kitty/current-theme.conf b/dot_config/kitty/current-theme.conf index 2cdbb2f..05674b0 100644 --- a/dot_config/kitty/current-theme.conf +++ b/dot_config/kitty/current-theme.conf @@ -1,32 +1,21 @@ -# One Dark by Giuseppe Cesarano, https://github.com/GiuseppeCesarano -# This work is licensed under the terms of the GPL-2.0 license. -# For a copy, see https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html. - -# Colors - -foreground #979eab -background #282c34 - -color0 #282c34 -color1 #e06c75 -color2 #98c379 -color3 #e5c07b -color4 #61afef -color5 #be5046 -color6 #56b6c2 -color7 #979eab -color8 #393e48 -color9 #d19a66 -color10 #56b6c2 -color11 #e5c07b -color12 #61afef -color13 #be5046 -color14 #56b6c2 -color15 #abb2bf - -# Tab Bar - -active_tab_foreground #282c34 -active_tab_background #979eab -inactive_tab_foreground #abb2bf -inactive_tab_background #282c34 +background #202745 +foreground #969cb3 +cursor #969cb3 +selection_background #5e6686 +color0 #202745 +color8 #6a7394 +color1 #c84821 +color9 #c76a28 +color2 #ab9639 +color10 #283256 +color3 #c08a2f +color11 #5e6686 +color4 #3d8ed0 +color12 #898ea3 +color5 #6678cc +color13 #dee1f0 +color6 #21a1c8 +color14 #9c6279 +color7 #969cb3 +color15 #f4f7ff +selection_foreground #202745 diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index 7b2cb36..a3fb779 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -10,6 +10,6 @@ shell_integration enabled font_family FiraCode Nerd Font # BEGIN_KITTY_THEME -# One Dark +# Atelier Sulphurpool include current-theme.conf # END_KITTY_THEME diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index a3c6841..2709249 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -1,13 +1,8 @@ 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 %}""" +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 [plugins.localenv] @@ -18,9 +13,9 @@ use = ["env.zsh"] local = "~/.config/zsh/" use = [".p10k.zsh"] -[plugins.ownfiles] +[plugins.compinit] local = "~/.config/zsh/files/" -use = ["{compinit,aliases,functions,distroicon}.zsh"] +use = ["compinit.zsh"] # completions [plugins.completions] @@ -34,12 +29,12 @@ github = "trapd00r/LS_COLORS" [plugins.zshdefer] github = "romkatv/zsh-defer" -[plugins.ohmyzshlib] +[plugins.omzlib] github = "ohmyzsh/ohmyzsh" dir = "lib" use = ["{completion,key-bindings,history,directories}.zsh"] -[plugins.ohmyzshplugins] +[plugins.omzplugins] github = "ohmyzsh/ohmyzsh" dir = "plugins" use = ["{systemd,fzf,command-not-found,transfer}/*.plugin.zsh"] @@ -104,27 +99,14 @@ use = ["sshcomp.zsh"] #[plugins.powerlevel10k] #github = "romkatv/powerlevel10k" -#[plugins.starship] -#inline = "_evalcache starship init zsh --print-full-init" - -[plugins.ohmyposh] -inline = "_evalcache oh-my-posh init zsh" - # evals -[plugins.zoxide] -inline = "_evalcache zoxide init --cmd cd zsh" +[plugins.evalstuff] +local = "~/.config/zsh/files/" +use = ["evalstuff.zsh"] -[plugins.atuin] -inline = "_evalcache atuin init zsh" - -[plugins.navi] -inline = "_evalcache navi widget zsh" - -[plugins.direnv] -inline = "_evalcache direnv hook zsh" - -[plugins.keychain] -inline = 'eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"' +[plugins.ownfiles] +local = "~/.config/zsh/files/" +use = ["{aliases,functions,distroicon}.zsh"] [plugins.bashcomps] local = "~/.config/zsh/files/" diff --git a/dot_config/zsh/env.zsh b/dot_config/zsh/env.zsh index 8d71a50..4d7275f 100644 --- a/dot_config/zsh/env.zsh +++ b/dot_config/zsh/env.zsh @@ -1,16 +1,13 @@ # path export PATH="$HOME"/.local/bin:"$PATH" -# ibus specific -export GTK_IM_MODULE=ibus -export QT_IM_MODULE=ibus -export XMODIFIERS=@im=ibus - # xdg stuff -export XDG_DATA_HOME="$HOME"/.local/share -export XDG_CONFIG_HOME="$HOME"/.config -export XDG_STATE_HOME="$HOME"/.local/state export XDG_CACHE_HOME="$HOME"/.cache +export XDG_CONFIG_HOME="$HOME"/.config +export XDG_CONFIG_DIRS=/etc/xdg +export XDG_DATA_HOME="$HOME"/.local/share +export XDG_DATA_DIRS=/usr/local/share:/usr/share +export XDG_STATE_HOME="$HOME"/.local/state export XDG_DESKTOP_DIR=$HOME/Desktop export XDG_DOCUMENTS_DIR="$HOME"/Documents export XDG_DOWNLOAD_DIR="$HOME"/Downloads @@ -19,10 +16,6 @@ export XDG_PICTURES_DIR="$HOME"/Pictures export XDG_VIDEOS_DIR="$HOME"/Videos export XDG_PROJECTS_DIR="$XDG_DOCUMENTS_DIR"/projects -# system xdg stuff -export XDG_DATA_DIRS=/usr/local/share:/usr/share -export XDG_CONFIG_DIRS=/etc/xdg - # cache files export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages export ZSH_EVALCACHE_DIR="$XDG_CACHE_HOME"/evalcache @@ -43,24 +36,24 @@ export ASDF_DATA_DIR="$XDG_DATA_HOME"/asdf export NB_DIR="$XDG_DATA_HOME"/nb export DSTASK_GIT_REPO="$XDG_DATA_HOME"/dstask export WAKATIME_HOME="$XDG_DATA_HOME"/wakatime - -# gpg +export WINEPREFIX="$XDG_DATA_HOME"/wine #export GNUPGHOME="$XDG_DATA_HOME"/gnupg -export GPG_TTY="$TTY" # other programs export LESSHISTFILE="$XDG_STATE_HOME"/less/history export EDITOR=nvim export VISUAL="subl -w" export ZSH_WAKATIME_BIN=/usr/bin/wakatime +export PYTHONSTARTUP="/etc/python/pythonrc" # stuff export ZELLIJ_AUTO_ATTACH=true export ZELLIJ_AUTO_EXIT=true -export TERMINALNAME=$(fastfetch --pipe 2>/dev/null | grep -i terminal: | awk '{print $2}') +export TERMINALNAME=$(fastfetch --pipe 2>/dev/null | grep Terminal: | awk '{print $2}') # zsh specific -export SAVEHIST=$(( 1000 * 1000 )) +export SAVEHIST=$(( 100 * 1000 )) export HISTSIZE=$(( 1.2 * SAVEHIST )) export ZSH_CACHE_DIR="$XDG_CACHE_HOME"/zsh export HISTFILE="$ZSH_CACHE_DIR"/history +export GPG_TTY="$TTY" diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh new file mode 100644 index 0000000..a8dc4fe --- /dev/null +++ b/dot_config/zsh/files/evalstuff.zsh @@ -0,0 +1,14 @@ +# starship +# _evalcache starship init zsh --print-full-init + +# ohmyposh +potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json') +export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" +eval "$(ohmyposh init zsh)" + +# evalstuff +_evalcache zoxide init --cmd cd zsh +_evalcache atuin init zsh +_evalcache navi widget zsh +_evalcache direnv hook zsh +eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index 591b4c8..dd7732e 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -5,11 +5,6 @@ if test "x$TERMINALNAME" = "xalacritty"; then eval "$(zellij setup --generate-au potentialBanner=('bofh; echo " - BOFH"' 'fastfetch' 'hackerquotes' 'colorscript random') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" -# ohmyposh theme -potentialTheme=('emodipt-extend.omp.json' '1_shell.omp.json' 'kali.omp.json' 'lambda.omp.json' 'pure.omp.json') -export POSH_TOOLTIP=false -export POSH_TRANSIENT=true -export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" - # and source plugins eval "$(sheldon source)" + From 61c509bf7f185ba5e4f4281d47d6a520b044e4f2 Mon Sep 17 00:00:00 2001 From: eeleater Date: Wed, 8 Mar 2023 15:18:20 +0100 Subject: [PATCH 16/87] Add .config/zsh-abbr/user-abbreviations Update .config/zsh/env.zsh Update .config/zsh/files/evalstuff.zsh Remove .local/share/zsh/env.zsh.age --- dot_config/zsh-abbr/private_user-abbreviations | 8 ++++++++ dot_config/zsh/env.zsh | 3 ++- dot_config/zsh/files/evalstuff.zsh | 2 +- dot_local/share/zsh/encrypted_env.zsh.age | 12 ------------ 4 files changed, 11 insertions(+), 14 deletions(-) create mode 100644 dot_config/zsh-abbr/private_user-abbreviations delete mode 100644 dot_local/share/zsh/encrypted_env.zsh.age diff --git a/dot_config/zsh-abbr/private_user-abbreviations b/dot_config/zsh-abbr/private_user-abbreviations new file mode 100644 index 0000000..b6e2458 --- /dev/null +++ b/dot_config/zsh-abbr/private_user-abbreviations @@ -0,0 +1,8 @@ +abbr -g "g"="git" +abbr -g "git m"="git checkout main" +abbr -g "git rei"="git rebase -i" +abbr -g "git reim"="git rebase -i main" +abbr -g "git ri"="git rebase -i" +abbr "m"="git checkout main" +abbr "rei"="git rebase -i" +abbr "reim"="git rebase -i main" diff --git a/dot_config/zsh/env.zsh b/dot_config/zsh/env.zsh index 4d7275f..f3a4490 100644 --- a/dot_config/zsh/env.zsh +++ b/dot_config/zsh/env.zsh @@ -38,13 +38,14 @@ export DSTASK_GIT_REPO="$XDG_DATA_HOME"/dstask export WAKATIME_HOME="$XDG_DATA_HOME"/wakatime export WINEPREFIX="$XDG_DATA_HOME"/wine #export GNUPGHOME="$XDG_DATA_HOME"/gnupg +export W3M_DIR="$XDG_DATA_HOME"/w3m # other programs export LESSHISTFILE="$XDG_STATE_HOME"/less/history export EDITOR=nvim export VISUAL="subl -w" export ZSH_WAKATIME_BIN=/usr/bin/wakatime -export PYTHONSTARTUP="/etc/python/pythonrc" +export PYTHONSTARTUP=/etc/python/pythonrc # stuff export ZELLIJ_AUTO_ATTACH=true diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh index a8dc4fe..75b4618 100644 --- a/dot_config/zsh/files/evalstuff.zsh +++ b/dot_config/zsh/files/evalstuff.zsh @@ -1,5 +1,5 @@ # starship -# _evalcache starship init zsh --print-full-init +#_evalcache starship init zsh --print-full-init # ohmyposh potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json') diff --git a/dot_local/share/zsh/encrypted_env.zsh.age b/dot_local/share/zsh/encrypted_env.zsh.age deleted file mode 100644 index 7d0016c..0000000 --- a/dot_local/share/zsh/encrypted_env.zsh.age +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN AGE ENCRYPTED FILE----- -YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBQUHFPSUJkUGc0anhDVkli -VlFYNHBVUEpmZmtwdXBTSGdvdnIrSjM1M3pFCmdzWkhmVGcwckpoVXRyNjJnK01t -b0h3dVRHcDh2Q0psV1NQZ2pvYmRoSUUKLS0tIEdIVVFMQkl4enBhMHI0OU5KWGZC -aTlibTdVcWcwanduVXZ4MXMxS2xsWUEKpSA8zaN0Lpk3Mqce5kQmDktfRNT5SSW9 -u7k5jfk+7yzKocqiWKB3/GIdkFauNtFguyqeMy2BUq2VOE91wW/usgrOWiUHbulp -917pa72C72eGnSc1RcpXxyd5J6EqLXLIutJAxWPnKIZcQLQyj22YWT8pYnTibkGU -bodl1uZKrfEC7I013qr3hRdrbJAi3sAKmD76Ie2RCf2ubxqJxgOiAcgoZA44ArjC -Tw4KU1sKNzimm2MA4Hjf5/yYGOF00fo/DtuJtu1jHckyynK80Ppda/AcRfbE3ByC -My5ILbJ2/q0yMO9phMmOyC6kVomjgyFARAPQXAY6CZe0JdFIESbzz0yNbA7QKWKW -o59c ------END AGE ENCRYPTED FILE----- From 91fb60fbafff2c85af6caf7532012ecc6d01fb71 Mon Sep 17 00:00:00 2001 From: eeleater Date: Wed, 8 Mar 2023 15:21:09 +0100 Subject: [PATCH 17/87] add file back --- dot_local/share/zsh/encrypted_env.zsh.age | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dot_local/share/zsh/encrypted_env.zsh.age diff --git a/dot_local/share/zsh/encrypted_env.zsh.age b/dot_local/share/zsh/encrypted_env.zsh.age new file mode 100644 index 0000000..7d0016c --- /dev/null +++ b/dot_local/share/zsh/encrypted_env.zsh.age @@ -0,0 +1,12 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBQUHFPSUJkUGc0anhDVkli +VlFYNHBVUEpmZmtwdXBTSGdvdnIrSjM1M3pFCmdzWkhmVGcwckpoVXRyNjJnK01t +b0h3dVRHcDh2Q0psV1NQZ2pvYmRoSUUKLS0tIEdIVVFMQkl4enBhMHI0OU5KWGZC +aTlibTdVcWcwanduVXZ4MXMxS2xsWUEKpSA8zaN0Lpk3Mqce5kQmDktfRNT5SSW9 +u7k5jfk+7yzKocqiWKB3/GIdkFauNtFguyqeMy2BUq2VOE91wW/usgrOWiUHbulp +917pa72C72eGnSc1RcpXxyd5J6EqLXLIutJAxWPnKIZcQLQyj22YWT8pYnTibkGU +bodl1uZKrfEC7I013qr3hRdrbJAi3sAKmD76Ie2RCf2ubxqJxgOiAcgoZA44ArjC +Tw4KU1sKNzimm2MA4Hjf5/yYGOF00fo/DtuJtu1jHckyynK80Ppda/AcRfbE3ByC +My5ILbJ2/q0yMO9phMmOyC6kVomjgyFARAPQXAY6CZe0JdFIESbzz0yNbA7QKWKW +o59c +-----END AGE ENCRYPTED FILE----- From 91fd40cfce69f8717d5e7d31c5cb0233684535bc Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 9 Mar 2023 11:52:03 +0100 Subject: [PATCH 18/87] Update .config/kitty/current-theme.conf Update .config/kitty/kitty.conf --- dot_config/kitty/current-theme.conf | 42 ++++++++++++++--------------- dot_config/kitty/kitty.conf | 2 +- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/dot_config/kitty/current-theme.conf b/dot_config/kitty/current-theme.conf index 05674b0..df8f4ee 100644 --- a/dot_config/kitty/current-theme.conf +++ b/dot_config/kitty/current-theme.conf @@ -1,21 +1,21 @@ -background #202745 -foreground #969cb3 -cursor #969cb3 -selection_background #5e6686 -color0 #202745 -color8 #6a7394 -color1 #c84821 -color9 #c76a28 -color2 #ab9639 -color10 #283256 -color3 #c08a2f -color11 #5e6686 -color4 #3d8ed0 -color12 #898ea3 -color5 #6678cc -color13 #dee1f0 -color6 #21a1c8 -color14 #9c6279 -color7 #969cb3 -color15 #f4f7ff -selection_foreground #202745 +background #241200 +foreground #ddc165 +cursor #e5591c +selection_background #e5591c +color0 #000000 +color8 #7e6954 +color1 #d5252b +color9 #e4591b +color2 #909b00 +color10 #bfc659 +color3 #bd8a13 +color11 #ffca1b +color4 #4698a2 +color12 #7cc9ce +color5 #8c4231 +color13 #d16349 +color6 #d98112 +color14 #e6a96b +color7 #ddc165 +color15 #ffe9a3 +selection_foreground #241200 diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index a3fb779..7cc50a9 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -10,6 +10,6 @@ shell_integration enabled font_family FiraCode Nerd Font # BEGIN_KITTY_THEME -# Atelier Sulphurpool +# Fun Forrest include current-theme.conf # END_KITTY_THEME From f3b70106b601c07a7635223956756a4190c0c1d1 Mon Sep 17 00:00:00 2001 From: eeleater Date: Sat, 11 Mar 2023 20:33:37 +0100 Subject: [PATCH 19/87] Remove .local/share/zsh/env.zsh.age --- dot_local/share/zsh/encrypted_env.zsh.age | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 dot_local/share/zsh/encrypted_env.zsh.age diff --git a/dot_local/share/zsh/encrypted_env.zsh.age b/dot_local/share/zsh/encrypted_env.zsh.age deleted file mode 100644 index 7d0016c..0000000 --- a/dot_local/share/zsh/encrypted_env.zsh.age +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN AGE ENCRYPTED FILE----- -YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBQUHFPSUJkUGc0anhDVkli -VlFYNHBVUEpmZmtwdXBTSGdvdnIrSjM1M3pFCmdzWkhmVGcwckpoVXRyNjJnK01t -b0h3dVRHcDh2Q0psV1NQZ2pvYmRoSUUKLS0tIEdIVVFMQkl4enBhMHI0OU5KWGZC -aTlibTdVcWcwanduVXZ4MXMxS2xsWUEKpSA8zaN0Lpk3Mqce5kQmDktfRNT5SSW9 -u7k5jfk+7yzKocqiWKB3/GIdkFauNtFguyqeMy2BUq2VOE91wW/usgrOWiUHbulp -917pa72C72eGnSc1RcpXxyd5J6EqLXLIutJAxWPnKIZcQLQyj22YWT8pYnTibkGU -bodl1uZKrfEC7I013qr3hRdrbJAi3sAKmD76Ie2RCf2ubxqJxgOiAcgoZA44ArjC -Tw4KU1sKNzimm2MA4Hjf5/yYGOF00fo/DtuJtu1jHckyynK80Ppda/AcRfbE3ByC -My5ILbJ2/q0yMO9phMmOyC6kVomjgyFARAPQXAY6CZe0JdFIESbzz0yNbA7QKWKW -o59c ------END AGE ENCRYPTED FILE----- From 68f100963b27766d9c933ac0c624ecdf913cf3b7 Mon Sep 17 00:00:00 2001 From: eeleater Date: Sat, 11 Mar 2023 20:35:24 +0100 Subject: [PATCH 20/87] Add .local/share/zsh/env.zsh.age --- dot_local/share/zsh/encrypted_env.zsh.age | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dot_local/share/zsh/encrypted_env.zsh.age diff --git a/dot_local/share/zsh/encrypted_env.zsh.age b/dot_local/share/zsh/encrypted_env.zsh.age new file mode 100644 index 0000000..7d0016c --- /dev/null +++ b/dot_local/share/zsh/encrypted_env.zsh.age @@ -0,0 +1,12 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBQUHFPSUJkUGc0anhDVkli +VlFYNHBVUEpmZmtwdXBTSGdvdnIrSjM1M3pFCmdzWkhmVGcwckpoVXRyNjJnK01t +b0h3dVRHcDh2Q0psV1NQZ2pvYmRoSUUKLS0tIEdIVVFMQkl4enBhMHI0OU5KWGZC +aTlibTdVcWcwanduVXZ4MXMxS2xsWUEKpSA8zaN0Lpk3Mqce5kQmDktfRNT5SSW9 +u7k5jfk+7yzKocqiWKB3/GIdkFauNtFguyqeMy2BUq2VOE91wW/usgrOWiUHbulp +917pa72C72eGnSc1RcpXxyd5J6EqLXLIutJAxWPnKIZcQLQyj22YWT8pYnTibkGU +bodl1uZKrfEC7I013qr3hRdrbJAi3sAKmD76Ie2RCf2ubxqJxgOiAcgoZA44ArjC +Tw4KU1sKNzimm2MA4Hjf5/yYGOF00fo/DtuJtu1jHckyynK80Ppda/AcRfbE3ByC +My5ILbJ2/q0yMO9phMmOyC6kVomjgyFARAPQXAY6CZe0JdFIESbzz0yNbA7QKWKW +o59c +-----END AGE ENCRYPTED FILE----- From c613de47534104e6695748a93b2d6bf3f1bc0cd6 Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 13 Apr 2023 09:35:21 +0200 Subject: [PATCH 21/87] Update .local/share/zsh/env.zsh --- dot_local/share/zsh/encrypted_env.zsh.age | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/dot_local/share/zsh/encrypted_env.zsh.age b/dot_local/share/zsh/encrypted_env.zsh.age index 7d0016c..c97af00 100644 --- a/dot_local/share/zsh/encrypted_env.zsh.age +++ b/dot_local/share/zsh/encrypted_env.zsh.age @@ -1,12 +1,12 @@ -----BEGIN AGE ENCRYPTED FILE----- -YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBQUHFPSUJkUGc0anhDVkli -VlFYNHBVUEpmZmtwdXBTSGdvdnIrSjM1M3pFCmdzWkhmVGcwckpoVXRyNjJnK01t -b0h3dVRHcDh2Q0psV1NQZ2pvYmRoSUUKLS0tIEdIVVFMQkl4enBhMHI0OU5KWGZC -aTlibTdVcWcwanduVXZ4MXMxS2xsWUEKpSA8zaN0Lpk3Mqce5kQmDktfRNT5SSW9 -u7k5jfk+7yzKocqiWKB3/GIdkFauNtFguyqeMy2BUq2VOE91wW/usgrOWiUHbulp -917pa72C72eGnSc1RcpXxyd5J6EqLXLIutJAxWPnKIZcQLQyj22YWT8pYnTibkGU -bodl1uZKrfEC7I013qr3hRdrbJAi3sAKmD76Ie2RCf2ubxqJxgOiAcgoZA44ArjC -Tw4KU1sKNzimm2MA4Hjf5/yYGOF00fo/DtuJtu1jHckyynK80Ppda/AcRfbE3ByC -My5ILbJ2/q0yMO9phMmOyC6kVomjgyFARAPQXAY6CZe0JdFIESbzz0yNbA7QKWKW -o59c +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBuejNoczI4YXlLM09qeUdj +TlZwTGZoZmdFWGFCc0VBdndaVmRHQkRPTGhrClZJczlTREZWOE8zeU1nWXV4VHJN +RzFxMTRJalMvOHJoOHdOeUlpZUk2WFUKLS0tIFRWc0N4cEhna3AwZS9aTG96NmZu +ZGJpTEY4TUE0RGhZZUt3M1VvK05wQ1kKWzhhQcMUOJpzLu5A82KjsUAePNfI/+VO +RJG+6IKZFc6BELtiE5ZComTYTRsSVpHzQRAbtKvlyIBi/DqWDlhf3SrgPotPWa91 +TARfRR388uZS/RmElqgUNQKg0YgxbRnXGXgukxV62PhZquZNttTqCJZWIMPb3/G6 +01NNQQMqyoAKKR9eUF/4oQnfrg7gD9Fpi7t/kfiY8hNWqayYQRZUvYPU7N2Qpun3 +VUtKoMpZGRhhCStRV0Vs0eZ+sY8N0cV1h0d2GNyEhgQTbHDOpP71OSBBDLIWfRCO +DBJ97H0oDAeegGhgJISEZwIdcXQCZduKZxwSh5U7iAvup7V3AYBaksWdoneffEei +dkHH -----END AGE ENCRYPTED FILE----- From 173be71c463d84f20925cf9ca4ce3a98c24952e2 Mon Sep 17 00:00:00 2001 From: eeleater Date: Mon, 17 Apr 2023 08:15:41 +0200 Subject: [PATCH 22/87] Update .config/kitty/kitty.conf Add .config/kitty/themes/embark.conf Add .config/kitty/themes/penumbra.conf Update .config/zsh/env.zsh --- dot_config/kitty/kitty.conf | 6 +- dot_config/kitty/themes/embark.conf | 53 ++++++++++++++++ dot_config/kitty/themes/penumbra.conf | 91 +++++++++++++++++++++++++++ dot_config/zsh/env.zsh | 1 + 4 files changed, 147 insertions(+), 4 deletions(-) create mode 100644 dot_config/kitty/themes/embark.conf create mode 100644 dot_config/kitty/themes/penumbra.conf diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index 7cc50a9..6122203 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -9,7 +9,5 @@ shell_integration enabled # Fonts font_family FiraCode Nerd Font -# BEGIN_KITTY_THEME -# Fun Forrest -include current-theme.conf -# END_KITTY_THEME +# Penumbra Theme +include themes/embark.conf diff --git a/dot_config/kitty/themes/embark.conf b/dot_config/kitty/themes/embark.conf new file mode 100644 index 0000000..aa45826 --- /dev/null +++ b/dot_config/kitty/themes/embark.conf @@ -0,0 +1,53 @@ +background #1E1C31 +foreground #CBE3E7 + +cursor #A1EFD3 + +selection_background #3E3859 +selection_foreground #CBE3E7 + +# black +color0 #1E1C31 +color8 #585273 + +# red +color1 #F48FB1 +color9 #F02E6E + +# green +color2 #A1EFD3 +color10 #7FE9C3 + +# yellow +color3 #FFE6B3 +color11 #F2B482 + +# blue +color4 #91DDFF +color12 #78A8FF + +# magenta +color5 #D4BFFF +color13 #7676FF + +# cyan +color6 #ABF8F7 +color14 #63F2F1 + +# white +color7 #CBE3E7 +color15 #8A889D + +active_border_color #A1EFD3 +inactive_border_color #585273 +bell_border_color #F56574 + +active_tab_foreground #2D2B40 +active_tab_background #63F2F1 +active_tab_font_style bold + +inactive_tab_foreground #CBE3E7 +inactive_tab_background #585273 +inactive_tab_font_style normal + +url_color #D4BFFF diff --git a/dot_config/kitty/themes/penumbra.conf b/dot_config/kitty/themes/penumbra.conf new file mode 100644 index 0000000..81e91cd --- /dev/null +++ b/dot_config/kitty/themes/penumbra.conf @@ -0,0 +1,91 @@ +# vim:ft=kitty + +## name: Penumbra +### license: MIT License +## blurb: Kitty terminal port of the dark Penumbra color theme +## by Neal McKee. https://github.com/nealmckee/penumbra +## This theme uses the balanced 7 colors plus sun and shade +## as well as the the contrast++ for the 16 color palette + +# Place this theme in your `~/.config/kitty/themes` directory +# and select it using `kitty +kitten themes` in the User menu + +#: The basic colors +#:sky +foreground #8F8F8F +#:shade +background #303338 +#:shade +selection_foreground #303338 +#:sun +selection_background #FFF7ED + +#: Cursor colors +#:sun +cursor #FFF7ED +#:shade +cursor_text_color #303338 + +#: URL underline color when hovering with mouse +#:blue +url_color #6E8DD5 + +#: The basic 16 colors +#: black +#: shade- balanced +color0 #24272B +#: shade- contrast++ +color8 #0D0F13 + +#: red +#: red balanced +color1 #CA736C +#: red contrast++ +color9 #F18AA1 + +#: green +#: green balanced +color2 #3EA57B +#: green contrast++ +color10 #58C792 + +#: yellow +#: yellow balanced +color3 #92963A +#: yellow contrast++ +color11 #B4B44A + +#: blue +#: blue balanced +color4 #6E8DD5 +#: blue contrast++ +color12 #83ADFF + +#: magenta (we replace with orange) +#: orange balanced +color5 #C27D40 +#: orange contrast++ +color13 #EA9856 + +#: cyan +#: cyan balanced +color6 #00A0BA +#: cyan contrast++ +color14 #16C3DD + +#: white +#: sun +color7 #FFF7ED +#: sun+ +color15 #FFFDFB + +# colors used by lsd +color187 #F2E6D4 +color230 #FFF7ED +color245 #636363 +color229 #8D9741 +color216 #BA823A +color172 #CA736C +color40 #54C794 +color42 #50B584 +color36 #47A477 diff --git a/dot_config/zsh/env.zsh b/dot_config/zsh/env.zsh index f3a4490..cf1c3b0 100644 --- a/dot_config/zsh/env.zsh +++ b/dot_config/zsh/env.zsh @@ -39,6 +39,7 @@ export WAKATIME_HOME="$XDG_DATA_HOME"/wakatime export WINEPREFIX="$XDG_DATA_HOME"/wine #export GNUPGHOME="$XDG_DATA_HOME"/gnupg export W3M_DIR="$XDG_DATA_HOME"/w3m +export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates # other programs export LESSHISTFILE="$XDG_STATE_HOME"/less/history From c9a5fad96c047e509b0b99403a5b49e1620d06fb Mon Sep 17 00:00:00 2001 From: eeleater Date: Tue, 18 Apr 2023 11:54:19 +0200 Subject: [PATCH 23/87] Update .config/zsh/env.zsh Update .config/zsh/rc.zsh --- dot_config/zsh/env.zsh | 2 +- dot_config/zsh/rc.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_config/zsh/env.zsh b/dot_config/zsh/env.zsh index cf1c3b0..1bc9e7a 100644 --- a/dot_config/zsh/env.zsh +++ b/dot_config/zsh/env.zsh @@ -44,7 +44,7 @@ export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates # other programs export LESSHISTFILE="$XDG_STATE_HOME"/less/history export EDITOR=nvim -export VISUAL="subl -w" +export VISUAL=kate export ZSH_WAKATIME_BIN=/usr/bin/wakatime export PYTHONSTARTUP=/etc/python/pythonrc diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index dd7732e..85b8181 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -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"' 'fastfetch' 'hackerquotes' 'colorscript random') +potentialBanner=('bofh; echo " - BOFH"' 'hackerquotes' 'colorscript random' 'fastfetch') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" # and source plugins From 8f593feffbf0a2ac78bbf673560001687d971116 Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 27 Apr 2023 08:11:58 +0200 Subject: [PATCH 24/87] Update .config/sheldon/plugins.toml Add .config/topgrade.toml Update .config/zsh/env.zsh Update .config/zsh/files/evalstuff.zsh Update .config/zsh/profile.zsh Update .config/zsh/rc.zsh --- dot_config/sheldon/plugins.toml | 3 + dot_config/topgrade.toml | 100 +++++++++++++++++++++++++++++ dot_config/zsh/env.zsh | 2 + dot_config/zsh/files/evalstuff.zsh | 1 + dot_config/zsh/profile.zsh | 1 + dot_config/zsh/rc.zsh | 2 +- 6 files changed, 108 insertions(+), 1 deletion(-) create mode 100644 dot_config/topgrade.toml diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 2709249..7b2c650 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -75,6 +75,9 @@ github = "MichaelAquilina/zsh-you-should-use" [plugins.autosuggestions] github = "zsh-users/zsh-autosuggestions" +[plugins.emoji-cli] +github = "b4b4r07/emoji-cli" + #[plugins.autocomplete] #github = "marlonrichert/zsh-autocomplete" diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml new file mode 100644 index 0000000..b0ae346 --- /dev/null +++ b/dot_config/topgrade.toml @@ -0,0 +1,100 @@ +# Don't ask for confirmations +#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"] + +# Show Preamble text +display_preamble = false + +# Ignore failures for these steps +#ignore_failures = ["powershell"] + +# Run specific steps - same options as the command line flag +#only = ["system", "emacs"] + +# Do not ask to retry failed steps (default: false) +#no_retry = true + +skip_notify = true +display_preamble = false + +# Run inside tmux +#run_in_tmux = true + +# List of remote machines with Topgrade installed on them +#remote_topgrades = ["toothless", "pi", "parnas"] + +# Arguments to pass SSH when upgrading remote systems +#ssh_arguments = "-o ConnectTimeout=2" + +# Path to Topgrade executable on remote machines +#remote_topgrade_path = ".cargo/bin/topgrade" + +# Arguments to pass tmux when pulling Repositories +#tmux_arguments = "-S /var/tmux.sock" + +# Do not set the terminal title +#set_title = false + +# Cleanup temporary or old files +#cleanup = true + +[git] +#max_concurrency = 5 + +# Additional git repositories to pull +#repos = [ "~/src/*/", "~/.config/something" ] + +# Don't pull the predefined git repos +#predefined_repos = false + +# Arguments to pass Git when pulling Repositories +#arguments = "--rebase --autostash" + +[composer] +#self_update = true + +# Commands to run before anything +[pre_commands] +#"Emacs Snapshot" = "rm -rf ~/.emacs.d/elpa.bak && cp -rl ~/.emacs.d/elpa ~/.emacs.d/elpa.bak" + +# Custom commands +[commands] +#"Bedrock: Check Updates" = "sudo brl update" +#"Bedrock: Check Strata" = "sudo pmm -Syyuu" +#"Distrobox: Update all" = "distrobox upgrade --all" + +[brew] +#greedy_cask = true + +[linux] +# Arguments to pass yay when updating packages +#yay_arguments = "--nodevel" +#trizen_arguments = "--devel" +#enable_tlmgr = true +#emerge_sync_flags = "-q" +#emerge_update_flags = "-uDNa --with-bdeps=y world" +#redhat_distro_sync = false +#rpm_ostree = false + +[windows] +# Manually select Windows updates +#accept_all_updates = false +#open_remotes_in_new_terminal = true + +# Causes Topgrade to rename itself during the run to allow package managers to upgrade it. +# Use this only if you installed Topgrade by using a package manager such as Scoop to Cargo +#self_rename = true + +[npm] +# Use sudo if the NPM directory isn't owned by the current user +#use_sudo = true + +[firmware] +# Offer to update firmware; if false just check for and display available updates +#upgrade = true + +[flatpak] +# Use sudo for updating the system-wide installation +#use_sudo = true diff --git a/dot_config/zsh/env.zsh b/dot_config/zsh/env.zsh index 1bc9e7a..554e0cd 100644 --- a/dot_config/zsh/env.zsh +++ b/dot_config/zsh/env.zsh @@ -1,3 +1,4 @@ +# kate: syntax zsh; # path export PATH="$HOME"/.local/bin:"$PATH" @@ -59,3 +60,4 @@ export HISTSIZE=$(( 1.2 * SAVEHIST )) export ZSH_CACHE_DIR="$XDG_CACHE_HOME"/zsh export HISTFILE="$ZSH_CACHE_DIR"/history export GPG_TTY="$TTY" +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" diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh index 75b4618..3fe1120 100644 --- a/dot_config/zsh/files/evalstuff.zsh +++ b/dot_config/zsh/files/evalstuff.zsh @@ -11,4 +11,5 @@ _evalcache zoxide init --cmd cd zsh _evalcache atuin init zsh _evalcache navi widget zsh _evalcache direnv hook zsh +_evalcache ntfy shell-integration eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" diff --git a/dot_config/zsh/profile.zsh b/dot_config/zsh/profile.zsh index 4e2652e..1786645 100644 --- a/dot_config/zsh/profile.zsh +++ b/dot_config/zsh/profile.zsh @@ -1 +1,2 @@ +# kate: syntax zsh; # create the file diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index 85b8181..35f1616 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -1,3 +1,4 @@ +# kate: syntax zsh; 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 @@ -7,4 +8,3 @@ eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" # and source plugins eval "$(sheldon source)" - From 36cfc43948e6fadb76309f019a2b7d605e571fbb Mon Sep 17 00:00:00 2001 From: eeleater Date: Tue, 2 May 2023 00:12:36 +0200 Subject: [PATCH 25/87] moved env.zsh to private repo --- dot_config/topgrade.toml | 6 +++--- dot_config/zsh/env.zsh | 2 +- dot_config/zsh/files/evalstuff.zsh | 2 +- dot_config/zsh/profile.zsh | 1 - dot_config/zsh/rc.zsh | 1 - dot_local/share/{zsh => }/bofh | 0 dot_local/share/zsh/encrypted_env.zsh.age | 12 ------------ 7 files changed, 5 insertions(+), 19 deletions(-) rename dot_local/share/{zsh => }/bofh (100%) delete mode 100644 dot_local/share/zsh/encrypted_env.zsh.age diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index b0ae346..f121c87 100644 --- a/dot_config/topgrade.toml +++ b/dot_config/topgrade.toml @@ -7,6 +7,9 @@ disable = ["firmware", "tldr", "pip3", "node", "vim", "git_repos", "containers", # Show Preamble text display_preamble = false +# Skip Notify +skip_notify = true + # Ignore failures for these steps #ignore_failures = ["powershell"] @@ -16,9 +19,6 @@ display_preamble = false # Do not ask to retry failed steps (default: false) #no_retry = true -skip_notify = true -display_preamble = false - # Run inside tmux #run_in_tmux = true diff --git a/dot_config/zsh/env.zsh b/dot_config/zsh/env.zsh index 554e0cd..dd96660 100644 --- a/dot_config/zsh/env.zsh +++ b/dot_config/zsh/env.zsh @@ -60,4 +60,4 @@ export HISTSIZE=$(( 1.2 * SAVEHIST )) export ZSH_CACHE_DIR="$XDG_CACHE_HOME"/zsh export HISTFILE="$ZSH_CACHE_DIR"/history export GPG_TTY="$TTY" -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" +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" diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh index 3fe1120..7ee1e1e 100644 --- a/dot_config/zsh/files/evalstuff.zsh +++ b/dot_config/zsh/files/evalstuff.zsh @@ -11,5 +11,5 @@ _evalcache zoxide init --cmd cd zsh _evalcache atuin init zsh _evalcache navi widget zsh _evalcache direnv hook zsh -_evalcache ntfy shell-integration +#_evalcache ntfy shell-integration eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" diff --git a/dot_config/zsh/profile.zsh b/dot_config/zsh/profile.zsh index 1786645..4e2652e 100644 --- a/dot_config/zsh/profile.zsh +++ b/dot_config/zsh/profile.zsh @@ -1,2 +1 @@ -# kate: syntax zsh; # create the file diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index 35f1616..0dc116d 100644 --- a/dot_config/zsh/rc.zsh +++ b/dot_config/zsh/rc.zsh @@ -1,4 +1,3 @@ -# kate: syntax zsh; 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 diff --git a/dot_local/share/zsh/bofh b/dot_local/share/bofh similarity index 100% rename from dot_local/share/zsh/bofh rename to dot_local/share/bofh diff --git a/dot_local/share/zsh/encrypted_env.zsh.age b/dot_local/share/zsh/encrypted_env.zsh.age deleted file mode 100644 index c97af00..0000000 --- a/dot_local/share/zsh/encrypted_env.zsh.age +++ /dev/null @@ -1,12 +0,0 @@ ------BEGIN AGE ENCRYPTED FILE----- -YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBuejNoczI4YXlLM09qeUdj -TlZwTGZoZmdFWGFCc0VBdndaVmRHQkRPTGhrClZJczlTREZWOE8zeU1nWXV4VHJN -RzFxMTRJalMvOHJoOHdOeUlpZUk2WFUKLS0tIFRWc0N4cEhna3AwZS9aTG96NmZu -ZGJpTEY4TUE0RGhZZUt3M1VvK05wQ1kKWzhhQcMUOJpzLu5A82KjsUAePNfI/+VO -RJG+6IKZFc6BELtiE5ZComTYTRsSVpHzQRAbtKvlyIBi/DqWDlhf3SrgPotPWa91 -TARfRR388uZS/RmElqgUNQKg0YgxbRnXGXgukxV62PhZquZNttTqCJZWIMPb3/G6 -01NNQQMqyoAKKR9eUF/4oQnfrg7gD9Fpi7t/kfiY8hNWqayYQRZUvYPU7N2Qpun3 -VUtKoMpZGRhhCStRV0Vs0eZ+sY8N0cV1h0d2GNyEhgQTbHDOpP71OSBBDLIWfRCO -DBJ97H0oDAeegGhgJISEZwIdcXQCZduKZxwSh5U7iAvup7V3AYBaksWdoneffEei -dkHH ------END AGE ENCRYPTED FILE----- From c601e754654a8a68924e5d297f7da4649b0f0758 Mon Sep 17 00:00:00 2001 From: eeleater Date: Tue, 2 May 2023 00:17:03 +0200 Subject: [PATCH 26/87] moved env.zsh to private repo --- .chezmoiexternal.toml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .chezmoiexternal.toml diff --git a/.chezmoiexternal.toml b/.chezmoiexternal.toml new file mode 100644 index 0000000..233b503 --- /dev/null +++ b/.chezmoiexternal.toml @@ -0,0 +1,3 @@ +[".local/share/zsh"] + type = "git-repo" + url = "git@git.eeleater.org:eeleater/dotfiles_private.git" From 94ef22b62904246bd622bfef525b7358fad6fba2 Mon Sep 17 00:00:00 2001 From: eeleater Date: Tue, 2 May 2023 00:22:27 +0200 Subject: [PATCH 27/87] moved env.zsh to private repo --- .chezmoiexternal.toml | 2 +- dot_config/sheldon/plugins.toml | 2 +- dot_local/bin/executable_bofh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.chezmoiexternal.toml b/.chezmoiexternal.toml index 233b503..0686ab9 100644 --- a/.chezmoiexternal.toml +++ b/.chezmoiexternal.toml @@ -1,3 +1,3 @@ -[".local/share/zsh"] +[".local/share/zsh/config"] type = "git-repo" url = "git@git.eeleater.org:eeleater/dotfiles_private.git" diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 7b2c650..bba71ef 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -6,7 +6,7 @@ defer-more = """{% for file in files %} zsh-defer -t 0.5 source "{{ file }}" {% # own files [plugins.localenv] -local = "~/.local/share/zsh/" +local = "~/.local/share/zsh/config" use = ["env.zsh"] [plugins.p10kconfig] diff --git a/dot_local/bin/executable_bofh b/dot_local/bin/executable_bofh index d1ca04e..14f1a51 100644 --- a/dot_local/bin/executable_bofh +++ b/dot_local/bin/executable_bofh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -excuses_file="$HOME/.local/share/zsh/bofh" +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 From 5b8b457d3cff261d35a821b73dd5e923f1f9e0d3 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 2 May 2023 10:01:13 +0200 Subject: [PATCH 28/87] 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" From a24f7fef97a86ecf25eaefc718daee4a24eddf56 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Fri, 5 May 2023 11:21:18 +0200 Subject: [PATCH 29/87] Update .config/sheldon/plugins.toml Update .config/topgrade.toml Update .config/zsh/files/sshcomp.zsh --- dot_config/sheldon/plugins.toml | 3 --- dot_config/topgrade.toml | 2 +- dot_config/zsh/files/sshcomp.zsh | 12 ++++++++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index bba71ef..7b2e82d 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -87,9 +87,6 @@ github = "zsh-users/zsh-syntax-highlighting" [plugins.asdf] github = "asdf-vm/asdf" -[plugins.hoco] -github = "Felixoid/zsh-hoco" - [plugins.abbr] github = "olets/zsh-abbr" use = ["zsh-abbr.zsh"] diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index f121c87..0722fae 100644 --- a/dot_config/topgrade.toml +++ b/dot_config/topgrade.toml @@ -2,7 +2,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"] +disable = ["firmware", "tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo"] # Show Preamble text display_preamble = false diff --git a/dot_config/zsh/files/sshcomp.zsh b/dot_config/zsh/files/sshcomp.zsh index 3984595..33fc146 100644 --- a/dot_config/zsh/files/sshcomp.zsh +++ b/dot_config/zsh/files/sshcomp.zsh @@ -10,3 +10,15 @@ zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:users' ignored-patterns '*' zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-host' ignored-patterns '*(.|:)*' loopback localhost broadcasthost 'ip6-*' 'hbz*' zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*.eeleater.org' '*.hbz-nrw.de' zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.*' '255.255.255.255' '::1' 'fe80::*' 'ff02::*' + +[ -r ~/.ssh/config ] && _ssh_config=($(cat ~/.ssh/config | sed -ne 's/Host[=\t ]//p')) || _ssh_config=() +[ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$( Date: Fri, 5 May 2023 14:59:16 +0200 Subject: [PATCH 30/87] Update .config/topgrade.toml --- dot_config/topgrade.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index 0722fae..97d04f1 100644 --- a/dot_config/topgrade.toml +++ b/dot_config/topgrade.toml @@ -2,7 +2,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"] +disable = ["firmware", "tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes"] # Show Preamble text display_preamble = false @@ -23,7 +23,7 @@ skip_notify = true #run_in_tmux = true # List of remote machines with Topgrade installed on them -#remote_topgrades = ["toothless", "pi", "parnas"] +remote_topgrades = ["chat", "db", "git", "java", "kali", "mail", "misc", "mon", "salt"] # Arguments to pass SSH when upgrading remote systems #ssh_arguments = "-o ConnectTimeout=2" From 011d8586ae3c7d500b868c6b7701704519a3e93f Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Fri, 5 May 2023 15:03:09 +0200 Subject: [PATCH 31/87] updated sheldon zsh config --- dot_config/topgrade.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index 97d04f1..d8d34d8 100644 --- a/dot_config/topgrade.toml +++ b/dot_config/topgrade.toml @@ -29,7 +29,7 @@ remote_topgrades = ["chat", "db", "git", "java", "kali", "mail", "misc", "mon", #ssh_arguments = "-o ConnectTimeout=2" # Path to Topgrade executable on remote machines -#remote_topgrade_path = ".cargo/bin/topgrade" +remote_topgrade_path = ".local/bin/topgrade" # Arguments to pass tmux when pulling Repositories #tmux_arguments = "-S /var/tmux.sock" From 6b7cca216808bdcfca557aca9056950393124872 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Fri, 12 May 2023 09:23:17 +0200 Subject: [PATCH 32/87] updated sheldon zsh config --- dot_config/sheldon/plugins.toml | 6 +++--- dot_config/topgrade.toml | 2 +- dot_config/zsh/dot_zshenv | 4 +++- dot_config/zsh/files/functions.zsh | 5 +++++ 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 7b2e82d..8319c98 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -5,6 +5,9 @@ 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 +[plugins.disableflow] +inline = 'stty -ixon' + [plugins.localenv] local = "~/.local/share/zsh/config" use = ["env.zsh"] @@ -75,9 +78,6 @@ github = "MichaelAquilina/zsh-you-should-use" [plugins.autosuggestions] github = "zsh-users/zsh-autosuggestions" -[plugins.emoji-cli] -github = "b4b4r07/emoji-cli" - #[plugins.autocomplete] #github = "marlonrichert/zsh-autocomplete" diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index d8d34d8..582d2e9 100644 --- a/dot_config/topgrade.toml +++ b/dot_config/topgrade.toml @@ -23,7 +23,7 @@ skip_notify = true #run_in_tmux = true # List of remote machines with Topgrade installed on them -remote_topgrades = ["chat", "db", "git", "java", "kali", "mail", "misc", "mon", "salt"] +remote_topgrades = ["chat", "db", "git", "java", "kali", "mail", "misc", "mon"] # Arguments to pass SSH when upgrading remote systems #ssh_arguments = "-o ConnectTimeout=2" diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index b0576df..0235917 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -1,4 +1,5 @@ -# path +# deduplicate path and add local bin to path +typeset -U path PATH export PATH="$HOME"/.local/bin:"$PATH" # xdg stuff @@ -27,6 +28,7 @@ export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java export GDBHISTFILE="$XDG_CONFIG_HOME"/gdb/history +export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc # data files export XCURSOR_PATH=/usr/share/icons:"$XDG_DATA_HOME"/icons diff --git a/dot_config/zsh/files/functions.zsh b/dot_config/zsh/files/functions.zsh index 6a40a2f..51af6bf 100644 --- a/dot_config/zsh/files/functions.zsh +++ b/dot_config/zsh/files/functions.zsh @@ -6,6 +6,11 @@ pet_select () { zle -N pet_select bindkey '^l' pet_select +pet_add_prev () { + PREV=$(fc -lrn | head -n 1) + sh -c "pet new $(printf %q "$PREV")" +} + run_ranger () { echo ranger < $TTY From 0d384685b952a7cb7e59a09d984adb2876656310 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 17 May 2023 14:49:50 +0200 Subject: [PATCH 33/87] updated sheldon zsh config --- dot_config/zsh/files/evalstuff.zsh | 6 +- dot_config/zsh/files/mal.zsh | 195 +++++++++++++++++++++++++++++ 2 files changed, 200 insertions(+), 1 deletion(-) create mode 100644 dot_config/zsh/files/mal.zsh diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh index 7ee1e1e..95e4139 100644 --- a/dot_config/zsh/files/evalstuff.zsh +++ b/dot_config/zsh/files/evalstuff.zsh @@ -3,7 +3,11 @@ # ohmyposh potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json') -export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" +if (( ${+commands[brew]} )); then + export POSH_THEME="$(brew --prefix oh-my-posh)/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" +else + export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" +fi eval "$(ohmyposh init zsh)" # evalstuff diff --git a/dot_config/zsh/files/mal.zsh b/dot_config/zsh/files/mal.zsh new file mode 100644 index 0000000..fc14d7d --- /dev/null +++ b/dot_config/zsh/files/mal.zsh @@ -0,0 +1,195 @@ +export ALIASES_FILE="$XDG_CONFIG_HOME"/aliasesrc + +function mal { + # Use fzf to allow the user to select an alias from the aliases file + function _execute_alias { + local alias_to_execute=$(cut -d' ' -f2- "$ALIASES_FILE" | fzf) + + # Check if the user cancelled the selection + test -z $alias_to_execute && return 1 + + echo "Executing alias: $alias_to_execute" + # Execute the selected alias + eval ${alias_to_execute%%=*} + return 0 + } + + # Delete an existing alias by selecting it from a list + function _interactive_delete { + local alias_to_delete=$(cut -d' ' -f2- "$ALIASES_FILE" | fzf) + + # Check if the user cancelled the selection + test -z $alias_to_delete && return 1 + + echo "Deleted alias: $alias_to_delete" + # Delete the selected alias from the aliases file + sed -i "/^alias ${alias_to_delete%%=*}=/d" "$ALIASES_FILE" + unalias ${alias_to_delete%%=*} + } + + # Delete an existing alias using specified name + function _parameter_delete { + local alias_to_delete=$1 + local line_with_alias=$(grep "$1=" "$ALIASES_FILE") + + # Check if the alias exists in the aliases file + if test -z "$line_with_alias"; then + echo "No alias with the name $1 found." + return 2 + fi + + echo "Deleted alias: $alias_to_delete" + # Delete the selected alias from the aliases file + sed -i "/^alias ${alias_to_delete%%=*}=/d" "$ALIASES_FILE" + unalias ${alias_to_delete%%=*} + } + + # Rename an existing alias by selecting it from a list + function _interactive_rename { + local alias_to_rename=$(cut -d' ' -f2- "$ALIASES_FILE" | fzf) + + # Check if the user cancelled the selection + test -z $alias_to_rename && return 1 + + echo "Input new name:" + read new_name + echo "Renaming alias from $alias_to_rename to $new_name" + sed -i "s/^alias ${alias_to_rename%%=*}=/alias ${new_name}=/g" "$ALIASES_FILE" + unalias ${alias_to_rename%%=*} + } + + # Rename an existing alias using specified old and new names + function _parameter_rename { + local old_alias_name=$1 + local new_alias_name=$2 + local line_with_alias=$(grep "^alias ${old_alias_name}=" "$ALIASES_FILE") + + if test -z "$line_with_alias"; then + echo "No alias with the name $old_alias_name found." + return 1 + fi + + echo "Renaming alias from $old_alias_name to $new_alias_name" + sed -i "s/^alias ${old_alias_name}=/alias ${new_alias_name}=/g" "$ALIASES_FILE" + unalias ${old_alias_name} + } + + # Change the command associated with an existing alias by selecting it from a list + function _interactive_command_change { + local alias_to_change=$(cut -d' ' -f2- "$ALIASES_FILE" | fzf) + + # Check if the user cancelled the selection + test -z $alias_to_change && return 1 + + echo "Input new command:" + read new_command + echo "Changing command for alias ${alias_to_change%%=*} to \"$new_command\"" + sed -i "/^alias ${alias_to_change%%=*}=/{s/=.*/=\"$new_command\"/}" "$ALIASES_FILE" + } + + # Change the command associated with an existing alias using specified name and command + function _parameter_command_change { + local alias_to_change=$1 + local new_command="${@:2}" + local line_with_alias=$(grep "$alias_to_change=" "$ALIASES_FILE") + + if test -z "$line_with_alias"; then + echo "No alias with the name $alias_to_change found." + return 1 + fi + + echo "Changing command for alias $alias_to_change to \"$new_command\"" + sed -i "/^alias ${alias_to_change}=/{s/=.*/=\"$new_command\"/}" "$ALIASES_FILE" + } + + # Add a new alias + function _add_command { + local line_with_alias=$(grep "$1=" "$ALIASES_FILE") + + if test ! -z "$line_with_alias"; then + echo "Alias found: $line_with_alias; change alias by using the -c flag." + return 1 + fi + + local lh="alias $1" + local rh=\"${@:2}\" + local alias_str="$lh=$rh" + + echo $alias_str >>"$ALIASES_FILE" + echo "added '$alias_str' to .aliases" + } + + # List all aliases from the aliases file + function _list_aliases { + cut -d' ' -f2- "$ALIASES_FILE" | command cat + } + + # ============================================================================================================================================================== + + action="$1" + param1="$2" + param2="$3" + + # Check if the user has provided a help option or no arguments + helpParams=('-h' '--help' '-help') + if (($helpParams[(Ie)$action])) || test $# -eq 0; then + # Display usage information + echo "Usage: mal [OPTION]... [ALIAS_NAME] [ALIAS_COMMAND]..." + echo "" + echo "Create, delete, change, or execute aliases interactively." + echo "" + echo "Options:" + echo " -h, --help display this help and exit" + echo " -l list all defined aliases" + echo " -e execute an alias interactively" + echo " -d delete an alias interactively" + echo " -dn NAME delete an alias by name" + echo " -r rename an alias interactively" + echo " -rn OLD NEW rename an existing alias" + echo " -c change the command associated with an existing alias interactively" + echo " -cc NAME COMMAND change the command associated with an existing alias by name" + return 0 + fi + + case "$action" in + "-e") + # Execute an alias interactively + _execute_alias + ;; + "-l") + # List all aliases + _list_aliases + ;; + "-d") + # Delete an alias interactively + _interactive_delete + ;; + "-dn") + # Delete an alias using a parameter + _parameter_delete "$param1" + ;; + "-r") + # rename an alias interactively + _interactive_rename + ;; + "-rn") + # rename an alias using parameters + _parameter_rename "$param1" "$param2" + ;; + "-c") + # change a command interactively + _interactive_command_change + ;; + "-cc") + # change a command using parameters + _parameter_command_change "$param1" "$param2" + ;; + *) + # add a new command + _add_command "$action" "$param1" + ;; + esac + + # Reload aliases + source "$ALIASES_FILE" +} From 0084e63150f474d4a9eccccd55f5024623462d1b Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 20 Jun 2023 11:26:13 +0200 Subject: [PATCH 34/87] updated sheldon zsh config --- dot_config/sheldon/plugins.toml | 7 ------- dot_config/zsh/dot_zshenv | 3 ++- dot_config/zsh/dot_zshrc | 6 +++--- dot_config/zsh/files/evalstuff.zsh | 2 +- dot_local/bin/executable_dadjoke | 5 +++++ 5 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 dot_local/bin/executable_dadjoke diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 8319c98..f14fe7f 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -1,9 +1,5 @@ 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 [plugins.disableflow] inline = 'stty -ixon' @@ -29,9 +25,6 @@ github = "zsh-users/zsh-completions" github = "trapd00r/LS_COLORS" # plugins -[plugins.zshdefer] -github = "romkatv/zsh-defer" - [plugins.omzlib] github = "ohmyzsh/ohmyzsh" dir = "lib" diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index 0235917..80a93d8 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -46,7 +46,7 @@ export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates # other programs export LESSHISTFILE="$XDG_STATE_HOME"/less/history export EDITOR=nvim -export VISUAL=kate +#export VISUAL=kate export ZSH_WAKATIME_BIN=/usr/bin/wakatime export PYTHONSTARTUP=/etc/python/pythonrc @@ -61,4 +61,5 @@ export HISTSIZE=$(( 1.2 * SAVEHIST )) export ZSH_CACHE_DIR="$XDG_CACHE_HOME"/zsh export HISTFILE="$ZSH_CACHE_DIR"/history 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" diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index d1b3373..e2cc8ec 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -1,8 +1,8 @@ -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 +test -v DISTROBOX_HOST_HOME && { unset ZDOTDIR; exec zsh } # fix distrobox +test "x$TERMINALNAME" = "xalacritty" && eval "$(zellij setup --generate-auto-start zsh)" # autostart zellij only in alacritty # startup banner -potentialBanner=('bofh' 'hackerquotes' 'colorscript random' 'fastfetch') +potentialBanner=('bofh' 'hackerquotes' 'dadjoke' 'colorscript random' 'fastfetch') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" # and source plugins diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh index 95e4139..6e1df30 100644 --- a/dot_config/zsh/files/evalstuff.zsh +++ b/dot_config/zsh/files/evalstuff.zsh @@ -8,7 +8,7 @@ if (( ${+commands[brew]} )); then else export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" fi -eval "$(ohmyposh init zsh)" +eval "$(oh-my-posh init zsh)" # evalstuff _evalcache zoxide init --cmd cd zsh diff --git a/dot_local/bin/executable_dadjoke b/dot_local/bin/executable_dadjoke new file mode 100644 index 0000000..dc5f1d0 --- /dev/null +++ b/dot_local/bin/executable_dadjoke @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +joke=$(curl -sH "Accept: text/plain" 'https://icanhazdadjoke.com/') +echo "Daily Dadjoke: $joke" + From f77cf782a7001a6623d38d34071d56dfd89a4a50 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 20 Jun 2023 11:59:34 +0200 Subject: [PATCH 35/87] updated sheldon zsh config --- dot_config/zsh/files/evalstuff.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh index 6e1df30..1eeba07 100644 --- a/dot_config/zsh/files/evalstuff.zsh +++ b/dot_config/zsh/files/evalstuff.zsh @@ -5,6 +5,8 @@ potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json') if (( ${+commands[brew]} )); then export POSH_THEME="$(brew --prefix oh-my-posh)/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" +elif test "$(cat /etc/os-release | grep '^ID=' | cut -d'=' -f2)" = "nixos"; then + export POSH_THEME="/run/current-system/sw/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" else export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" fi From cf6e3e3d5080130157a8f00639a9c9afe489448d Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Fri, 7 Jul 2023 10:41:57 +0200 Subject: [PATCH 36/87] changed kitty config --- dot_config/kitty/current-theme.conf | 74 +++++++++++++++++++++-------- dot_config/kitty/kitty.conf | 6 +++ 2 files changed, 59 insertions(+), 21 deletions(-) diff --git a/dot_config/kitty/current-theme.conf b/dot_config/kitty/current-theme.conf index df8f4ee..aa45826 100644 --- a/dot_config/kitty/current-theme.conf +++ b/dot_config/kitty/current-theme.conf @@ -1,21 +1,53 @@ -background #241200 -foreground #ddc165 -cursor #e5591c -selection_background #e5591c -color0 #000000 -color8 #7e6954 -color1 #d5252b -color9 #e4591b -color2 #909b00 -color10 #bfc659 -color3 #bd8a13 -color11 #ffca1b -color4 #4698a2 -color12 #7cc9ce -color5 #8c4231 -color13 #d16349 -color6 #d98112 -color14 #e6a96b -color7 #ddc165 -color15 #ffe9a3 -selection_foreground #241200 +background #1E1C31 +foreground #CBE3E7 + +cursor #A1EFD3 + +selection_background #3E3859 +selection_foreground #CBE3E7 + +# black +color0 #1E1C31 +color8 #585273 + +# red +color1 #F48FB1 +color9 #F02E6E + +# green +color2 #A1EFD3 +color10 #7FE9C3 + +# yellow +color3 #FFE6B3 +color11 #F2B482 + +# blue +color4 #91DDFF +color12 #78A8FF + +# magenta +color5 #D4BFFF +color13 #7676FF + +# cyan +color6 #ABF8F7 +color14 #63F2F1 + +# white +color7 #CBE3E7 +color15 #8A889D + +active_border_color #A1EFD3 +inactive_border_color #585273 +bell_border_color #F56574 + +active_tab_foreground #2D2B40 +active_tab_background #63F2F1 +active_tab_font_style bold + +inactive_tab_foreground #CBE3E7 +inactive_tab_background #585273 +inactive_tab_font_style normal + +url_color #D4BFFF diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index 6122203..b4299c6 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -11,3 +11,9 @@ font_family FiraCode Nerd Font # Penumbra Theme include themes/embark.conf + + +# BEGIN_KITTY_THEME +# Embark +include current-theme.conf +# END_KITTY_THEME \ No newline at end of file From bdf344026fab12afc49330212784f1ddd2fca3d1 Mon Sep 17 00:00:00 2001 From: eeleater Date: Sat, 8 Jul 2023 12:00:10 +0200 Subject: [PATCH 37/87] fixed topgrade config --- dot_config/topgrade.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index 582d2e9..ad949d9 100644 --- a/dot_config/topgrade.toml +++ b/dot_config/topgrade.toml @@ -1,12 +1,10 @@ +[misc] # Don't ask for confirmations #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"] -# Show Preamble text -display_preamble = false - # Skip Notify skip_notify = true From a4e21a6b174c20eef5a9f0bc1ed25d1f3d1d326a Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Fri, 7 Jul 2023 11:23:37 +0200 Subject: [PATCH 38/87] changed kitty config --- dot_config/kitty/current-theme.conf | 53 ----------------------------- dot_config/kitty/kitty.conf | 8 +---- 2 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 dot_config/kitty/current-theme.conf diff --git a/dot_config/kitty/current-theme.conf b/dot_config/kitty/current-theme.conf deleted file mode 100644 index aa45826..0000000 --- a/dot_config/kitty/current-theme.conf +++ /dev/null @@ -1,53 +0,0 @@ -background #1E1C31 -foreground #CBE3E7 - -cursor #A1EFD3 - -selection_background #3E3859 -selection_foreground #CBE3E7 - -# black -color0 #1E1C31 -color8 #585273 - -# red -color1 #F48FB1 -color9 #F02E6E - -# green -color2 #A1EFD3 -color10 #7FE9C3 - -# yellow -color3 #FFE6B3 -color11 #F2B482 - -# blue -color4 #91DDFF -color12 #78A8FF - -# magenta -color5 #D4BFFF -color13 #7676FF - -# cyan -color6 #ABF8F7 -color14 #63F2F1 - -# white -color7 #CBE3E7 -color15 #8A889D - -active_border_color #A1EFD3 -inactive_border_color #585273 -bell_border_color #F56574 - -active_tab_foreground #2D2B40 -active_tab_background #63F2F1 -active_tab_font_style bold - -inactive_tab_foreground #CBE3E7 -inactive_tab_background #585273 -inactive_tab_font_style normal - -url_color #D4BFFF diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index b4299c6..4cec6b4 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -9,11 +9,5 @@ shell_integration enabled # Fonts font_family FiraCode Nerd Font -# Penumbra Theme +# Embark Theme include themes/embark.conf - - -# BEGIN_KITTY_THEME -# Embark -include current-theme.conf -# END_KITTY_THEME \ No newline at end of file From 0a9f8af60cec68d720827352cf1026ba80cabbc0 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 18 Jul 2023 12:20:27 +0200 Subject: [PATCH 39/87] changed layout of joke stuff --- dot_config/zsh/dot_zshrc | 2 +- dot_local/bin/executable_bofh | 6 - dot_local/bin/executable_dadjoke | 5 - dot_local/bin/executable_hackerquotes | 195 -------------------------- dot_local/bin/executable_joke | 54 +++++++ dot_local/share/hackerquotes/dijkstra | 6 + dot_local/share/hackerquotes/knuth | 5 + dot_local/share/hackerquotes/misc | 19 +++ dot_local/share/hackerquotes/perlis | 120 ++++++++++++++++ dot_local/share/hackerquotes/torvalds | 3 + 10 files changed, 208 insertions(+), 207 deletions(-) delete mode 100644 dot_local/bin/executable_bofh delete mode 100644 dot_local/bin/executable_dadjoke delete mode 100644 dot_local/bin/executable_hackerquotes create mode 100644 dot_local/bin/executable_joke create mode 100644 dot_local/share/hackerquotes/dijkstra create mode 100644 dot_local/share/hackerquotes/knuth create mode 100644 dot_local/share/hackerquotes/misc create mode 100644 dot_local/share/hackerquotes/perlis create mode 100644 dot_local/share/hackerquotes/torvalds diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index e2cc8ec..b903553 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -2,7 +2,7 @@ test -v DISTROBOX_HOST_HOME && { unset ZDOTDIR; exec zsh } # fix distrobox test "x$TERMINALNAME" = "xalacritty" && eval "$(zellij setup --generate-auto-start zsh)" # autostart zellij only in alacritty # startup banner -potentialBanner=('bofh' 'hackerquotes' 'dadjoke' 'colorscript random' 'fastfetch') +potentialBanner=('joke bofh' 'joke dad' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq torvalds' 'joke hq misc' 'colorscript random' 'fastfetch') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" # and source plugins diff --git a/dot_local/bin/executable_bofh b/dot_local/bin/executable_bofh deleted file mode 100644 index d55c70c..0000000 --- a/dot_local/bin/executable_bofh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -excuses_file="$HOME/.local/share/bofh" -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" diff --git a/dot_local/bin/executable_dadjoke b/dot_local/bin/executable_dadjoke deleted file mode 100644 index dc5f1d0..0000000 --- a/dot_local/bin/executable_dadjoke +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -joke=$(curl -sH "Accept: text/plain" 'https://icanhazdadjoke.com/') -echo "Daily Dadjoke: $joke" - diff --git a/dot_local/bin/executable_hackerquotes b/dot_local/bin/executable_hackerquotes deleted file mode 100644 index b7a3e0c..0000000 --- a/dot_local/bin/executable_hackerquotes +++ /dev/null @@ -1,195 +0,0 @@ -#!/usr/bin/env zsh - -# Just print a hacker quote randomly when open a terminal. -# -# Config Variables -# ---------------------------------------- -# -# ZSH_HACKER_QUOTES_ENABLE_WHEN_INTERACTIVE -# print quotes if print hacker quotes when shell is an interactive login shell, -# don't check whether shell is a login shell or not. -# default only print hacker quotes when shell is an interactive and login shell. -# -# Development Notes -# ---------------------------------------- -# -# use namespace `_zp_hq` (Zsh Plugin Hacker Quotes) to avoid naming conflict - -_zp_hq::print_quote() { - if which fold &>/dev/null && [ -n "${COLUMNS:-}" ]; then - printf '%b\n\n' "$*" | fold -s -w $COLUMNS - else - printf '%b\n\n' "$*" - fi -} - - _zp_hq_hacker_quotes=( - # Linus Torvalds - # https://en.wikiquote.org/wiki/Linus_Torvalds - "Talk is cheap. Show me the code.\n - Linus Torvalds" - "Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program.\n - Linus Torvalds" - "I'm an egotistical bastard, and I name all my projects after myself. First Linux, now git.\n - Linus Torvalds" - - # Alan J. Perlis - # https://en.wikiquote.org/wiki/Alan_Perlis - "One man's constant is another man's variable.\n - Alan J. Perlis" - "Functions delay binding; data structures induce binding. Moral: Structure data late in the programming process.\n - Alan J. Perlis" - "Syntactic sugar causes cancer of the semicolon.\n - Alan J. Perlis" - "Every program is a part of some other program and rarely fits.\n - Alan J. Perlis" - "If a program manipulates a large amount of data, it does so in a small number of ways.\n - Alan J. Perlis" - "Symmetry is a complexity-reducing concept (co-routines include subroutines); seek it everywhere.\n - Alan J. Perlis" - "It is easier to write an incorrect program than understand a correct one.\n - Alan J. Perlis" - "A programming language is low level when its programs require attention to the irrelevant.\n - Alan J. Perlis" - "It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures.\n - Alan J. Perlis" - "Get into a rut early: Do the same process the same way. Accumulate idioms. Standardize. The only difference(!) between Shakespeare and you was the size of his idiom list - not the size of his vocabulary.\n - Alan J. Perlis" - "If you have a procedure with ten parameters, you probably missed some.\n - Alan J. Perlis" - "Recursion is the root of computation since it trades description for time.\n - Alan J. Perlis" - "If two people write exactly the same program, each should be put into microcode and then they certainly won't be the same.\n - Alan J. Perlis" - "In the long run every program becomes rococo - then rubble.\n - Alan J. Perlis" - "Everything should be built top-down, except the first time.\n - Alan J. Perlis" - "Every program has (at least) two purposes: the one for which it was written, and another for which it wasn't.\n - Alan J. Perlis" - "If a listener nods his head when you're explaining your program, wake him up.\n - Alan J. Perlis" - "A program without a loop and a structured variable isn't worth writing.\n - Alan J. Perlis" - "A language that doesn't affect the way you think about programming, is not worth knowing.\n - Alan J. Perlis" - "Wherever there is modularity there is the potential for misunderstanding: Hiding information implies a need to check communication.\n - Alan J. Perlis" - "Optimization hinders evolution.\n - Alan J. Perlis" - "A good system can't have a weak command language.\n - Alan J. Perlis" - "To understand a program you must become both the machine and the program.\n - Alan J. Perlis" - "Perhaps if we wrote programs from childhood on, as adults we'd be able to read them.\n - Alan J. Perlis" - "One can only display complex information in the mind. Like seeing, movement or flow or alteration of view is more important than the static picture, no matter how lovely.\n - Alan J. Perlis" - "There will always be things we wish to say in our programs that in all known languages can only be said poorly.\n - Alan J. Perlis" - "Once you understand how to write a program get someone else to write it.\n - Alan J. Perlis" - "Around computers it is difficult to find the correct unit of time to measure progress. Some cathedrals took a century to complete. Can you imagine the grandeur and scope of a program that would take as long?\n - Alan J. Perlis" - "For systems, the analogue of a face-lift is to add to the control graph an edge that creates a cycle, not just an additional node.\n - Alan J. Perlis" - "In programming, everything we do is a special case of something more general -- and often we know it too quickly.\n - Alan J. Perlis" - "Simplicity does not precede complexity, but follows it.\n - Alan J. Perlis" - "Programmers are not to be measured by their ingenuity and their logic but by the completeness of their case analysis.\n - Alan J. Perlis" - "The eleventh commandment was \"Thou Shalt Compute\" or \"Thou Shalt Not Compute\" - I forget which.\n - Alan J. Perlis" - "The string is a stark data structure and everywhere it is passed there is much duplication of process. It is a perfect vehicle for hiding information.\n - Alan J. Perlis" - "Everyone can be taught to sculpt: Michelangelo would have had to be taught not to. So it is with great programmers.\n - Alan J. Perlis" - "The use of a program to prove the 4-color theorem will not change mathematics - it merely demonstrates that the theorem, a challenge for a century, is probably not important to mathematics.\n - Alan J. Perlis" - "The most important computer is the one that rages in our skulls and ever seeks that satisfactory external emulator. The standarization of real computers would be a disaster - and so it probably won't happen.\n - Alan J. Perlis" - "Structured Programming supports the law of the excluded middle.\n - Alan J. Perlis" - "Re graphics: A picture is worth 10K words - but only those to describe the picture. Hardly any sets of 10K words can be adequately described with pictures.\n - Alan J. Perlis" - "There are two ways to write error-free programs; only the third one works.\n - Alan J. Perlis" - "Some programming languages manage to absorb change, but withstand progress.\n - Alan J. Perlis" - "You can measure a programmer's perspective by noting his attitude on the continuing vitality of FORTRAN.\n - Alan J. Perlis" - "In software systems, it is often the early bird that makes the worm.\n - Alan J. Perlis" - "Sometimes I think the only universal in the computing field is the fetch-execute cycle.\n - Alan J. Perlis" - "The goal of computation is the emulation of our synthetic abilities, not the understanding of our analytic ones.\n - Alan J. Perlis" - "Like punning, programming is a play on words.\n - Alan J. Perlis" - "As Will Rogers would have said, \"There is no such thing as a free variable.\"\n - Alan J. Perlis" - "The best book on programming for the layman is \"Alice in Wonderland\"; but that's because it's the best book on anything for the layman.\n - Alan J. Perlis" - "Giving up on assembly language was the apple in our Garden of Eden: Languages whose use squanders machine cycles are sinful. The LISP machine now permits LISP programmers to abandon bra and fig-leaf.\n - Alan J. Perlis" - "When we understand knowledge-based systems, it will be as before -- except our fingertips will have been singed.\n - Alan J. Perlis" - "Bringing computers into the home won't change either one, but may revitalize the corner saloon.\n - Alan J. Perlis" - "Systems have sub-systems and sub-systems have sub-systems and so on ad infinitum - which is why we're always starting over.\n - Alan J. Perlis" - "So many good ideas are never heard from again once they embark in a voyage on the semantic gulf.\n - Alan J. Perlis" - "Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy.\n - Alan J. Perlis" - "A LISP programmer knows the value of everything, but the cost of nothing.\n - Alan J. Perlis" - "Software is under a constant tension. Being symbolic it is arbitrarily perfectible; but also it is arbitrarily changeable.\n - Alan J. Perlis" - "It is easier to change the specification to fit the program than vice versa.\n - Alan J. Perlis" - "Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it.\n - Alan J. Perlis" - "In English every word can be verbed. Would that it were so in our programming languages.\n - Alan J. Perlis" - "In seeking the unattainable, simplicity only gets in the way.\n - Alan J. Perlis" - "In programming, as in everything else, to be in error is to be reborn.\n - Alan J. Perlis" - "In computing, invariants are ephemeral.\n - Alan J. Perlis" - "When we write programs that \"learn\", it turns out that we do and they don't.\n - Alan J. Perlis" - "Often it is the means that justify the ends: Goals advance technique and technique survives even when goal structures crumble.\n - Alan J. Perlis" - "Make no mistake about it: Computers process numbers - not symbols. We measure our understanding (and control) by the extent to which we can arithmetize an activity.\n - Alan J. Perlis" - "Making something variable is easy. Controlling duration of constancy is the trick.\n - Alan J. Perlis" - "Think of all the psychic energy expended in seeking a fundamental distinction between \"algorithm\" and \"program\".\n - Alan J. Perlis" - "If we believe in data structures, we must believe in independent (hence simultaneous) processing. For why else would we collect items within a structure? Why do we tolerate languages that give us the one without the other?\n - Alan J. Perlis" - "In a 5 year period we get one superb programming language. Only we can't control when the 5 year period will be.\n - Alan J. Perlis" - "Over the centuries the Indians developed sign language for communicating phenomena of interest. Programmers from different tribes (FORTRAN, LISP, ALGOL, SNOBOL, etc.) could use one that doesn't require them to carry a blackboard on their ponies.\n - Alan J. Perlis" - "Documentation is like term insurance: It satisfies because almost no one who subscribes to it depends on its benefits.\n - Alan J. Perlis" - "An adequate bootstrap is a contradiction in terms.\n - Alan J. Perlis" - "It is not a language's weakness but its strengths that control the gradient of its change: Alas, a language never escapes its embryonic sac.\n - Alan J. Perlis" - "Is it possible that software is not like anything else, that it is meant to be discarded: that the whole point is to see it as a soap bubble?\n - Alan J. Perlis" - "Because of its vitality, the computing field is always in desperate need of new cliches: Banality soothes our nerves.\n - Alan J. Perlis" - "It is the user who should parameterize procedures, not their creators.\n - Alan J. Perlis" - "The cybernetic exchange between man, computer and algorithm is like a game of musical chairs: The frantic search for balance always leaves one of the three standing ill at ease.\n - Alan J. Perlis" - "If your computer speaks English, it was probably made in Japan.\n - Alan J. Perlis" - "A year spent in artificial intelligence is enough to make one believe in God.\n - Alan J. Perlis" - "Prolonged contact with the computer turns mathematicians into clerks and vice versa.\n - Alan J. Perlis" - "In computing, turning the obvious into the useful is a living definition of the word \"frustration\".\n - Alan J. Perlis" - "We are on the verge: Today our program proved Fermat's next-to-last theorem.\n - Alan J. Perlis" - "What is the difference between a Turing machine and the modern computer? It's the same as that between Hillary's ascent of Everest and the establishment of a Hilton hotel on its peak.\n - Alan J. Perlis" - "Motto for a research laboratory: What we work on today, others will first think of tomorrow.\n - Alan J. Perlis" - "Though the Chinese should adore APL, it's FORTRAN they put their money on.\n - Alan J. Perlis" - "We kid ourselves if we think that the ratio of procedure to data in an active data-base system can be made arbitrarily small or even kept small.\n - Alan J. Perlis" - "We have the mini and the micro computer. In what semantic niche would the pico computer fall?\n - Alan J. Perlis" - "It is not the computer's fault that Maxwell's equations are not adequate to design the electric motor.\n - Alan J. Perlis" - "One does not learn computing by using a hand calculator, but one can forget arithmetic.\n - Alan J. Perlis" - "Computation has made the tree flower.\n - Alan J. Perlis" - "The computer reminds one of Lon Chaney -- it is the machine of a thousand faces.\n - Alan J. Perlis" - "The computer is the ultimate polluter: its feces are indistinguish- able from the food it produces.\n - Alan J. Perlis" - "When someone says \"I want a programming language in which I need only say what I wish done,\" give him a lollipop.\n - Alan J. Perlis" - "Interfaces keep things tidy, but don't accelerate growth: Functions do.\n - Alan J. Perlis" - "Don't have good ideas if you aren't willing to be responsible for them.\n - Alan J. Perlis" - "Computers don't introduce order anywhere as much as they expose opportunities.\n - Alan J. Perlis" - "When a professor insists computer science is X but not Y, have compassion for his graduate students.\n - Alan J. Perlis" - "In computing, the mean time to failure keeps getting shorter.\n - Alan J. Perlis" - "In man-machine symbiosis, it is man who must adjust: The machines can't.\n - Alan J. Perlis" - "We will never run out of things to program as long as there is a single program around.\n - Alan J. Perlis" - "Dealing with failure is easy: Work hard to improve. Success is also easy to handle: You've solved the wrong problem. Work hard to improve.\n - Alan J. Perlis" - "One can't proceed from the informal to the formal by formal means.\n - Alan J. Perlis" - "Purely applicative languages are poorly applicable.\n - Alan J. Perlis" - "The proof of a system's value is its existence.\n - Alan J. Perlis" - "You can't communicate complexity, only an awareness of it.\n - Alan J. Perlis" - "It's difficult to extract sense from strings, but they're the only communication coin we can count on.\n - Alan J. Perlis" - "The debate rages on: is PL/I Bachtrian or Dromedary?\n - Alan J. Perlis" - "Whenever two programmers meet to criticize their programs, both are silent.\n - Alan J. Perlis" - "Think of it! With VLSI we can pack 100 ENIACS in 1 sq. cm.\n - Alan J. Perlis" - "Editing is a rewording activity.\n - Alan J. Perlis" - "Why did the Roman Empire collapse? What is Latin for office automation?\n - Alan J. Perlis" - "Computer Science is embarrassed by the computer.\n - Alan J. Perlis" - "The only constructive theory connecting neuroscience and psychology will arise from the study of software.\n - Alan J. Perlis" - "Within a computer natural language is unnatural.\n - Alan J. Perlis" - "Most people find the concept of programming obvious, but the doing impossible.\n - Alan J. Perlis" - "You think you know when you can learn, are more sure when you can write, even more when you can teach, but certain when you can program.\n - Alan J. Perlis" - "It goes against the grain of modern education to teach children to program. What fun is there in making plans, acquiring discipline in organizing thoughts, devoting attention to detail and learning to be self-critical?\n - Alan J. Perlis" - "If you can imagine a society in which the computer- robot is the only menial, you can imagine anything.\n - Alan J. Perlis" - "Programming is an unnatural act.\n - Alan J. Perlis" - "Adapting old programs to fit new machines usually means adapting new machines to behave like old ones.\n - Alan J. Perlis" - - # Donald E. Knuth - # https://en.wikiquote.org/wiki/Donald_Knuth - "Beware of bugs in the above code; I have only proved it correct, not tried it.\n - Donald E. Knuth" - "Science is knowledge which we understand so well that we can teach it to a computer; and if we don't fully understand something, it is an art to deal with it.\n - Donald E. Knuth" - "In fact, my main conclusion after spending ten years of my life working on the TEX project is that software is hard. It’s harder than anything else I’ve ever had to do.\n - Donald E. Knuth" - "Let us change our traditional attitude to the construction of programs: Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do.\n - Donald E. Knuth" - "The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming.\n - Donald E. Knuth" - - # Edsger W. Dijkstra - # https://en.wikiquote.org/wiki/Edsger_W._Dijkstra - "Testing shows the presence, not the absence of bugs.\n - Edsger W. Dijkstra" - "The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague.\n - Edsger W. Dijkstra" - "LISP has been jokingly described as \"the most intelligent way to misuse a computer\". I think that description a great compliment because it transmits the full flavor of liberation: it has assisted a number of our most gifted fellow humans in thinking previously impossible thoughts.\n - Edsger W. Dijkstra" - "Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer.\n - Edsger W. Dijkstra" - "Simplicity is a great virtue but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better.\n - Edsger W. Dijkstra" - "My point today is that, if we wish to count lines of code, we should not regard them as \"lines produced\" but as \"lines spent\": the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger.\n - Edsger W. Dijkstra" - - # mics - "There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.\n - C.A.R. Hoare" - "There are only two hard things in Computer Science: cache invalidation and naming things.\n - Phil Karlton" - "There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors.\n - https://martinfowler.com/bliki/TwoHardThings.html" - "Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.\n - Martin Golding" - "The trouble with programmers is that you can never tell what a programmer is doing until it’s too late.\n - Seymour Cray" - "First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack.\n - George Carrette" - "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.\n - Brian W. Kernighan" - "Measuring programming progress by lines of code is like measuring aircraft building progress by weight.\n - Bill Gates" - "The best programmers are not marginally better than merely good ones. They are an order-of-magnitude better, measured by whatever standard: conceptual creativity, speed, ingenuity of design, or problem-solving ability.\n - Randall E. Stross" - "For a long time it puzzled me how something so expensive, so leading edge, could be so useless. And then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match.\n - Bill Bryson" - "You can’t have great software without a great team, and most software teams behave like dysfunctional families.\n - Jim McCarthy" - "Incorrect documentation is often worse than no documentation.\n - Bertrand Meyer" - "Correctness is clearly the prime quality. If a system does not do what it is supposed to do, then everything else about it matters little.\n - Bertrand Meyer" - "I would love to change the world, but they won't give me the source code.\n - Anonymous" - "Any fool can write code that a computer can understand. Good programmers write code that humans can understand.\n - Martin Fowler" - "I am not a great programmer; I am just a good programmer with great habits.\n - Kent Beck" - "A Computer is a state machine. Threads are for people who can't program state machines.\n - Alan Cox" - "Not everything worth doing is worth doing well.\n - Tom West" - "Peace comes from thinking.\n - N.S.A" - ) - - _zp_hq::print_quote "${_zp_hq_hacker_quotes[RANDOM % $#_zp_hq_hacker_quotes + 1]}" diff --git a/dot_local/bin/executable_joke b/dot_local/bin/executable_joke new file mode 100644 index 0000000..dd278c9 --- /dev/null +++ b/dot_local/bin/executable_joke @@ -0,0 +1,54 @@ +#!/usr/bin/env bash + +case "$1" in +"dad") + joke=$(curl -sH "Accept: text/plain" 'https://icanhazdadjoke.com/') + echo "Daily Dad Joke: $joke" + ;; +"bofh") + excuses_file="$HOME/.local/share/bofh" + num_lines=$(nl "$excuses_file" | tail -n 1 | awk '{print $1}') + echo -n "Daily BOFH Excuse: " + awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file" + ;; +"hq") + case "$2" in + "dijkstra") + dijkstra="$HOME/.local/share/hackerquotes/dijkstra" + 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" + ;; + "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" + ;; + "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" + ;; + "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" + ;; + "misc") + misc="$HOME/.local/share/hackerquotes/misc" + misc_lines=$(nl "$misc" | tail -n 1 | awk '{print $1}') + echo -n "Daily Hackerquote: " + awk 'NR=='$((1 + RANDOM % misc_lines ))'{print;exit}' "$misc" + ;; + esac + ;; +esac + + diff --git a/dot_local/share/hackerquotes/dijkstra b/dot_local/share/hackerquotes/dijkstra new file mode 100644 index 0000000..e64d9cd --- /dev/null +++ b/dot_local/share/hackerquotes/dijkstra @@ -0,0 +1,6 @@ +Testing shows the presence, not the absence of bugs. +The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague. +LISP has been jokingly described as 'the most intelligent way to misuse a computer'. I think that description a great compliment because it transmits the full flavor of liberation: it has assisted a number of our most gifted fellow humans in thinking previously impossible thoughts. +Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer. +Simplicity is a great virtue but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better. +My point today is that, if we wish to count lines of code, we should not regard them as 'lines produced' but as 'lines spent': the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger. diff --git a/dot_local/share/hackerquotes/knuth b/dot_local/share/hackerquotes/knuth new file mode 100644 index 0000000..87af1a6 --- /dev/null +++ b/dot_local/share/hackerquotes/knuth @@ -0,0 +1,5 @@ +Beware of bugs in the above code; I have only proved it correct, not tried it. +Science is knowledge which we understand so well that we can teach it to a computer; and if we don't fully understand something, it is an art to deal with it. +In fact, my main conclusion after spending ten years of my life working on the TEX project is that software is hard. It’s harder than anything else I’ve ever had to do. +Let us change our traditional attitude to the construction of programs: Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do. +The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming. diff --git a/dot_local/share/hackerquotes/misc b/dot_local/share/hackerquotes/misc new file mode 100644 index 0000000..9f6a097 --- /dev/null +++ b/dot_local/share/hackerquotes/misc @@ -0,0 +1,19 @@ +There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. - C.A.R. Hoare +There are only two hard things in Computer Science: cache invalidation and naming things. - Phil Karlton +There are 2 hard problems in computer science: cache invalidation, naming things, and off-by-1 errors. - https://martinfowler.com/bliki/TwoHardThings.html +Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. - Martin Golding +The trouble with programmers is that you can never tell what a programmer is doing until it’s too late. - Seymour Cray +First learn computer science and all the theory. Next develop a programming style. Then forget all that and just hack. - George Carrette +Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. - Brian W. Kernighan +Measuring programming progress by lines of code is like measuring aircraft building progress by weight. - Bill Gates +The best programmers are not marginally better than merely good ones. They are an order-of-magnitude better, measured by whatever standard: conceptual creativity, speed, ingenuity of design, or problem-solving ability. - Randall E. Stross +For a long time it puzzled me how something so expensive, so leading edge, could be so useless. And then it occurred to me that a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are, in short, a perfect match. - Bill Bryson +You can’t have great software without a great team, and most software teams behave like dysfunctional families. - Jim McCarthy +Incorrect documentation is often worse than no documentation. - Bertrand Meyer +Correctness is clearly the prime quality. If a system does not do what it is supposed to do, then everything else about it matters little. - Bertrand Meyer +I would love to change the world, but they won't give me the source code. - Anonymous +Any fool can write code that a computer can understand. Good programmers write code that humans can understand. - Martin Fowler +I am not a great programmer; I am just a good programmer with great habits. - Kent Beck +A Computer is a state machine. Threads are for people who can't program state machines. - Alan Cox +Not everything worth doing is worth doing well. - Tom West +Peace comes from thinking. - N.S.A \ No newline at end of file diff --git a/dot_local/share/hackerquotes/perlis b/dot_local/share/hackerquotes/perlis new file mode 100644 index 0000000..c2074e8 --- /dev/null +++ b/dot_local/share/hackerquotes/perlis @@ -0,0 +1,120 @@ +One man's constant is another man's variable. +Functions delay binding; data structures induce binding. Moral: Structure data late in the programming process. +Syntactic sugar causes cancer of the semicolon. +Every program is a part of some other program and rarely fits. +If a program manipulates a large amount of data, it does so in a small number of ways. +Symmetry is a complexity-reducing concept (co-routines include subroutines); seek it everywhere. +It is easier to write an incorrect program than understand a correct one. +A programming language is low level when its programs require attention to the irrelevant. +It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures. +Get into a rut early: Do the same process the same way. Accumulate idioms. Standardize. The only difference(!) between Shakespeare and you was the size of his idiom list - not the size of his vocabulary. +If you have a procedure with ten parameters, you probably missed some. +Recursion is the root of computation since it trades description for time. +If two people write exactly the same program, each should be put into microcode and then they certainly won't be the same. +In the long run every program becomes rococo - then rubble. +Everything should be built top-down, except the first time. +Every program has (at least) two purposes: the one for which it was written, and another for which it wasn't. +If a listener nods his head when you're explaining your program, wake him up. +A program without a loop and a structured variable isn't worth writing. +A language that doesn't affect the way you think about programming, is not worth knowing. +Wherever there is modularity there is the potential for misunderstanding: Hiding information implies a need to check communication. +Optimization hinders evolution. +A good system can't have a weak command language. +To understand a program you must become both the machine and the program. +Perhaps if we wrote programs from childhood on, as adults we'd be able to read them. +One can only display complex information in the mind. Like seeing, movement or flow or alteration of view is more important than the static picture, no matter how lovely. +There will always be things we wish to say in our programs that in all known languages can only be said poorly. +Once you understand how to write a program get someone else to write it. +Around computers it is difficult to find the correct unit of time to measure progress. Some cathedrals took a century to complete. Can you imagine the grandeur and scope of a program that would take as long? +For systems, the analogue of a face-lift is to add to the control graph an edge that creates a cycle, not just an additional node. +In programming, everything we do is a special case of something more general -- and often we know it too quickly. +Simplicity does not precede complexity, but follows it. +Programmers are not to be measured by their ingenuity and their logic but by the completeness of their case analysis. +The eleventh commandment was \Thou Shalt Compute\ or \Thou Shalt Not Compute\ - I forget which. +The string is a stark data structure and everywhere it is passed there is much duplication of process. It is a perfect vehicle for hiding information. +Everyone can be taught to sculpt: Michelangelo would have had to be taught not to. So it is with great programmers. +The use of a program to prove the 4-color theorem will not change mathematics - it merely demonstrates that the theorem, a challenge for a century, is probably not important to mathematics. +The most important computer is the one that rages in our skulls and ever seeks that satisfactory external emulator. The standarization of real computers would be a disaster - and so it probably won't happen. +Structured Programming supports the law of the excluded middle. +Re graphics: A picture is worth 10K words - but only those to describe the picture. Hardly any sets of 10K words can be adequately described with pictures. +There are two ways to write error-free programs; only the third one works. +Some programming languages manage to absorb change, but withstand progress. +You can measure a programmer's perspective by noting his attitude on the continuing vitality of FORTRAN. +In software systems, it is often the early bird that makes the worm. +Sometimes I think the only universal in the computing field is the fetch-execute cycle. +The goal of computation is the emulation of our synthetic abilities, not the understanding of our analytic ones. +Like punning, programming is a play on words. +As Will Rogers would have said, \There is no such thing as a free variable.\ +The best book on programming for the layman is \Alice in Wonderland\; but that's because it's the best book on anything for the layman. +Giving up on assembly language was the apple in our Garden of Eden: Languages whose use squanders machine cycles are sinful. The LISP machine now permits LISP programmers to abandon bra and fig-leaf. +When we understand knowledge-based systems, it will be as before -- except our fingertips will have been singed. +Bringing computers into the home won't change either one, but may revitalize the corner saloon. +Systems have sub-systems and sub-systems have sub-systems and so on ad infinitum - which is why we're always starting over. +So many good ideas are never heard from again once they embark in a voyage on the semantic gulf. +Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy. +A LISP programmer knows the value of everything, but the cost of nothing. +Software is under a constant tension. Being symbolic it is arbitrarily perfectible; but also it is arbitrarily changeable. +It is easier to change the specification to fit the program than vice versa. +Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it. +In English every word can be verbed. Would that it were so in our programming languages. +In seeking the unattainable, simplicity only gets in the way. +In programming, as in everything else, to be in error is to be reborn. +In computing, invariants are ephemeral. +When we write programs that \learn\, it turns out that we do and they don't. +Often it is the means that justify the ends: Goals advance technique and technique survives even when goal structures crumble. +Make no mistake about it: Computers process numbers - not symbols. We measure our understanding (and control) by the extent to which we can arithmetize an activity. +Making something variable is easy. Controlling duration of constancy is the trick. +Think of all the psychic energy expended in seeking a fundamental distinction between 'algorithm' and 'program'. +If we believe in data structures, we must believe in independent (hence simultaneous) processing. For why else would we collect items within a structure? Why do we tolerate languages that give us the one without the other? +In a 5 year period we get one superb programming language. Only we can't control when the 5 year period will be. +Over the centuries the Indians developed sign language for communicating phenomena of interest. Programmers from different tribes (FORTRAN, LISP, ALGOL, SNOBOL, etc.) could use one that doesn't require them to carry a blackboard on their ponies. +Documentation is like term insurance: It satisfies because almost no one who subscribes to it depends on its benefits. +An adequate bootstrap is a contradiction in terms. +It is not a language's weakness but its strengths that control the gradient of its change: Alas, a language never escapes its embryonic sac. +Is it possible that software is not like anything else, that it is meant to be discarded: that the whole point is to see it as a soap bubble? +Because of its vitality, the computing field is always in desperate need of new cliches: Banality soothes our nerves. +It is the user who should parameterize procedures, not their creators. +The cybernetic exchange between man, computer and algorithm is like a game of musical chairs: The frantic search for balance always leaves one of the three standing ill at ease. +If your computer speaks English, it was probably made in Japan. +A year spent in artificial intelligence is enough to make one believe in God. +Prolonged contact with the computer turns mathematicians into clerks and vice versa. +In computing, turning the obvious into the useful is a living definition of the word \frustration\. +We are on the verge: Today our program proved Fermat's next-to-last theorem. +What is the difference between a Turing machine and the modern computer? It's the same as that between Hillary's ascent of Everest and the establishment of a Hilton hotel on its peak. +Motto for a research laboratory: What we work on today, others will first think of tomorrow. +Though the Chinese should adore APL, it's FORTRAN they put their money on. +We kid ourselves if we think that the ratio of procedure to data in an active data-base system can be made arbitrarily small or even kept small. +We have the mini and the micro computer. In what semantic niche would the pico computer fall? +It is not the computer's fault that Maxwell's equations are not adequate to design the electric motor. +One does not learn computing by using a hand calculator, but one can forget arithmetic. +Computation has made the tree flower. +The computer reminds one of Lon Chaney -- it is the machine of a thousand faces. +The computer is the ultimate polluter: its feces are indistinguish- able from the food it produces. +When someone says \I want a programming language in which I need only say what I wish done,\ give him a lollipop. +Interfaces keep things tidy, but don't accelerate growth: Functions do. +Don't have good ideas if you aren't willing to be responsible for them. +Computers don't introduce order anywhere as much as they expose opportunities. +When a professor insists computer science is X but not Y, have compassion for his graduate students. +In computing, the mean time to failure keeps getting shorter. +In man-machine symbiosis, it is man who must adjust: The machines can't. +We will never run out of things to program as long as there is a single program around. +Dealing with failure is easy: Work hard to improve. Success is also easy to handle: You've solved the wrong problem. Work hard to improve. +One can't proceed from the informal to the formal by formal means. +Purely applicative languages are poorly applicable. +The proof of a system's value is its existence. +You can't communicate complexity, only an awareness of it. +It's difficult to extract sense from strings, but they're the only communication coin we can count on. +The debate rages on: is PL/I Bachtrian or Dromedary? +Whenever two programmers meet to criticize their programs, both are silent. +Think of it! With VLSI we can pack 100 ENIACS in 1 sq. cm. +Editing is a rewording activity. +Why did the Roman Empire collapse? What is Latin for office automation? +Computer Science is embarrassed by the computer. +The only constructive theory connecting neuroscience and psychology will arise from the study of software. +Within a computer natural language is unnatural. +Most people find the concept of programming obvious, but the doing impossible. +You think you know when you can learn, are more sure when you can write, even more when you can teach, but certain when you can program. +It goes against the grain of modern education to teach children to program. What fun is there in making plans, acquiring discipline in organizing thoughts, devoting attention to detail and learning to be self-critical? +If you can imagine a society in which the computer- robot is the only menial, you can imagine anything. +Programming is an unnatural act. +Adapting old programs to fit new machines usually means adapting new machines to behave like old ones. \ No newline at end of file diff --git a/dot_local/share/hackerquotes/torvalds b/dot_local/share/hackerquotes/torvalds new file mode 100644 index 0000000..9e61201 --- /dev/null +++ b/dot_local/share/hackerquotes/torvalds @@ -0,0 +1,3 @@ +Talk is cheap. Show me the code. +Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program. +I'm an egotistical bastard, and I name all my projects after myself. First Linux, now git. \ No newline at end of file From e6b5cb2c6dc1c30b0cf1b0f7597f91161bc38bf5 Mon Sep 17 00:00:00 2001 From: eeleater Date: Fri, 28 Jul 2023 09:39:42 +0000 Subject: [PATCH 40/87] Update topgrade.toml --- dot_config/topgrade.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index ad949d9..b5fb619 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"] +disable = ["firmware", "tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes", "flatpak", "zsh"] # Skip Notify skip_notify = true From fc94e2be0f7dc55798c811e4150e0ada29fbed21 Mon Sep 17 00:00:00 2001 From: eeleater Date: Fri, 28 Jul 2023 09:41:40 +0000 Subject: [PATCH 41/87] Update topgrade.toml --- dot_config/topgrade.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index b5fb619..3e0643e 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", "zsh"] +disable = ["firmware", "tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes", "flatpak", "shell"] # Skip Notify skip_notify = true From cf8cc236c7d1e31064df3d62b0590d9ec4248bbb Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 2 Aug 2023 08:23:25 +0200 Subject: [PATCH 42/87] 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 From 08330d55f862cdc26252444876d6fab5a347fdef Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 2 Aug 2023 08:26:04 +0200 Subject: [PATCH 43/87] changed layout of joke stuff --- dot_config/kitty/kitty.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index 4cec6b4..62b78fe 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -9,5 +9,7 @@ shell_integration enabled # Fonts font_family FiraCode Nerd Font -# Embark Theme -include themes/embark.conf +# BEGIN_KITTY_THEME +# Rosé Pine Moon +include current-theme.conf +# END_KITTY_THEME From 87d4766ca832cc485d68756259b93aea01c7454a Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 10 Aug 2023 00:59:04 +0200 Subject: [PATCH 44/87] fixed joke to use system curl --- dot_local/bin/executable_joke | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_local/bin/executable_joke b/dot_local/bin/executable_joke index ef2e977..6c34e5a 100644 --- a/dot_local/bin/executable_joke +++ b/dot_local/bin/executable_joke @@ -1,8 +1,8 @@ -#!/usr/bin/env bash +##!/usr/bin/env bash case "$1" in "dad") - joke=$(curl -sH "Accept: text/plain" 'https://icanhazdadjoke.com/') + joke=$(/usr/bin/curl -sH "Accept: text/plain" 'https://icanhazdadjoke.com/') echo "Daily Dad Joke: $joke" ;; "bofh") @@ -49,4 +49,4 @@ case "$1" in ;; esac ;; -esac \ No newline at end of file +esac From 4c5d377feffb185da1b5515e150e76642f9fa504 Mon Sep 17 00:00:00 2001 From: eeleater Date: Sun, 10 Sep 2023 23:35:31 +0200 Subject: [PATCH 45/87] exa is apparently eol, using eza now --- dot_config/sheldon/plugins.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index f14fe7f..e2a3ba3 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -60,7 +60,7 @@ github = "laggardkernel/zsh-thefuck" github = "alexdesousa/oath" [plugins.exa] -github = "TwoPizza9621536/zsh-exa" +github = "twopizza9621536/zsh-eza" [plugins.bat] github = "fdellwing/zsh-bat" From d5fb522b193aced225e93db1b1db520add4430a9 Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 5 Oct 2023 14:21:29 +0200 Subject: [PATCH 46/87] stuffeth and thingeth --- .chezmoiexternal.toml | 6 + dot_config/zsh/dot_zshrc | 7 +- dot_config/zsh/files/evalstuff.zsh | 14 -- dot_local/bin/executable_joke | 40 +---- dot_local/share/hackerquotes/dijkstra | 12 +- dot_local/share/hackerquotes/knuth | 10 +- dot_local/share/hackerquotes/perlis | 240 +++++++++++++------------- dot_local/share/hackerquotes/torvalds | 6 +- 8 files changed, 150 insertions(+), 185 deletions(-) diff --git a/.chezmoiexternal.toml b/.chezmoiexternal.toml index 0686ab9..dd69ce0 100644 --- a/.chezmoiexternal.toml +++ b/.chezmoiexternal.toml @@ -1,3 +1,9 @@ [".local/share/zsh/config"] type = "git-repo" url = "git@git.eeleater.org:eeleater/dotfiles_private.git" +[".local/share/omp"] + type = "git-repo" + url = "https://github.com/JanDeDobbeleer/oh-my-posh.git" + stripComponents = 1 + exact = true + refreshPeriod = "168h" \ No newline at end of file diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index b903553..48731c0 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -2,8 +2,13 @@ test -v DISTROBOX_HOST_HOME && { unset ZDOTDIR; exec zsh } # fix distrobox test "x$TERMINALNAME" = "xalacritty" && eval "$(zellij setup --generate-auto-start zsh)" # autostart zellij only in alacritty # startup banner -potentialBanner=('joke bofh' 'joke dad' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq torvalds' 'joke hq misc' 'colorscript random' 'fastfetch') +potentialBanner=('joke bofh' 'joke dad' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq misc' 'colorscript random' 'fastfetch') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" +# theme +potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json') +export POSH_THEME="$XDG_DATA_HOME/omp/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" +eval "$(oh-my-posh init zsh)" + # and source plugins eval "$(sheldon source)" diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh index 1eeba07..5102e34 100644 --- a/dot_config/zsh/files/evalstuff.zsh +++ b/dot_config/zsh/files/evalstuff.zsh @@ -1,17 +1,3 @@ -# starship -#_evalcache starship init zsh --print-full-init - -# ohmyposh -potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json') -if (( ${+commands[brew]} )); then - export POSH_THEME="$(brew --prefix oh-my-posh)/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" -elif test "$(cat /etc/os-release | grep '^ID=' | cut -d'=' -f2)" = "nixos"; then - export POSH_THEME="/run/current-system/sw/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" -else - export POSH_THEME="/usr/share/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" -fi -eval "$(oh-my-posh init zsh)" - # evalstuff _evalcache zoxide init --cmd cd zsh _evalcache atuin init zsh diff --git a/dot_local/bin/executable_joke b/dot_local/bin/executable_joke index 6c34e5a..00546a9 100644 --- a/dot_local/bin/executable_joke +++ b/dot_local/bin/executable_joke @@ -12,41 +12,9 @@ case "$1" in awk 'NR=='$((1 + RANDOM % num_lines ))'{print;exit}' "$excuses_file" ;; "hq") - case "$2" in - "dijkstra") - dijkstra="$HOME/.local/share/hackerquotes/dijkstra" - dijkstra_lines=$(nl "$dijkstra" | tail -n 1 | awk '{print $1}') - echo -n "Daily Hackerquote: " - awk 'NR=='$((1 + RANDOM % dijkstra_lines ))'{print;exit}' "$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 " - 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 " - 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 " - Linus Torvalds" - ;; - "misc") - misc="$HOME/.local/share/hackerquotes/misc" - misc_lines=$(nl "$misc" | tail -n 1 | awk '{print $1}') - echo -n "Daily Hackerquote: " - awk 'NR=='$((1 + RANDOM % misc_lines ))'{print;exit}' "$misc" - ;; - esac + file="$HOME/.local/share/hackerquotes/$2" + lines=$(nl "$file" | tail -n 1 | awk '{print $1}') + echo -n "Daily Hackerquote: " + awk 'NR=='$((1 + RANDOM % $lines ))'{print;exit}' "$file" ;; esac diff --git a/dot_local/share/hackerquotes/dijkstra b/dot_local/share/hackerquotes/dijkstra index e64d9cd..7369cc5 100644 --- a/dot_local/share/hackerquotes/dijkstra +++ b/dot_local/share/hackerquotes/dijkstra @@ -1,6 +1,6 @@ -Testing shows the presence, not the absence of bugs. -The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague. -LISP has been jokingly described as 'the most intelligent way to misuse a computer'. I think that description a great compliment because it transmits the full flavor of liberation: it has assisted a number of our most gifted fellow humans in thinking previously impossible thoughts. -Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer. -Simplicity is a great virtue but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better. -My point today is that, if we wish to count lines of code, we should not regard them as 'lines produced' but as 'lines spent': the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger. +Testing shows the presence, not the absence of bugs. - Edsger W. Dijkstra +The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague. - Edsger W. Dijkstra +LISP has been jokingly described as 'the most intelligent way to misuse a computer'. I think that description a great compliment because it transmits the full flavor of liberation: it has assisted a number of our most gifted fellow humans in thinking previously impossible thoughts. - Edsger W. Dijkstra +Besides a mathematical inclination, an exceptionally good mastery of one's native tongue is the most vital asset of a competent programmer. - Edsger W. Dijkstra +Simplicity is a great virtue but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better. - Edsger W. Dijkstra +My point today is that, if we wish to count lines of code, we should not regard them as 'lines produced' but as 'lines spent': the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger. - Edsger W. Dijkstra diff --git a/dot_local/share/hackerquotes/knuth b/dot_local/share/hackerquotes/knuth index 87af1a6..603c2c7 100644 --- a/dot_local/share/hackerquotes/knuth +++ b/dot_local/share/hackerquotes/knuth @@ -1,5 +1,5 @@ -Beware of bugs in the above code; I have only proved it correct, not tried it. -Science is knowledge which we understand so well that we can teach it to a computer; and if we don't fully understand something, it is an art to deal with it. -In fact, my main conclusion after spending ten years of my life working on the TEX project is that software is hard. It’s harder than anything else I’ve ever had to do. -Let us change our traditional attitude to the construction of programs: Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do. -The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming. +Beware of bugs in the above code; I have only proved it correct, not tried it. - Donald E. Knuth +Science is knowledge which we understand so well that we can teach it to a computer; and if we don't fully understand something, it is an art to deal with it. - Donald E. Knuth +In fact, my main conclusion after spending ten years of my life working on the TEX project is that software is hard. It’s harder than anything else I’ve ever had to do. - Donald E. Knuth +Let us change our traditional attitude to the construction of programs: Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do. - Donald E. Knuth +The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming. - Donald E. Knuth diff --git a/dot_local/share/hackerquotes/perlis b/dot_local/share/hackerquotes/perlis index c2074e8..7ab1892 100644 --- a/dot_local/share/hackerquotes/perlis +++ b/dot_local/share/hackerquotes/perlis @@ -1,120 +1,120 @@ -One man's constant is another man's variable. -Functions delay binding; data structures induce binding. Moral: Structure data late in the programming process. -Syntactic sugar causes cancer of the semicolon. -Every program is a part of some other program and rarely fits. -If a program manipulates a large amount of data, it does so in a small number of ways. -Symmetry is a complexity-reducing concept (co-routines include subroutines); seek it everywhere. -It is easier to write an incorrect program than understand a correct one. -A programming language is low level when its programs require attention to the irrelevant. -It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures. -Get into a rut early: Do the same process the same way. Accumulate idioms. Standardize. The only difference(!) between Shakespeare and you was the size of his idiom list - not the size of his vocabulary. -If you have a procedure with ten parameters, you probably missed some. -Recursion is the root of computation since it trades description for time. -If two people write exactly the same program, each should be put into microcode and then they certainly won't be the same. -In the long run every program becomes rococo - then rubble. -Everything should be built top-down, except the first time. -Every program has (at least) two purposes: the one for which it was written, and another for which it wasn't. -If a listener nods his head when you're explaining your program, wake him up. -A program without a loop and a structured variable isn't worth writing. -A language that doesn't affect the way you think about programming, is not worth knowing. -Wherever there is modularity there is the potential for misunderstanding: Hiding information implies a need to check communication. -Optimization hinders evolution. -A good system can't have a weak command language. -To understand a program you must become both the machine and the program. -Perhaps if we wrote programs from childhood on, as adults we'd be able to read them. -One can only display complex information in the mind. Like seeing, movement or flow or alteration of view is more important than the static picture, no matter how lovely. -There will always be things we wish to say in our programs that in all known languages can only be said poorly. -Once you understand how to write a program get someone else to write it. -Around computers it is difficult to find the correct unit of time to measure progress. Some cathedrals took a century to complete. Can you imagine the grandeur and scope of a program that would take as long? -For systems, the analogue of a face-lift is to add to the control graph an edge that creates a cycle, not just an additional node. -In programming, everything we do is a special case of something more general -- and often we know it too quickly. -Simplicity does not precede complexity, but follows it. -Programmers are not to be measured by their ingenuity and their logic but by the completeness of their case analysis. -The eleventh commandment was \Thou Shalt Compute\ or \Thou Shalt Not Compute\ - I forget which. -The string is a stark data structure and everywhere it is passed there is much duplication of process. It is a perfect vehicle for hiding information. -Everyone can be taught to sculpt: Michelangelo would have had to be taught not to. So it is with great programmers. -The use of a program to prove the 4-color theorem will not change mathematics - it merely demonstrates that the theorem, a challenge for a century, is probably not important to mathematics. -The most important computer is the one that rages in our skulls and ever seeks that satisfactory external emulator. The standarization of real computers would be a disaster - and so it probably won't happen. -Structured Programming supports the law of the excluded middle. -Re graphics: A picture is worth 10K words - but only those to describe the picture. Hardly any sets of 10K words can be adequately described with pictures. -There are two ways to write error-free programs; only the third one works. -Some programming languages manage to absorb change, but withstand progress. -You can measure a programmer's perspective by noting his attitude on the continuing vitality of FORTRAN. -In software systems, it is often the early bird that makes the worm. -Sometimes I think the only universal in the computing field is the fetch-execute cycle. -The goal of computation is the emulation of our synthetic abilities, not the understanding of our analytic ones. -Like punning, programming is a play on words. -As Will Rogers would have said, \There is no such thing as a free variable.\ -The best book on programming for the layman is \Alice in Wonderland\; but that's because it's the best book on anything for the layman. -Giving up on assembly language was the apple in our Garden of Eden: Languages whose use squanders machine cycles are sinful. The LISP machine now permits LISP programmers to abandon bra and fig-leaf. -When we understand knowledge-based systems, it will be as before -- except our fingertips will have been singed. -Bringing computers into the home won't change either one, but may revitalize the corner saloon. -Systems have sub-systems and sub-systems have sub-systems and so on ad infinitum - which is why we're always starting over. -So many good ideas are never heard from again once they embark in a voyage on the semantic gulf. -Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy. -A LISP programmer knows the value of everything, but the cost of nothing. -Software is under a constant tension. Being symbolic it is arbitrarily perfectible; but also it is arbitrarily changeable. -It is easier to change the specification to fit the program than vice versa. -Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it. -In English every word can be verbed. Would that it were so in our programming languages. -In seeking the unattainable, simplicity only gets in the way. -In programming, as in everything else, to be in error is to be reborn. -In computing, invariants are ephemeral. -When we write programs that \learn\, it turns out that we do and they don't. -Often it is the means that justify the ends: Goals advance technique and technique survives even when goal structures crumble. -Make no mistake about it: Computers process numbers - not symbols. We measure our understanding (and control) by the extent to which we can arithmetize an activity. -Making something variable is easy. Controlling duration of constancy is the trick. -Think of all the psychic energy expended in seeking a fundamental distinction between 'algorithm' and 'program'. -If we believe in data structures, we must believe in independent (hence simultaneous) processing. For why else would we collect items within a structure? Why do we tolerate languages that give us the one without the other? -In a 5 year period we get one superb programming language. Only we can't control when the 5 year period will be. -Over the centuries the Indians developed sign language for communicating phenomena of interest. Programmers from different tribes (FORTRAN, LISP, ALGOL, SNOBOL, etc.) could use one that doesn't require them to carry a blackboard on their ponies. -Documentation is like term insurance: It satisfies because almost no one who subscribes to it depends on its benefits. -An adequate bootstrap is a contradiction in terms. -It is not a language's weakness but its strengths that control the gradient of its change: Alas, a language never escapes its embryonic sac. -Is it possible that software is not like anything else, that it is meant to be discarded: that the whole point is to see it as a soap bubble? -Because of its vitality, the computing field is always in desperate need of new cliches: Banality soothes our nerves. -It is the user who should parameterize procedures, not their creators. -The cybernetic exchange between man, computer and algorithm is like a game of musical chairs: The frantic search for balance always leaves one of the three standing ill at ease. -If your computer speaks English, it was probably made in Japan. -A year spent in artificial intelligence is enough to make one believe in God. -Prolonged contact with the computer turns mathematicians into clerks and vice versa. -In computing, turning the obvious into the useful is a living definition of the word \frustration\. -We are on the verge: Today our program proved Fermat's next-to-last theorem. -What is the difference between a Turing machine and the modern computer? It's the same as that between Hillary's ascent of Everest and the establishment of a Hilton hotel on its peak. -Motto for a research laboratory: What we work on today, others will first think of tomorrow. -Though the Chinese should adore APL, it's FORTRAN they put their money on. -We kid ourselves if we think that the ratio of procedure to data in an active data-base system can be made arbitrarily small or even kept small. -We have the mini and the micro computer. In what semantic niche would the pico computer fall? -It is not the computer's fault that Maxwell's equations are not adequate to design the electric motor. -One does not learn computing by using a hand calculator, but one can forget arithmetic. -Computation has made the tree flower. -The computer reminds one of Lon Chaney -- it is the machine of a thousand faces. -The computer is the ultimate polluter: its feces are indistinguish- able from the food it produces. -When someone says \I want a programming language in which I need only say what I wish done,\ give him a lollipop. -Interfaces keep things tidy, but don't accelerate growth: Functions do. -Don't have good ideas if you aren't willing to be responsible for them. -Computers don't introduce order anywhere as much as they expose opportunities. -When a professor insists computer science is X but not Y, have compassion for his graduate students. -In computing, the mean time to failure keeps getting shorter. -In man-machine symbiosis, it is man who must adjust: The machines can't. -We will never run out of things to program as long as there is a single program around. -Dealing with failure is easy: Work hard to improve. Success is also easy to handle: You've solved the wrong problem. Work hard to improve. -One can't proceed from the informal to the formal by formal means. -Purely applicative languages are poorly applicable. -The proof of a system's value is its existence. -You can't communicate complexity, only an awareness of it. -It's difficult to extract sense from strings, but they're the only communication coin we can count on. -The debate rages on: is PL/I Bachtrian or Dromedary? -Whenever two programmers meet to criticize their programs, both are silent. -Think of it! With VLSI we can pack 100 ENIACS in 1 sq. cm. -Editing is a rewording activity. -Why did the Roman Empire collapse? What is Latin for office automation? -Computer Science is embarrassed by the computer. -The only constructive theory connecting neuroscience and psychology will arise from the study of software. -Within a computer natural language is unnatural. -Most people find the concept of programming obvious, but the doing impossible. -You think you know when you can learn, are more sure when you can write, even more when you can teach, but certain when you can program. -It goes against the grain of modern education to teach children to program. What fun is there in making plans, acquiring discipline in organizing thoughts, devoting attention to detail and learning to be self-critical? -If you can imagine a society in which the computer- robot is the only menial, you can imagine anything. -Programming is an unnatural act. -Adapting old programs to fit new machines usually means adapting new machines to behave like old ones. \ No newline at end of file +One man's constant is another man's variable. - Alan J. Perlis +Functions delay binding; data structures induce binding. Moral: Structure data late in the programming process. - Alan J. Perlis +Syntactic sugar causes cancer of the semicolon. - Alan J. Perlis +Every program is a part of some other program and rarely fits. - Alan J. Perlis +If a program manipulates a large amount of data, it does so in a small number of ways. - Alan J. Perlis +Symmetry is a complexity-reducing concept (co-routines include subroutines); seek it everywhere. - Alan J. Perlis +It is easier to write an incorrect program than understand a correct one. - Alan J. Perlis +A programming language is low level when its programs require attention to the irrelevant. - Alan J. Perlis +It is better to have 100 functions operate on one data structure than 10 functions on 10 data structures. - Alan J. Perlis +Get into a rut early: Do the same process the same way. Accumulate idioms. Standardize. The only difference(!) between Shakespeare and you was the size of his idiom list - not the size of his vocabulary. - Alan J. Perlis +If you have a procedure with ten parameters, you probably missed some. - Alan J. Perlis +Recursion is the root of computation since it trades description for time. - Alan J. Perlis +If two people write exactly the same program, each should be put into microcode and then they certainly won't be the same. - Alan J. Perlis +In the long run every program becomes rococo - then rubble. - Alan J. Perlis +Everything should be built top-down, except the first time. - Alan J. Perlis +Every program has (at least) two purposes: the one for which it was written, and another for which it wasn't. - Alan J. Perlis +If a listener nods his head when you're explaining your program, wake him up. - Alan J. Perlis +A program without a loop and a structured variable isn't worth writing. - Alan J. Perlis +A language that doesn't affect the way you think about programming, is not worth knowing. - Alan J. Perlis +Wherever there is modularity there is the potential for misunderstanding: Hiding information implies a need to check communication. - Alan J. Perlis +Optimization hinders evolution. - Alan J. Perlis +A good system can't have a weak command language. - Alan J. Perlis +To understand a program you must become both the machine and the program. - Alan J. Perlis +Perhaps if we wrote programs from childhood on, as adults we'd be able to read them. - Alan J. Perlis +One can only display complex information in the mind. Like seeing, movement or flow or alteration of view is more important than the static picture, no matter how lovely. - Alan J. Perlis +There will always be things we wish to say in our programs that in all known languages can only be said poorly. - Alan J. Perlis +Once you understand how to write a program get someone else to write it. - Alan J. Perlis +Around computers it is difficult to find the correct unit of time to measure progress. Some cathedrals took a century to complete. Can you imagine the grandeur and scope of a program that would take as long? - Alan J. Perlis +For systems, the analogue of a face-lift is to add to the control graph an edge that creates a cycle, not just an additional node. - Alan J. Perlis +In programming, everything we do is a special case of something more general -- and often we know it too quickly. - Alan J. Perlis +Simplicity does not precede complexity, but follows it. - Alan J. Perlis +Programmers are not to be measured by their ingenuity and their logic but by the completeness of their case analysis. - Alan J. Perlis +The eleventh commandment was \Thou Shalt Compute\ or \Thou Shalt Not Compute\ - I forget which. - Alan J. Perlis +The string is a stark data structure and everywhere it is passed there is much duplication of process. It is a perfect vehicle for hiding information. - Alan J. Perlis +Everyone can be taught to sculpt: Michelangelo would have had to be taught not to. So it is with great programmers. - Alan J. Perlis +The use of a program to prove the 4-color theorem will not change mathematics - it merely demonstrates that the theorem, a challenge for a century, is probably not important to mathematics. - Alan J. Perlis +The most important computer is the one that rages in our skulls and ever seeks that satisfactory external emulator. The standarization of real computers would be a disaster - and so it probably won't happen. - Alan J. Perlis +Structured Programming supports the law of the excluded middle. - Alan J. Perlis +Re graphics: A picture is worth 10K words - but only those to describe the picture. Hardly any sets of 10K words can be adequately described with pictures. - Alan J. Perlis +There are two ways to write error-free programs; only the third one works. - Alan J. Perlis +Some programming languages manage to absorb change, but withstand progress. - Alan J. Perlis +You can measure a programmer's perspective by noting his attitude on the continuing vitality of FORTRAN. - Alan J. Perlis +In software systems, it is often the early bird that makes the worm. - Alan J. Perlis +Sometimes I think the only universal in the computing field is the fetch-execute cycle. - Alan J. Perlis +The goal of computation is the emulation of our synthetic abilities, not the understanding of our analytic ones. - Alan J. Perlis +Like punning, programming is a play on words. - Alan J. Perlis +As Will Rogers would have said, \There is no such thing as a free variable. - Alan J. Perlis +The best book on programming for the layman is \Alice in Wonderland\; but that's because it's the best book on anything for the layman. - Alan J. Perlis +Giving up on assembly language was the apple in our Garden of Eden: Languages whose use squanders machine cycles are sinful. The LISP machine now permits LISP programmers to abandon bra and fig-leaf. - Alan J. Perlis +When we understand knowledge-based systems, it will be as before -- except our fingertips will have been singed. - Alan J. Perlis +Bringing computers into the home won't change either one, but may revitalize the corner saloon. - Alan J. Perlis +Systems have sub-systems and sub-systems have sub-systems and so on ad infinitum - which is why we're always starting over. - Alan J. Perlis +So many good ideas are never heard from again once they embark in a voyage on the semantic gulf. - Alan J. Perlis +Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy. - Alan J. Perlis +A LISP programmer knows the value of everything, but the cost of nothing. - Alan J. Perlis +Software is under a constant tension. Being symbolic it is arbitrarily perfectible; but also it is arbitrarily changeable. - Alan J. Perlis +It is easier to change the specification to fit the program than vice versa. - Alan J. Perlis +Fools ignore complexity. Pragmatists suffer it. Some can avoid it. Geniuses remove it. - Alan J. Perlis +In English every word can be verbed. Would that it were so in our programming languages. - Alan J. Perlis +In seeking the unattainable, simplicity only gets in the way. - Alan J. Perlis +In programming, as in everything else, to be in error is to be reborn. - Alan J. Perlis +In computing, invariants are ephemeral. - Alan J. Perlis +When we write programs that \learn\, it turns out that we do and they don't. - Alan J. Perlis +Often it is the means that justify the ends: Goals advance technique and technique survives even when goal structures crumble. - Alan J. Perlis +Make no mistake about it: Computers process numbers - not symbols. We measure our understanding (and control) by the extent to which we can arithmetize an activity. - Alan J. Perlis +Making something variable is easy. Controlling duration of constancy is the trick. - Alan J. Perlis +Think of all the psychic energy expended in seeking a fundamental distinction between 'algorithm' and 'program'. - Alan J. Perlis +If we believe in data structures, we must believe in independent (hence simultaneous) processing. For why else would we collect items within a structure? Why do we tolerate languages that give us the one without the other? - Alan J. Perlis +In a 5 year period we get one superb programming language. Only we can't control when the 5 year period will be. - Alan J. Perlis +Over the centuries the Indians developed sign language for communicating phenomena of interest. Programmers from different tribes (FORTRAN, LISP, ALGOL, SNOBOL, etc.) could use one that doesn't require them to carry a blackboard on their ponies. - Alan J. Perlis +Documentation is like term insurance: It satisfies because almost no one who subscribes to it depends on its benefits. - Alan J. Perlis +An adequate bootstrap is a contradiction in terms. - Alan J. Perlis +It is not a language's weakness but its strengths that control the gradient of its change: Alas, a language never escapes its embryonic sac. - Alan J. Perlis +Is it possible that software is not like anything else, that it is meant to be discarded: that the whole point is to see it as a soap bubble? - Alan J. Perlis +Because of its vitality, the computing field is always in desperate need of new cliches: Banality soothes our nerves. - Alan J. Perlis +It is the user who should parameterize procedures, not their creators. - Alan J. Perlis +The cybernetic exchange between man, computer and algorithm is like a game of musical chairs: The frantic search for balance always leaves one of the three standing ill at ease. - Alan J. Perlis +If your computer speaks English, it was probably made in Japan. - Alan J. Perlis +A year spent in artificial intelligence is enough to make one believe in God. - Alan J. Perlis +Prolonged contact with the computer turns mathematicians into clerks and vice versa. - Alan J. Perlis +In computing, turning the obvious into the useful is a living definition of the word \frustration\. - Alan J. Perlis +We are on the verge: Today our program proved Fermat's next-to-last theorem. - Alan J. Perlis +What is the difference between a Turing machine and the modern computer? It's the same as that between Hillary's ascent of Everest and the establishment of a Hilton hotel on its peak. - Alan J. Perlis +Motto for a research laboratory: What we work on today, others will first think of tomorrow. - Alan J. Perlis +Though the Chinese should adore APL, it's FORTRAN they put their money on. - Alan J. Perlis +We kid ourselves if we think that the ratio of procedure to data in an active data-base system can be made arbitrarily small or even kept small. - Alan J. Perlis +We have the mini and the micro computer. In what semantic niche would the pico computer fall? - Alan J. Perlis +It is not the computer's fault that Maxwell's equations are not adequate to design the electric motor. - Alan J. Perlis +One does not learn computing by using a hand calculator, but one can forget arithmetic. - Alan J. Perlis +Computation has made the tree flower. - Alan J. Perlis +The computer reminds one of Lon Chaney -- it is the machine of a thousand faces. - Alan J. Perlis +The computer is the ultimate polluter: its feces are indistinguish- able from the food it produces. - Alan J. Perlis +When someone says \I want a programming language in which I need only say what I wish done, give him a lollipop. - Alan J. Perlis +Interfaces keep things tidy, but don't accelerate growth: Functions do. - Alan J. Perlis +Don't have good ideas if you aren't willing to be responsible for them. - Alan J. Perlis +Computers don't introduce order anywhere as much as they expose opportunities. - Alan J. Perlis +When a professor insists computer science is X but not Y, have compassion for his graduate students. - Alan J. Perlis +In computing, the mean time to failure keeps getting shorter. - Alan J. Perlis +In man-machine symbiosis, it is man who must adjust: The machines can't. - Alan J. Perlis +We will never run out of things to program as long as there is a single program around. - Alan J. Perlis +Dealing with failure is easy: Work hard to improve. Success is also easy to handle: You've solved the wrong problem. Work hard to improve. - Alan J. Perlis +One can't proceed from the informal to the formal by formal means. - Alan J. Perlis +Purely applicative languages are poorly applicable. - Alan J. Perlis +The proof of a system's value is its existence. - Alan J. Perlis +You can't communicate complexity, only an awareness of it. - Alan J. Perlis +It's difficult to extract sense from strings, but they're the only communication coin we can count on. - Alan J. Perlis +The debate rages on: is PL/I Bachtrian or Dromedary? - Alan J. Perlis +Whenever two programmers meet to criticize their programs, both are silent. - Alan J. Perlis +Think of it! With VLSI we can pack 100 ENIACS in 1 sq. cm. - Alan J. Perlis +Editing is a rewording activity. - Alan J. Perlis +Why did the Roman Empire collapse? What is Latin for office automation? - Alan J. Perlis +Computer Science is embarrassed by the computer. - Alan J. Perlis +The only constructive theory connecting neuroscience and psychology will arise from the study of software. - Alan J. Perlis +Within a computer natural language is unnatural. - Alan J. Perlis +Most people find the concept of programming obvious, but the doing impossible. - Alan J. Perlis +You think you know when you can learn, are more sure when you can write, even more when you can teach, but certain when you can program. - Alan J. Perlis +It goes against the grain of modern education to teach children to program. What fun is there in making plans, acquiring discipline in organizing thoughts, devoting attention to detail and learning to be self-critical? - Alan J. Perlis +If you can imagine a society in which the computer- robot is the only menial, you can imagine anything. - Alan J. Perlis +Programming is an unnatural act. - Alan J. Perlis +Adapting old programs to fit new machines usually means adapting new machines to behave like old ones. - Alan J. Perlis diff --git a/dot_local/share/hackerquotes/torvalds b/dot_local/share/hackerquotes/torvalds index 9e61201..5badb4d 100644 --- a/dot_local/share/hackerquotes/torvalds +++ b/dot_local/share/hackerquotes/torvalds @@ -1,3 +1,3 @@ -Talk is cheap. Show me the code. -Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program. -I'm an egotistical bastard, and I name all my projects after myself. First Linux, now git. \ No newline at end of file +Talk is cheap. Show me the code. - Linus Torvalds +Most good programmers do programming not because they expect to get paid or get adulation by the public, but because it is fun to program. - Linus Torvalds +I'm an egotistical bastard, and I name all my projects after myself. First Linux, now git. - Linus Torvalds From 0c2254786b2ee3ce1da3a479fe32ff5ca6eba71f Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 5 Oct 2023 14:59:45 +0200 Subject: [PATCH 47/87] another update to zshrc --- dot_config/zsh/dot_zshrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 48731c0..ca16d86 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -5,10 +5,10 @@ test "x$TERMINALNAME" = "xalacritty" && eval "$(zellij setup --generate-auto-sta potentialBanner=('joke bofh' 'joke dad' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq misc' 'colorscript random' 'fastfetch') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" +# source plugins +eval "$(sheldon source)" + # theme potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json') export POSH_THEME="$XDG_DATA_HOME/omp/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" eval "$(oh-my-posh init zsh)" - -# and source plugins -eval "$(sheldon source)" From 37b56e59cf9667c0217c91d9247f202dc98e11c1 Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 5 Oct 2023 15:14:56 +0200 Subject: [PATCH 48/87] updated sheldon --- dot_config/sheldon/plugins.toml | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index e2a3ba3..c6133dd 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -8,13 +8,9 @@ inline = 'stty -ixon' local = "~/.local/share/zsh/config" use = ["env.zsh"] -[plugins.p10kconfig] -local = "~/.config/zsh/" -use = [".p10k.zsh"] - [plugins.compinit] local = "~/.config/zsh/files/" -use = ["compinit.zsh"] +use = ["{compinit,sshcomp,evalstuff,aliases,functions,distroicon}.zsh"] # completions [plugins.completions] @@ -71,9 +67,6 @@ github = "MichaelAquilina/zsh-you-should-use" [plugins.autosuggestions] github = "zsh-users/zsh-autosuggestions" -#[plugins.autocomplete] -#github = "marlonrichert/zsh-autocomplete" - [plugins.syntaxhighlighting] github = "zsh-users/zsh-syntax-highlighting" @@ -84,23 +77,6 @@ github = "asdf-vm/asdf" github = "olets/zsh-abbr" use = ["zsh-abbr.zsh"] -[plugins.sshcomp] -local = "~/.config/zsh/files/" -use = ["sshcomp.zsh"] - -# themes -#[plugins.powerlevel10k] -#github = "romkatv/powerlevel10k" - -# evals -[plugins.evalstuff] -local = "~/.config/zsh/files/" -use = ["evalstuff.zsh"] - -[plugins.ownfiles] -local = "~/.config/zsh/files/" -use = ["{aliases,functions,distroicon}.zsh"] - [plugins.bashcomps] local = "~/.config/zsh/files/" use = ["bashcomps.zsh"] From 3e98433d86c22e6f69dac2b1aab3d3cda52dbe8a Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 5 Oct 2023 15:27:52 +0200 Subject: [PATCH 49/87] updated sheldon --- dot_config/sheldon/plugins.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index c6133dd..f2f79c5 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -10,7 +10,7 @@ use = ["env.zsh"] [plugins.compinit] local = "~/.config/zsh/files/" -use = ["{compinit,sshcomp,evalstuff,aliases,functions,distroicon}.zsh"] +use = ["{compinit,sshcomp,aliases,functions,distroicon}.zsh"] # completions [plugins.completions] @@ -80,3 +80,7 @@ use = ["zsh-abbr.zsh"] [plugins.bashcomps] local = "~/.config/zsh/files/" use = ["bashcomps.zsh"] + +[plugins.evalstuff] +local = "~/.config/zsh/files/" +use = ["evalstuff.zsh"] From 458766921509cef5a5c91fc2447b009cc746545b Mon Sep 17 00:00:00 2001 From: eeleater Date: Fri, 6 Oct 2023 04:26:50 +0000 Subject: [PATCH 50/87] Update .chezmoiexternal.toml --- .chezmoiexternal.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.chezmoiexternal.toml b/.chezmoiexternal.toml index dd69ce0..a29f79c 100644 --- a/.chezmoiexternal.toml +++ b/.chezmoiexternal.toml @@ -1,9 +1,8 @@ [".local/share/zsh/config"] type = "git-repo" url = "git@git.eeleater.org:eeleater/dotfiles_private.git" + refreshPeriod = "24h" [".local/share/omp"] type = "git-repo" url = "https://github.com/JanDeDobbeleer/oh-my-posh.git" - stripComponents = 1 - exact = true - refreshPeriod = "168h" \ No newline at end of file + refreshPeriod = "24h" From 0eaba626899582193f489911da855fb4cc2ec1aa Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 10 Oct 2023 14:50:07 +0200 Subject: [PATCH 51/87] changed topgrade config --- dot_config/topgrade.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index ca03fc1..03b2961 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", "rustup"] +disable = ["firmware", "tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes", "flatpak", "shell", "rustup", "dotnet"] # Skip Notify skip_notify = true From efca7fa0fbe8ce1512931ad1bacf0bfe3d0bb9a5 Mon Sep 17 00:00:00 2001 From: eeleater Date: Tue, 24 Oct 2023 08:19:53 +0000 Subject: [PATCH 52/87] Update topgrade.toml --- dot_config/topgrade.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index 03b2961..97d9aaa 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", "rustup", "dotnet"] +disable = ["firmware", "tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes", "flatpak", "shell", "rustup", "dotnet", "vscode", "powershell", "snap"] # Skip Notify skip_notify = true From 8330480496b83294e0d0f0aa50e5c596c68dbc02 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Fri, 27 Oct 2023 19:41:01 +0200 Subject: [PATCH 53/87] fixed ohmyposh mangling atuin --- dot_config/kitty/kitty.conf | 2 +- dot_config/zsh/dot_zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index 62b78fe..7bf2ff0 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -4,7 +4,7 @@ copy_on_select no strip_trailing_spaces smart window_padding_width 5 enable_audio_bell no -shell_integration enabled +shell_integration disabled # Fonts font_family FiraCode Nerd Font diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index ca16d86..3d11cb4 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -9,6 +9,6 @@ eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" eval "$(sheldon source)" # theme -potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json' 'pure.omp.json' 'uew.omp.json') +potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json') export POSH_THEME="$XDG_DATA_HOME/omp/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" eval "$(oh-my-posh init zsh)" From 288f93e00863d01f2f60177db9186863598338d3 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Fri, 27 Oct 2023 19:41:35 +0200 Subject: [PATCH 54/87] new kitty theme --- dot_config/kitty/current-theme.conf | 53 +++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 dot_config/kitty/current-theme.conf diff --git a/dot_config/kitty/current-theme.conf b/dot_config/kitty/current-theme.conf new file mode 100644 index 0000000..b27902e --- /dev/null +++ b/dot_config/kitty/current-theme.conf @@ -0,0 +1,53 @@ +## name: Rosé Pine Moon +## author: mvllow +## license: MIT +## upstream: https://github.com/rose-pine/kitty/blob/main/dist/rose-pine-moon.conf +## blurb: All natural pine, faux fur and a bit of soho vibes for the classy minimalist + +foreground #e0def4 +background #232136 +selection_foreground #e0def4 +selection_background #44415a + +cursor #56526e +cursor_text_color #e0def4 + +url_color #c4a7e7 + +active_tab_foreground #e0def4 +active_tab_background #393552 +inactive_tab_foreground #6e6a86 +inactive_tab_background #232136 + +# black +color0 #393552 +color8 #6e6a86 + +# red +color1 #eb6f92 +color9 #eb6f92 + +# green +color2 #3e8fb0 +color10 #3e8fb0 + +# yellow +color3 #f6c177 +color11 #f6c177 + +# blue +color4 #9ccfd8 +color12 #9ccfd8 + +# magenta +color5 #c4a7e7 +color13 #c4a7e7 + +# cyan +color6 #ea9a97 +color14 #ea9a97 + +# white +color7 #e0def4 +color15 #e0def4 + From 51360497812ab2205d941aa8d18773e808041a18 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 14 Nov 2023 08:40:38 +0100 Subject: [PATCH 55/87] temp fix for eza ls alias --- dot_config/zsh/files/aliases.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot_config/zsh/files/aliases.zsh b/dot_config/zsh/files/aliases.zsh index d691777..b032b53 100644 --- a/dot_config/zsh/files/aliases.zsh +++ b/dot_config/zsh/files/aliases.zsh @@ -1,3 +1,6 @@ +# temp fix for eza +alias ls='eza -Fgh --group-directories-first --git --git-ignore --icons --color-scale all --hyperlink' + alias grep='rg' alias find='fd' From 282553bef3c07da9408551ed87c7b262eceb96fa Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 21 Nov 2023 07:47:47 +0100 Subject: [PATCH 56/87] temp fix for eza ls alias removed --- dot_config/zsh/files/aliases.zsh | 3 --- 1 file changed, 3 deletions(-) diff --git a/dot_config/zsh/files/aliases.zsh b/dot_config/zsh/files/aliases.zsh index b032b53..d691777 100644 --- a/dot_config/zsh/files/aliases.zsh +++ b/dot_config/zsh/files/aliases.zsh @@ -1,6 +1,3 @@ -# temp fix for eza -alias ls='eza -Fgh --group-directories-first --git --git-ignore --icons --color-scale all --hyperlink' - alias grep='rg' alias find='fd' From 9f7297bda5499ec8ddd5547f6659bf8238053929 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 21 Nov 2023 11:35:06 +0100 Subject: [PATCH 57/87] added new config for rustup folder --- dot_config/zsh/dot_zshenv | 1 + 1 file changed, 1 insertion(+) diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index 80a93d8..b80c522 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -39,6 +39,7 @@ export NB_DIR="$XDG_DATA_HOME"/nb export DSTASK_GIT_REPO="$XDG_DATA_HOME"/dstask export WAKATIME_HOME="$XDG_DATA_HOME"/wakatime export WINEPREFIX="$XDG_DATA_HOME"/wine +export RUSTUP_HOME="$XDG_DATA_HOME"/rustup #export GNUPGHOME="$XDG_DATA_HOME"/gnupg export W3M_DIR="$XDG_DATA_HOME"/w3m export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates From 54709c58e01a7758aa350de0642aa4a8ae1a0c6b Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Mon, 27 Nov 2023 08:39:55 +0100 Subject: [PATCH 58/87] shuffled some stuff around --- dot_config/kitty/current-theme.conf | 84 ++++++++++++----------------- dot_config/kitty/kitty.conf | 2 +- dot_config/sheldon/plugins.toml | 7 ++- dot_config/zsh/dot_zshenv | 2 +- 4 files changed, 41 insertions(+), 54 deletions(-) diff --git a/dot_config/kitty/current-theme.conf b/dot_config/kitty/current-theme.conf index b27902e..627ba40 100644 --- a/dot_config/kitty/current-theme.conf +++ b/dot_config/kitty/current-theme.conf @@ -1,53 +1,35 @@ -## name: Rosé Pine Moon -## author: mvllow +# vim:ft=kitty +## name: Dracula +## author: Keegan Carruthers-Smith ## license: MIT -## upstream: https://github.com/rose-pine/kitty/blob/main/dist/rose-pine-moon.conf -## blurb: All natural pine, faux fur and a bit of soho vibes for the classy minimalist - -foreground #e0def4 -background #232136 -selection_foreground #e0def4 -selection_background #44415a - -cursor #56526e -cursor_text_color #e0def4 - -url_color #c4a7e7 - -active_tab_foreground #e0def4 -active_tab_background #393552 -inactive_tab_foreground #6e6a86 -inactive_tab_background #232136 - -# black -color0 #393552 -color8 #6e6a86 - -# red -color1 #eb6f92 -color9 #eb6f92 - -# green -color2 #3e8fb0 -color10 #3e8fb0 - -# yellow -color3 #f6c177 -color11 #f6c177 - -# blue -color4 #9ccfd8 -color12 #9ccfd8 - -# magenta -color5 #c4a7e7 -color13 #c4a7e7 - -# cyan -color6 #ea9a97 -color14 #ea9a97 - -# white -color7 #e0def4 -color15 #e0def4 +## upstream: https://raw.githubusercontent.com/dracula/kitty/master/dracula.conf +foreground #f8f8f2 +background #282a36 +selection_foreground #ffffff +selection_background #44475a +url_color #8be9fd +color0 #21222c +color8 #6272a4 +color1 #ff5555 +color9 #ff6e6e +color2 #50fa7b +color10 #69ff94 +color3 #f1fa8c +color11 #ffffa5 +color4 #bd93f9 +color12 #d6acff +color5 #ff79c6 +color13 #ff92df +color6 #8be9fd +color14 #a4ffff +color7 #f8f8f2 +color15 #ffffff +cursor #f8f8f2 +cursor_text_color background +active_tab_foreground #282a36 +active_tab_background #f8f8f2 +inactive_tab_foreground #282a36 +inactive_tab_background #6272a4 +mark1_foreground #282a36 +mark1_background #ff5555 diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf index 7bf2ff0..d4c30d8 100644 --- a/dot_config/kitty/kitty.conf +++ b/dot_config/kitty/kitty.conf @@ -10,6 +10,6 @@ shell_integration disabled font_family FiraCode Nerd Font # BEGIN_KITTY_THEME -# Rosé Pine Moon +# Dracula include current-theme.conf # END_KITTY_THEME diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index f2f79c5..998f2c0 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -10,7 +10,7 @@ use = ["env.zsh"] [plugins.compinit] local = "~/.config/zsh/files/" -use = ["{compinit,sshcomp,aliases,functions,distroicon}.zsh"] +use = ["compinit.zsh"] # completions [plugins.completions] @@ -84,3 +84,8 @@ use = ["bashcomps.zsh"] [plugins.evalstuff] local = "~/.config/zsh/files/" use = ["evalstuff.zsh"] + +[plugins.ownconfigs] +local = "~/.config/zsh/files/" +use = ["{sshcomp,aliases,functions,distroicon}.zsh"] + diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index b80c522..2bda25f 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -40,7 +40,7 @@ export DSTASK_GIT_REPO="$XDG_DATA_HOME"/dstask export WAKATIME_HOME="$XDG_DATA_HOME"/wakatime export WINEPREFIX="$XDG_DATA_HOME"/wine export RUSTUP_HOME="$XDG_DATA_HOME"/rustup -#export GNUPGHOME="$XDG_DATA_HOME"/gnupg +export GNUPGHOME="$XDG_DATA_HOME"/gnupg export W3M_DIR="$XDG_DATA_HOME"/w3m export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates From 2e55c7385a5f6a2202831ec06761f2c3e2d9eeee Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Fri, 1 Dec 2023 10:51:18 +0100 Subject: [PATCH 59/87] added local source file overrides --- dot_config/zsh/dot_zshenv | 5 +++-- dot_config/zsh/dot_zshrc | 3 +++ dot_config/zsh/files/sshcomp.zsh | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index 2bda25f..fb046e3 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -1,6 +1,6 @@ -# deduplicate path and add local bin to path +# deduplicate path and add local bin to path typeset -U path PATH -export PATH="$HOME"/.local/bin:"$PATH" +export PATH="$HOME"/.local/bin:"$XDG_DATA_HOME"/JetBrains/Toolbox/scripts:"$PATH" # xdg stuff export XDG_CACHE_HOME="$HOME"/.cache @@ -43,6 +43,7 @@ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup export GNUPGHOME="$XDG_DATA_HOME"/gnupg export W3M_DIR="$XDG_DATA_HOME"/w3m export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates +export PATH="$XDG_DATA_HOME"/JetBrains/Toolbox/scripts:"$PATH" # other programs export LESSHISTFILE="$XDG_STATE_HOME"/less/history diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 3d11cb4..a6cb68f 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -8,6 +8,9 @@ eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" # source plugins eval "$(sheldon source)" +# local overrides +for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done + # theme potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json') export POSH_THEME="$XDG_DATA_HOME/omp/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" diff --git a/dot_config/zsh/files/sshcomp.zsh b/dot_config/zsh/files/sshcomp.zsh index 33fc146..799786b 100644 --- a/dot_config/zsh/files/sshcomp.zsh +++ b/dot_config/zsh/files/sshcomp.zsh @@ -9,7 +9,7 @@ zstyle ':completion:*:(ssh|mosh):*' group-order users hosts-domain hosts-host us zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:users' ignored-patterns '*' zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-host' ignored-patterns '*(.|:)*' loopback localhost broadcasthost 'ip6-*' 'hbz*' zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*.eeleater.org' '*.hbz-nrw.de' -zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.*' '255.255.255.255' '::1' 'fe80::*' 'ff02::*' +zstyle ':completion:*:(ssh|scp|sshfs|mosh|rsync):*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.*' '255.255.255.255' '::1' 'fe80::*' 'ff02::*' [ -r ~/.ssh/config ] && _ssh_config=($(cat ~/.ssh/config | sed -ne 's/Host[=\t ]//p')) || _ssh_config=() [ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$( Date: Thu, 7 Dec 2023 12:55:52 +0100 Subject: [PATCH 60/87] changed around the path stuff a bit --- dot_config/sheldon/plugins.toml | 5 +---- dot_config/zsh/dot_zshenv | 7 ++----- dot_config/zsh/dot_zshrc | 6 ++++++ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 998f2c0..c23428d 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -52,10 +52,7 @@ github = "amyreese/zsh-titles" [plugins.thefuck] github = "laggardkernel/zsh-thefuck" -[plugins.oath] -github = "alexdesousa/oath" - -[plugins.exa] +[plugins.eza] github = "twopizza9621536/zsh-eza" [plugins.bat] diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index fb046e3..dfa8f73 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -1,7 +1,3 @@ -# deduplicate path and add local bin to path -typeset -U path PATH -export PATH="$HOME"/.local/bin:"$XDG_DATA_HOME"/JetBrains/Toolbox/scripts:"$PATH" - # xdg stuff export XDG_CACHE_HOME="$HOME"/.cache export XDG_CONFIG_HOME="$HOME"/.config @@ -43,7 +39,7 @@ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup export GNUPGHOME="$XDG_DATA_HOME"/gnupg export W3M_DIR="$XDG_DATA_HOME"/w3m export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates -export PATH="$XDG_DATA_HOME"/JetBrains/Toolbox/scripts:"$PATH" +#export PATH="$XDG_DATA_HOME"/JetBrains/Toolbox/scripts:"$PATH" # other programs export LESSHISTFILE="$XDG_STATE_HOME"/less/history @@ -56,6 +52,7 @@ export PYTHONSTARTUP=/etc/python/pythonrc export ZELLIJ_AUTO_ATTACH=true export ZELLIJ_AUTO_EXIT=true export TERMINALNAME=$(fastfetch --pipe 2>/dev/null | grep Terminal: | awk '{print $2}') +export MANROFFOPT="-c" # zsh specific export SAVEHIST=$(( 100 * 1000 )) diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index a6cb68f..7fb558e 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -1,6 +1,12 @@ test -v DISTROBOX_HOST_HOME && { unset ZDOTDIR; exec zsh } # fix distrobox test "x$TERMINALNAME" = "xalacritty" && eval "$(zellij setup --generate-auto-start zsh)" # autostart zellij only in alacritty +# deduplicate path and add several other paths to PATH +typeset -U path PATH +export PATH="$HOME"/.local/bin:"$PATH" # local bin +export PATH="$XDG_DATA_HOME"/JetBrains/Toolbox/scripts:"$PATH" # jetbrains toolbox +export PATH=/usr/lib/jvm/default/bin:"$PATH" # java on archlinux + # startup banner potentialBanner=('joke bofh' 'joke dad' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq misc' 'colorscript random' 'fastfetch') eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" From 21b19c6af3cff9767ccd59b4197dfd9f9865e06a Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Thu, 7 Dec 2023 21:07:12 +0100 Subject: [PATCH 61/87] added some options --- dot_config/sheldon/plugins.toml | 5 +---- dot_config/zsh/dot_zshenv | 2 +- dot_config/zsh/dot_zshrc | 7 +++---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index c23428d..3e175c7 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -1,9 +1,6 @@ shell = "zsh" # own files -[plugins.disableflow] -inline = 'stty -ixon' - [plugins.localenv] local = "~/.local/share/zsh/config" use = ["env.zsh"] @@ -84,5 +81,5 @@ use = ["evalstuff.zsh"] [plugins.ownconfigs] local = "~/.config/zsh/files/" -use = ["{sshcomp,aliases,functions,distroicon}.zsh"] +use = ["{options,sshcomp,aliases,functions,distroicon}.zsh"] diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index dfa8f73..d999060 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -51,7 +51,7 @@ export PYTHONSTARTUP=/etc/python/pythonrc # stuff export ZELLIJ_AUTO_ATTACH=true export ZELLIJ_AUTO_EXIT=true -export TERMINALNAME=$(fastfetch --pipe 2>/dev/null | grep Terminal: | awk '{print $2}') +export TERMINALNAME=$(fastfetch --pipe -s Terminal 2>/dev/null | awk '{print $2}') export MANROFFOPT="-c" # zsh specific diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 7fb558e..67dee35 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -1,11 +1,10 @@ test -v DISTROBOX_HOST_HOME && { unset ZDOTDIR; exec zsh } # fix distrobox test "x$TERMINALNAME" = "xalacritty" && eval "$(zellij setup --generate-auto-start zsh)" # autostart zellij only in alacritty -# deduplicate path and add several other paths to PATH +# deduplicate path typeset -U path PATH -export PATH="$HOME"/.local/bin:"$PATH" # local bin -export PATH="$XDG_DATA_HOME"/JetBrains/Toolbox/scripts:"$PATH" # jetbrains toolbox -export PATH=/usr/lib/jvm/default/bin:"$PATH" # java on archlinux +path+=("$XDG_DATA_HOME"/JetBrains/Toolbox/scripts) # jetbrains toolbox +path+=("$HOME/.local/bin) # local bin # startup banner potentialBanner=('joke bofh' 'joke dad' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq misc' 'colorscript random' 'fastfetch') From 6481f6f8c99126df0b495fed8781b97748f28d9c Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Thu, 7 Dec 2023 21:08:26 +0100 Subject: [PATCH 62/87] fixed a missing doublequote --- dot_config/zsh/dot_zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 67dee35..346a138 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -4,7 +4,7 @@ test "x$TERMINALNAME" = "xalacritty" && eval "$(zellij setup --generate-auto-sta # deduplicate path typeset -U path PATH path+=("$XDG_DATA_HOME"/JetBrains/Toolbox/scripts) # jetbrains toolbox -path+=("$HOME/.local/bin) # local bin +path+=("$HOME"/.local/bin) # local bin # startup banner potentialBanner=('joke bofh' 'joke dad' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq misc' 'colorscript random' 'fastfetch') From 89fa7f2b7423a535e8c2212665b201e16fdd9d32 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Sun, 17 Dec 2023 16:06:30 +0100 Subject: [PATCH 63/87] added flatpak dirs to cdg data dirs --- dot_config/topgrade.toml | 4 ++-- dot_config/zsh/dot_zshenv | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index 97d9aaa..2673f16 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", "rustup", "dotnet", "vscode", "powershell", "snap"] +disable = ["tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "helix", "composer", "yarn", "cargo", "remotes", "rustup", "vscode", "powershell"] # Skip Notify skip_notify = true @@ -21,7 +21,7 @@ skip_notify = true #run_in_tmux = true # List of remote machines with Topgrade installed on them -remote_topgrades = ["chat", "db", "git", "java", "kali", "mail", "misc", "mon"] +remote_topgrades = ["pxm", "web", "infra"] # Arguments to pass SSH when upgrading remote systems #ssh_arguments = "-o ConnectTimeout=2" diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index d999060..b19a95b 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -3,7 +3,7 @@ export XDG_CACHE_HOME="$HOME"/.cache export XDG_CONFIG_HOME="$HOME"/.config export XDG_CONFIG_DIRS=/etc/xdg export XDG_DATA_HOME="$HOME"/.local/share -export XDG_DATA_DIRS=/usr/local/share:/usr/share +export XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/flatpak/exports/share:"$XDG_DATA_HOME"/flatpak/exports/share export XDG_STATE_HOME="$HOME"/.local/state export XDG_DESKTOP_DIR=$HOME/Desktop export XDG_DOCUMENTS_DIR="$HOME"/Documents From c5a7c5a1d0dfe64e50a762fefb82f30058729908 Mon Sep 17 00:00:00 2001 From: eeleater Date: Tue, 19 Dec 2023 12:01:04 +0000 Subject: [PATCH 64/87] Delete .chezmoiexternal.toml --- .chezmoiexternal.toml | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 .chezmoiexternal.toml diff --git a/.chezmoiexternal.toml b/.chezmoiexternal.toml deleted file mode 100644 index a29f79c..0000000 --- a/.chezmoiexternal.toml +++ /dev/null @@ -1,8 +0,0 @@ -[".local/share/zsh/config"] - type = "git-repo" - url = "git@git.eeleater.org:eeleater/dotfiles_private.git" - refreshPeriod = "24h" -[".local/share/omp"] - type = "git-repo" - url = "https://github.com/JanDeDobbeleer/oh-my-posh.git" - refreshPeriod = "24h" From 95d6c35a7a3fec632f796fcaaab20d61ccf2b6af Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 19 Dec 2023 13:09:11 +0100 Subject: [PATCH 65/87] oh-my-posh is now installed to .local/bin everywhere --- dot_config/topgrade.toml | 2 +- dot_config/zsh/dot_zshrc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index 2673f16..68dedd6 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 = ["tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "helix", "composer", "yarn", "cargo", "remotes", "rustup", "vscode", "powershell"] +disable = ["tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "helix", "composer", "yarn", "cargo", "remotes", "rustup", "vscode", "powershell", "distrobox"] # Skip Notify skip_notify = true diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 346a138..220cac6 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -18,5 +18,5 @@ for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done # theme potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json') -export POSH_THEME="$XDG_DATA_HOME/omp/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" +export POSH_THEME="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" eval "$(oh-my-posh init zsh)" From 9fcd3f7ef15a93092c79bc4afc18e0dfd47e774b Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 19 Dec 2023 13:24:33 +0100 Subject: [PATCH 66/87] oh-my-posh is now installed to .local/bin everywhere --- dot_config/zsh/files/options.zsh | 5 +++++ dot_local/bin/installOhMyPosh.sh | 9 +++++++++ dot_local/bin/updateOhMyPosh.sh | 9 +++++++++ 3 files changed, 23 insertions(+) create mode 100644 dot_config/zsh/files/options.zsh create mode 100755 dot_local/bin/installOhMyPosh.sh create mode 100755 dot_local/bin/updateOhMyPosh.sh diff --git a/dot_config/zsh/files/options.zsh b/dot_config/zsh/files/options.zsh new file mode 100644 index 0000000..a8477c6 --- /dev/null +++ b/dot_config/zsh/files/options.zsh @@ -0,0 +1,5 @@ +setopt NO_CLOBBER +setopt INTERACTIVE_COMMENTS +setopt HASH_EXECUTABLES_ONLY +setopt NUMERIC_GLOB_SORT +unsetopt FLOW_CONTROL diff --git a/dot_local/bin/installOhMyPosh.sh b/dot_local/bin/installOhMyPosh.sh new file mode 100755 index 0000000..42548c8 --- /dev/null +++ b/dot_local/bin/installOhMyPosh.sh @@ -0,0 +1,9 @@ +#!/bin/bash +newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)" +localVersion="$(oh-my-posh --version)" +tmpFile="$(mktemp -u)" + +test "$newestVersion" != "$localVersion" && { + curl -so "$tmpFile" https://ohmyposh.dev/install.sh + bash "$tmpFile" -d "$HOME"/.local/bin +} diff --git a/dot_local/bin/updateOhMyPosh.sh b/dot_local/bin/updateOhMyPosh.sh new file mode 100755 index 0000000..e8366eb --- /dev/null +++ b/dot_local/bin/updateOhMyPosh.sh @@ -0,0 +1,9 @@ +#!/bin/bash +newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)" +localVersion="$(oh-my-posh --version)" +tmpFile="$(mktemp -u)" + +test "$newestVersion" != "$localVersion" && { + curl -so "$tmpFile" https://ohmyposh.dev/install.sh + bash "$tmpFile" +} From eddf9cf3e32d955c751918606b18aec3b04962bb Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 19 Dec 2023 13:29:39 +0100 Subject: [PATCH 67/87] newest version of dotfiles --- dot_config/sheldon/plugins.toml | 4 ---- dot_config/zsh/dot_zshenv | 1 - dot_config/zsh/dot_zshrc | 3 +-- dot_local/bin/installOhMyPosh.sh | 9 --------- dot_local/bin/updateOhMyPosh.sh | 9 --------- 5 files changed, 1 insertion(+), 25 deletions(-) delete mode 100755 dot_local/bin/installOhMyPosh.sh delete mode 100755 dot_local/bin/updateOhMyPosh.sh diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 3e175c7..302a61b 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -1,10 +1,6 @@ shell = "zsh" # own files -[plugins.localenv] -local = "~/.local/share/zsh/config" -use = ["env.zsh"] - [plugins.compinit] local = "~/.config/zsh/files/" use = ["compinit.zsh"] diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index b19a95b..9251fa2 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -39,7 +39,6 @@ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup export GNUPGHOME="$XDG_DATA_HOME"/gnupg export W3M_DIR="$XDG_DATA_HOME"/w3m export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates -#export PATH="$XDG_DATA_HOME"/JetBrains/Toolbox/scripts:"$PATH" # other programs export LESSHISTFILE="$XDG_STATE_HOME"/less/history diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 220cac6..d2ceb3f 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -18,5 +18,4 @@ for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done # theme potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json') -export POSH_THEME="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]" -eval "$(oh-my-posh init zsh)" +eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]")" diff --git a/dot_local/bin/installOhMyPosh.sh b/dot_local/bin/installOhMyPosh.sh deleted file mode 100755 index 42548c8..0000000 --- a/dot_local/bin/installOhMyPosh.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)" -localVersion="$(oh-my-posh --version)" -tmpFile="$(mktemp -u)" - -test "$newestVersion" != "$localVersion" && { - curl -so "$tmpFile" https://ohmyposh.dev/install.sh - bash "$tmpFile" -d "$HOME"/.local/bin -} diff --git a/dot_local/bin/updateOhMyPosh.sh b/dot_local/bin/updateOhMyPosh.sh deleted file mode 100755 index e8366eb..0000000 --- a/dot_local/bin/updateOhMyPosh.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)" -localVersion="$(oh-my-posh --version)" -tmpFile="$(mktemp -u)" - -test "$newestVersion" != "$localVersion" && { - curl -so "$tmpFile" https://ohmyposh.dev/install.sh - bash "$tmpFile" -} From 01b4312f561a6b24b335d3beb175e62f8a076c63 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Tue, 19 Dec 2023 13:29:52 +0100 Subject: [PATCH 68/87] newest version of dotfiles --- dot_local/bin/executable_installOhMyPosh.sh | 9 +++++++++ dot_local/bin/executable_updateOhMyPosh.sh | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100755 dot_local/bin/executable_installOhMyPosh.sh create mode 100755 dot_local/bin/executable_updateOhMyPosh.sh diff --git a/dot_local/bin/executable_installOhMyPosh.sh b/dot_local/bin/executable_installOhMyPosh.sh new file mode 100755 index 0000000..42548c8 --- /dev/null +++ b/dot_local/bin/executable_installOhMyPosh.sh @@ -0,0 +1,9 @@ +#!/bin/bash +newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)" +localVersion="$(oh-my-posh --version)" +tmpFile="$(mktemp -u)" + +test "$newestVersion" != "$localVersion" && { + curl -so "$tmpFile" https://ohmyposh.dev/install.sh + bash "$tmpFile" -d "$HOME"/.local/bin +} diff --git a/dot_local/bin/executable_updateOhMyPosh.sh b/dot_local/bin/executable_updateOhMyPosh.sh new file mode 100755 index 0000000..e8366eb --- /dev/null +++ b/dot_local/bin/executable_updateOhMyPosh.sh @@ -0,0 +1,9 @@ +#!/bin/bash +newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)" +localVersion="$(oh-my-posh --version)" +tmpFile="$(mktemp -u)" + +test "$newestVersion" != "$localVersion" && { + curl -so "$tmpFile" https://ohmyposh.dev/install.sh + bash "$tmpFile" +} From 56423251cbf28a18e4db6548594a7f823fd1be48 Mon Sep 17 00:00:00 2001 From: eeleater Date: Tue, 19 Dec 2023 23:59:27 +0100 Subject: [PATCH 69/87] updated the oh-my-posh install script --- dot_local/bin/installOhMyPosh.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 dot_local/bin/installOhMyPosh.sh diff --git a/dot_local/bin/installOhMyPosh.sh b/dot_local/bin/installOhMyPosh.sh new file mode 100755 index 0000000..a04ff0c --- /dev/null +++ b/dot_local/bin/installOhMyPosh.sh @@ -0,0 +1,7 @@ +#!/bin/bash +newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)" +localVersion="$(oh-my-posh --version)" +tmpFile="$(mktemp -u)" + +curl -so "$tmpFile" https://ohmyposh.dev/install.sh +bash "$tmpFile" -d "$HOME"/.local/bin From 1aec940d37bb46ae7a43099dc8bafea919226ebb Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 20 Dec 2023 11:46:01 +0100 Subject: [PATCH 70/87] newest version of dotfiles --- ...table_installOhMyPosh.sh => executable_installOhMyPosh} | 0 ...cutable_updateOhMyPosh.sh => executable_updateOhMyPosh} | 0 dot_local/bin/installOhMyPosh.sh | 7 ------- 3 files changed, 7 deletions(-) rename dot_local/bin/{executable_installOhMyPosh.sh => executable_installOhMyPosh} (100%) rename dot_local/bin/{executable_updateOhMyPosh.sh => executable_updateOhMyPosh} (100%) delete mode 100755 dot_local/bin/installOhMyPosh.sh diff --git a/dot_local/bin/executable_installOhMyPosh.sh b/dot_local/bin/executable_installOhMyPosh similarity index 100% rename from dot_local/bin/executable_installOhMyPosh.sh rename to dot_local/bin/executable_installOhMyPosh diff --git a/dot_local/bin/executable_updateOhMyPosh.sh b/dot_local/bin/executable_updateOhMyPosh similarity index 100% rename from dot_local/bin/executable_updateOhMyPosh.sh rename to dot_local/bin/executable_updateOhMyPosh diff --git a/dot_local/bin/installOhMyPosh.sh b/dot_local/bin/installOhMyPosh.sh deleted file mode 100755 index a04ff0c..0000000 --- a/dot_local/bin/installOhMyPosh.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)" -localVersion="$(oh-my-posh --version)" -tmpFile="$(mktemp -u)" - -curl -so "$tmpFile" https://ohmyposh.dev/install.sh -bash "$tmpFile" -d "$HOME"/.local/bin From 80ff719697c867571d09b77a921bdf0a9c176322 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 20 Dec 2023 11:48:11 +0100 Subject: [PATCH 71/87] newest version of dotfiles --- dot_local/bin/executable_installOhMyPosh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dot_local/bin/executable_installOhMyPosh b/dot_local/bin/executable_installOhMyPosh index 42548c8..cb76c09 100755 --- a/dot_local/bin/executable_installOhMyPosh +++ b/dot_local/bin/executable_installOhMyPosh @@ -1,9 +1,5 @@ #!/bin/bash -newestVersion="$(curl -sL https://api.github.com/repos/JanDeDobbeleer/oh-my-posh/releases/latest | jq -r '.name' | cut -dv -f2)" -localVersion="$(oh-my-posh --version)" tmpFile="$(mktemp -u)" -test "$newestVersion" != "$localVersion" && { - curl -so "$tmpFile" https://ohmyposh.dev/install.sh - bash "$tmpFile" -d "$HOME"/.local/bin -} +curl -so "$tmpFile" https://ohmyposh.dev/install.sh +bash "$tmpFile" -d "$HOME"/.local/bin From 2c7892693ae8847d49d201e14de122a219ea3b4a Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Thu, 25 Jan 2024 09:52:20 +0100 Subject: [PATCH 72/87] updated sheldon config to newest --- dot_config/sheldon/plugins.toml | 12 ++++++------ dot_config/topgrade.toml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 302a61b..79a578d 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -54,12 +54,6 @@ github = "fdellwing/zsh-bat" [plugins.youshoulduse] github = "MichaelAquilina/zsh-you-should-use" -[plugins.autosuggestions] -github = "zsh-users/zsh-autosuggestions" - -[plugins.syntaxhighlighting] -github = "zsh-users/zsh-syntax-highlighting" - [plugins.asdf] github = "asdf-vm/asdf" @@ -67,6 +61,12 @@ github = "asdf-vm/asdf" github = "olets/zsh-abbr" use = ["zsh-abbr.zsh"] +[plugins.autosuggestions] +github = "zsh-users/zsh-autosuggestions" + +[plugins.syntaxhighlighting] +github = "zsh-users/zsh-syntax-highlighting" + [plugins.bashcomps] local = "~/.config/zsh/files/" use = ["bashcomps.zsh"] diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index 68dedd6..c52dd75 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 = ["tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "helix", "composer", "yarn", "cargo", "remotes", "rustup", "vscode", "powershell", "distrobox"] +disable = ["tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes", "rustup", "vscode", "powershell"] # Skip Notify skip_notify = true From 4c2a47d783cb9e6c8a8d07c7bc6eafbfb2b5b2fd Mon Sep 17 00:00:00 2001 From: eeleater Date: Mon, 5 Feb 2024 16:04:54 +0000 Subject: [PATCH 73/87] eza tempfix --- dot_config/zsh/files/aliases.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dot_config/zsh/files/aliases.zsh b/dot_config/zsh/files/aliases.zsh index d691777..c5bcaf0 100644 --- a/dot_config/zsh/files/aliases.zsh +++ b/dot_config/zsh/files/aliases.zsh @@ -1,3 +1,6 @@ +# temp fix for eza +alias ls='eza -F -gh --group-directories-first --git --git-ignore --icons --color-scale all --hyperlink' + alias grep='rg' alias find='fd' From 4047ef1a48682a8dca32b694ff3e9a8d7ec4afd4 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Thu, 21 Dec 2023 14:21:46 +0100 Subject: [PATCH 74/87] updated bofh excuses --- dot_local/share/bofh | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/dot_local/share/bofh b/dot_local/share/bofh index a3d0b72..2790b5d 100644 --- a/dot_local/share/bofh +++ b/dot_local/share/bofh @@ -194,7 +194,7 @@ Did you pay the new Support Fee? We only support a 1200 bps connection. We only support a 28000 bps connection. Me no internet, only janitor, me just wax floors. -I'm sorry a PPC won't do, you need an Intel to connect with us. +I'm sorry a pentium won't do, you need an SGI to connect with us. Post-it Note Sludge leaked into the monitor. the curls in your keyboard cord are losing electricity. The monitor needs another box of pixels. @@ -222,9 +222,7 @@ The mainframe needs to rest. It's getting old, you know. I'm not sure. Try calling the Internet's head office -- it's in the book. The lines are all busy (busied out, that is -- why let them in to begin with?). Jan 9 16:41:27 huber su: 'su root' succeeded for .... on /dev/pts/1 -It's those computer people in New York City. They keep stuffing things up. -It's those computer people in Houston. They keep stuffing things up. -It's those computer people in New Delhi. They keep stuffing things up. +It's those computer people in X {city of world}. They keep stuffing things up. A star wars satellite accidently blew up the WAN. Fatal error right in front of screen That function is not currently supported, but Bill Gates assures us it will be featured in the next upgrade. @@ -245,18 +243,13 @@ Software uses US measurements, but the OS is in metric... The computer fleetly, mouse and all. Your cat tried to eat the mouse. The Borg tried to assimilate your system. Resistance is futile. -It must have been the lightning storm we had yesterday. -It must have been the lightning storm we had last week. -It must have been the lightning storm we had last month. +It must have been the lightning storm we had (yesterday) (last week) (last month) Due to Federal Budget problems we have been forced to cut back on the number of users able to access the system at one time. (namely none allowed....) Too much radiation coming from the soil. Unfortunately we have run out of bits/bytes/whatever. Don't worry, the next supply will be coming next week. Program load too heavy for processor to lift. Processes running slowly due to weak power supply -Our ISP is having switching problems. -Our ISP is having routing problems. -Our ISP is having power problems. -Our ISP is having connection problems. +Our ISP is having {switching,routing,SMDS,frame relay} problems We've run out of licenses Interference from lunar radiation Standing room only on the bus. @@ -326,7 +319,7 @@ Your EMAIL is now being delivered by the USPS. Your computer hasn't been returning all the bits it gets from the Internet. You've been infected by the Telescoping Hubble virus. Scheduled global CPU outage -Your PPC has a heating problem - try cooling it with ice cold water.(Do not turn off your computer, you do not want to cool down the PPC Chip while he isn't working, do you?) +Your Pentium has a heating problem - try cooling it with ice cold water.(Do not turn off your computer, you do not want to cool down the Pentium Chip while he isn't working, do you?) Your processor has processed too many instructions. Turn it off immediately, do not type any commands!! Your packets were eaten by the terminator Your processor does not develop enough heat. @@ -344,16 +337,13 @@ the xy axis in the trackball is coordinated with the summer solstice the butane lighter causes the pincushioning old inkjet cartridges emanate barium-based fumes manager in the cable duct -We'll fix that in the next upgrade. -We'll fix that in the next update. -We'll fix that in the next patch release. -We'll fix that in the next service pack. +We'll fix that in the next (upgrade, update, patch release, service pack). HTTPD Error 666 : BOFH was here -HTTPD Error 4004 : very old Motorola cpu - insufficient processing power +HTTPD Error 4004 : very old Intel cpu - insufficient processing power The ATM board has run out of 10 pound notes. We are having a whip round to refill it, care to contribute ? Network failure - call NBC Having to manually track the satellite. -Your computer had suffered a memory leak, and we are waiting for them to be topped off. +Your/our computer(s) had suffered a memory leak, and we are waiting for them to be topped up. The rubber band broke We're on Token Ring, and it looks like the token got loose. Stray Alpha Particles from memory packaging caused Hard Memory Error on Server. @@ -470,6 +460,10 @@ Power surges on the Underground. Don't worry; it's been deprecated. The new one is worse. Excess condensation in cloud network It is a layer 8 problem +The math co-processor had an overflow error that leaked out and shorted the RAM +Leap second overloaded RHEL6 servers +DNS server drank too much and had a hiccup +Your machine had the fuses in backwards. Foxconn factory caught fire insufficient data; cannot compute Please press all keys simultaneously to continue working. From fb751b70e3416b91ab899bf96f794dfda8596af9 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 14 Feb 2024 13:11:55 +0100 Subject: [PATCH 75/87] added paths.zsh (still to be changed) --- dot_config/zsh/files/paths.zsh | 75 ++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 dot_config/zsh/files/paths.zsh diff --git a/dot_config/zsh/files/paths.zsh b/dot_config/zsh/files/paths.zsh new file mode 100644 index 0000000..97d767b --- /dev/null +++ b/dot_config/zsh/files/paths.zsh @@ -0,0 +1,75 @@ +# +# Paths +# + +# Export existing paths. +typeset -gxU path PATH +typeset -gxU fpath FPATH +typeset -gxU cdpath CDPATH +typeset -gxU mailpath MAILPATH +typeset -gxU manpath MANPATH +# Create and export new paths. +typeset -gxU infopath INFOPATH +typeset -gxU node_path NODE_PATH +# Tie the new paths. +typeset -gxTU INFOPATH infopath +typeset -gxTU NODE_PATH nodepath + +# Set the list of directories that zsh searches for commands. +path=( + $HOME/bin + $HOME/.rvm/bin + /Applications/Postgres.app/Contents/MacOS/bin + /usr/local/{sbin,bin} + /usr/local/heroku/{sbin,bin} + /usr/local/opt/rbenv/shims + /usr/local/share/npm/bin + /opt/{sbin,bin} + /opt/local/{sbin,bin} + /usr/{sbin,bin} + /usr/X11R6/bin + /{sbin,bin} + $path +) +path=($^path(N-/)) + +# Set the list of directories that cd searches for directories. +setopt auto_cd +cdpath=( + . + $HOME + $HOME/Documents/Development + /Volumes/Daten/Development/gubo + /Volumes/Daten/Development/mojo + /Volumes/7\ Web/ +) +cdpath=($^cdpath(N-/)) + +# Set the list of directories that info searches for manuals. +infopath=( + /usr/local/info + /usr/local/share/info + /usr/share/info +) +infopath=($^infopath(N-/)) + +# Set the list of directories that man searches for manuals. +manpath=( + /usr/local/man + /usr/local/share/man + /usr/share/man +) +manpath=($^manpath(N-/)) + +# Set the list of directories that zsh searches for mail. +mailpath=( + $mailpath +) +mailpath=($^mailpath(N-/)) + +# Set the list of directories that node.js searches for modules. +nodepath=( + /usr/local/share/npm/lib/node_modules + /usr/local/lib/node_modules + ./node_modules +) From 3afad1aa379167aa2836016010fbcd26d94b8e1e Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 21 Feb 2024 10:38:14 +0100 Subject: [PATCH 76/87] new alacritty config --- dot_config/alacritty/alacritty.toml | 48 +++++++++ dot_config/alacritty/alacritty.yml | 162 ---------------------------- dot_config/alacritty/dracula.toml | 76 +++++++++++++ 3 files changed, 124 insertions(+), 162 deletions(-) create mode 100644 dot_config/alacritty/alacritty.toml delete mode 100755 dot_config/alacritty/alacritty.yml create mode 100644 dot_config/alacritty/dracula.toml diff --git a/dot_config/alacritty/alacritty.toml b/dot_config/alacritty/alacritty.toml new file mode 100644 index 0000000..0761e47 --- /dev/null +++ b/dot_config/alacritty/alacritty.toml @@ -0,0 +1,48 @@ +import = ["./dracula.toml"] + +[env] +TERM = "xterm-256color" + +[font] +size = 10 + +[font.bold] +family = "FiraCode Nerd Font" +style = "Bold" + +[font.bold_italic] +family = "FiraCode Nerd Font" +style = "Bold Italic" + +[font.italic] +family = "FiraCode Nerd Font" +style = "Italic" + +[font.normal] +family = "FiraCode Nerd Font" +style = "Regular" + +[[keyboard.bindings]] +action = "Paste" +key = "V" +mods = "Control|Shift" + +[[keyboard.bindings]] +action = "Copy" +key = "C" +mods = "Control|Shift" + +[scrolling] +history = 99999 + +[shell] +args = ["--login"] +program = "/usr/bin/zsh" + +[window] +opacity = 0.95 +title = "Alacritty" + +[window.class] +general = "Alacritty" +instance = "Alacritty" diff --git a/dot_config/alacritty/alacritty.yml b/dot_config/alacritty/alacritty.yml deleted file mode 100755 index 5947a3a..0000000 --- a/dot_config/alacritty/alacritty.yml +++ /dev/null @@ -1,162 +0,0 @@ -env: - TERM: xterm-256color - -window: - padding: - x: 4 - y: 4 - - title: Alacritty - - class: - instance: Alacritty - general: Alacritty - - opacity: 0.95 - -scrolling: - history: 20000 - -font: - normal: - family: FiraCode Nerd Font - style: Regular - - bold: - family: FiraCode Nerd Font - style: Bold - - italic: - family: FiraCode Nerd Font - style: Italic - - bold_italic: - family: FiraCode Nerd Font - style: Bold Italic - - size: 7.5 - -schemes: - onedark: &onedark - primary: - background: '#282c34' - foreground: '#abb2bf' - - normal: - black: '#131613' - red: '#e06c75' - green: '#98c379' - yellow: '#d19a66' - blue: '#61afef' - magenta: '#c678dd' - cyan: '#56b6c2' - white: '#abb2bf' - - bright: - black: '#5c6370' - red: '#e06c75' - green: '#98c379' - yellow: '#d19a66' - blue: '#61afef' - magenta: '#c678dd' - cyan: '#56b6c2' - white: '#ffffff' - - ayudark: &ayudark - primary: - background: '#0A0E14' - foreground: '#B3B1AD' - - normal: - black: '#01060E' - red: '#EA6C73' - green: '#91B362' - yellow: '#F9AF4F' - blue: '#53BDFA' - magenta: '#FAE994' - cyan: '#90E1C6' - white: '#C7C7C7' - - bright: - black: '#686868' - red: '#F07178' - green: '#C2D94C' - yellow: '#FFB454' - blue: '#59C2FF' - magenta: '#FFEE99' - cyan: '#95E6CB' - white: '#FFFFFF' - - nord: &nord - primary: - background: '#2e3440' - foreground: '#d8dee9' - dim_foreground: '#a5abb6' - - cursor: - text: '#2e3440' - cursor: '#d8dee9' - - vi_mode_cursor: - text: '#2e3440' - cursor: '#d8dee9' - - selection: - text: CellForeground - background: '#4c566a' - - search: - matches: - foreground: CellBackground - background: '#88c0d0' - - footer_bar: - background: '#434c5e' - foreground: '#d8dee9' - - normal: - black: '#3b4252' - red: '#bf616a' - green: '#a3be8c' - yellow: '#ebcb8b' - blue: '#81a1c1' - magenta: '#b48ead' - cyan: '#88c0d0' - white: '#e5e9f0' - - bright: - black: '#4c566a' - red: '#bf616a' - green: '#a3be8c' - yellow: '#ebcb8b' - blue: '#81a1c1' - magenta: '#b48ead' - cyan: '#8fbcbb' - white: '#eceff4' - - dim: - black: '#373e4d' - red: '#94545d' - green: '#809575' - yellow: '#b29e75' - blue: '#68809a' - magenta: '#8c738c' - cyan: '#6d96a5' - white: '#aeb3bb' - -colors: *nord - -shell: - program: /usr/bin/zsh - args: - - --login - -key_bindings: - - { key: V, mods: Control|Shift, action: Paste } - - { key: C, mods: Control|Shift, action: Copy } - - { key: L, mods: Control, action: ClearLogNotice } - - { key: L, mods: Control, chars: "\x0c" } - - { key: PageUp, mods: Shift, action: ScrollPageUp, mode: ~Alt } - - { key: PageDown, mods: Shift, action: ScrollPageDown, mode: ~Alt } - - { key: Home, mods: Shift, action: ScrollToTop, mode: ~Alt } - - { key: End, mods: Shift, action: ScrollToBottom, mode: ~Alt } diff --git a/dot_config/alacritty/dracula.toml b/dot_config/alacritty/dracula.toml new file mode 100644 index 0000000..0a56c29 --- /dev/null +++ b/dot_config/alacritty/dracula.toml @@ -0,0 +1,76 @@ +# Dracula theme for Alacritty +# https://draculatheme.com/alacritty +# +# Color palette +# https://spec.draculatheme.com +# +# Instructions +# https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd + +[colors.primary] + +background = "#282a36" +foreground = "#f8f8f2" +bright_foreground = "#ffffff" + +[colors.cursor] + +text = "#282a36" +cursor = "#f8f8f2" + +[colors.vi_mode_cursor] + +text = "CellBackground" +cursor = "CellForeground" + +[colors.selection] + +text = "CellForeground" +background = "#44475a" + +[colors.normal] + +black = "#21222c" +red = "#ff5555" +green = "#50fa7b" +yellow = "#f1fa8c" +blue = "#bd93f9" +magenta = "#ff79c6" +cyan = "#8be9fd" +white = "#f8f8f2" + +[colors.bright] + +black = "#6272a4" +red = "#ff6e6e" +green = "#69ff94" +yellow = "#ffffa5" +blue = "#d6acff" +magenta = "#ff92df" +cyan = "#a4ffff" +white = "#ffffff" + +[colors.search.matches] + +foreground = "#44475a" +background = "#50fa7b" + +[colors.search.focused_match] + +foreground = "#44475a" +background = "#ffb86c" + +[colors.footer_bar] + +background = "#282a36" +foreground = "#f8f8f2" + +[colors.hints.start] + +foreground = "#282a36" +background = "#f1fa8c" + +[colors.hints.end] + +foreground = "#f1fa8c" +background = "#282a36" From 890c7466571206c59bf247143d7f95460a38c1ce Mon Sep 17 00:00:00 2001 From: eeleater Date: Sat, 13 Apr 2024 15:52:06 +0200 Subject: [PATCH 77/87] updated config a bit --- dot_config/sheldon/plugins.toml | 11 +---------- dot_config/zsh/dot_zshenv | 5 +++-- dot_config/zsh/dot_zshrc | 4 ++-- dot_config/zsh/files/functions.zsh | 4 ++-- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 79a578d..10b8688 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -67,15 +67,6 @@ github = "zsh-users/zsh-autosuggestions" [plugins.syntaxhighlighting] github = "zsh-users/zsh-syntax-highlighting" -[plugins.bashcomps] -local = "~/.config/zsh/files/" -use = ["bashcomps.zsh"] - -[plugins.evalstuff] -local = "~/.config/zsh/files/" -use = ["evalstuff.zsh"] - [plugins.ownconfigs] local = "~/.config/zsh/files/" -use = ["{options,sshcomp,aliases,functions,distroicon}.zsh"] - +use = ["{bashcomps,evalstuff,options,sshcomp,aliases,functions,distroicon}.zsh"] diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index 9251fa2..f82a40c 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -5,7 +5,7 @@ export XDG_CONFIG_DIRS=/etc/xdg export XDG_DATA_HOME="$HOME"/.local/share export XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/flatpak/exports/share:"$XDG_DATA_HOME"/flatpak/exports/share export XDG_STATE_HOME="$HOME"/.local/state -export XDG_DESKTOP_DIR=$HOME/Desktop +export XDG_DESKTOP_DIR="$HOME"/Desktop export XDG_DOCUMENTS_DIR="$HOME"/Documents export XDG_DOWNLOAD_DIR="$HOME"/Downloads export XDG_MUSIC_DIR="$HOME"/Music @@ -43,7 +43,6 @@ export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates # other programs export LESSHISTFILE="$XDG_STATE_HOME"/less/history export EDITOR=nvim -#export VISUAL=kate export ZSH_WAKATIME_BIN=/usr/bin/wakatime export PYTHONSTARTUP=/etc/python/pythonrc @@ -52,6 +51,7 @@ export ZELLIJ_AUTO_ATTACH=true export ZELLIJ_AUTO_EXIT=true export TERMINALNAME=$(fastfetch --pipe -s Terminal 2>/dev/null | awk '{print $2}') export MANROFFOPT="-c" +export FZF_DEFAULT_OPTS='--color=fg:#f8f8f2,bg:#282a36,hl:#bd93f9 --color=fg+:#f8f8f2,bg+:#44475a,hl+:#bd93f9 --color=info:#ffb86c,prompt:#50fa7b,pointer:#ff79c6 --color=marker:#ff79c6,spinner:#ffb86c,header:#6272a4' # zsh specific export SAVEHIST=$(( 100 * 1000 )) @@ -61,3 +61,4 @@ export HISTFILE="$ZSH_CACHE_DIR"/history 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 EXA_COLORS="uu=36:gu=37:sn=32:sb=32:da=34:ur=34:uw=35:ux=36:ue=36:gr=34:gw=35:gx=36:tr=34:tw=35:tx=36" diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index d2ceb3f..555f23a 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -17,5 +17,5 @@ eval "$(sheldon source)" for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done # theme -potentialTheme=('atomic.omp.json' 'emodipt-extend.omp.json' 'kali.omp.json' 'lambda.omp.json' 'nordtron.omp.json') -eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1]")" +potentialTheme=('lambda' 'emodipt-extend' 'kali' 'atomic' 'nordtron' 'illusi0n' 'di4am0nd' 'bubblesextra') +eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1].omp.json")" \ No newline at end of file diff --git a/dot_config/zsh/files/functions.zsh b/dot_config/zsh/files/functions.zsh index 51af6bf..1fbf928 100644 --- a/dot_config/zsh/files/functions.zsh +++ b/dot_config/zsh/files/functions.zsh @@ -4,9 +4,9 @@ pet_select () { zle redisplay } zle -N pet_select -bindkey '^l' pet_select +bindkey '^s' pet_select -pet_add_prev () { +prev () { PREV=$(fc -lrn | head -n 1) sh -c "pet new $(printf %q "$PREV")" } From 663a07e08512e66d72a2116c93ee27821f47518b Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Sun, 14 Apr 2024 21:56:33 +0200 Subject: [PATCH 78/87] fixed config --- dot_config/sheldon/plugins.toml | 14 ++------------ dot_config/zsh/files/evalstuff.zsh | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 10b8688..2735fdf 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -22,7 +22,7 @@ use = ["{completion,key-bindings,history,directories}.zsh"] [plugins.omzplugins] github = "ohmyzsh/ohmyzsh" dir = "plugins" -use = ["{systemd,fzf,command-not-found,transfer}/*.plugin.zsh"] +use = ["{systemd,fzf,command-not-found}/*.plugin.zsh"] [plugins.fzftab] github = "Aloxaf/fzf-tab" @@ -42,9 +42,6 @@ github = "sobolevn/wakatime-zsh-plugin" [plugins.titles] github = "amyreese/zsh-titles" -[plugins.thefuck] -github = "laggardkernel/zsh-thefuck" - [plugins.eza] github = "twopizza9621536/zsh-eza" @@ -54,13 +51,6 @@ github = "fdellwing/zsh-bat" [plugins.youshoulduse] github = "MichaelAquilina/zsh-you-should-use" -[plugins.asdf] -github = "asdf-vm/asdf" - -[plugins.abbr] -github = "olets/zsh-abbr" -use = ["zsh-abbr.zsh"] - [plugins.autosuggestions] github = "zsh-users/zsh-autosuggestions" @@ -69,4 +59,4 @@ github = "zsh-users/zsh-syntax-highlighting" [plugins.ownconfigs] local = "~/.config/zsh/files/" -use = ["{bashcomps,evalstuff,options,sshcomp,aliases,functions,distroicon}.zsh"] +use = ["{bashcomps,evalstuff,options,sshcomp,aliases,functions,distroicon}.zsh"] \ No newline at end of file diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh index 5102e34..c7d86e4 100644 --- a/dot_config/zsh/files/evalstuff.zsh +++ b/dot_config/zsh/files/evalstuff.zsh @@ -2,6 +2,6 @@ _evalcache zoxide init --cmd cd zsh _evalcache atuin init zsh _evalcache navi widget zsh -_evalcache direnv hook zsh +_evalcache mise activate zsh #_evalcache ntfy shell-integration eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" From 0f284058450c843383145e99a45bd20f743e234c Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Mon, 15 Apr 2024 23:37:22 +0200 Subject: [PATCH 79/87] fixed config --- dot_config/zsh/files/evalstuff.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh index c7d86e4..5102e34 100644 --- a/dot_config/zsh/files/evalstuff.zsh +++ b/dot_config/zsh/files/evalstuff.zsh @@ -2,6 +2,6 @@ _evalcache zoxide init --cmd cd zsh _evalcache atuin init zsh _evalcache navi widget zsh -_evalcache mise activate zsh +_evalcache direnv hook zsh #_evalcache ntfy shell-integration eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" From f8cef3eadee12975b4cba232276979e0e2a67b97 Mon Sep 17 00:00:00 2001 From: eeleater Date: Mon, 15 Apr 2024 23:41:26 +0200 Subject: [PATCH 80/87] updated config a bit --- dot_config/sheldon/plugins.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 2735fdf..33f1f70 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -42,6 +42,9 @@ github = "sobolevn/wakatime-zsh-plugin" [plugins.titles] github = "amyreese/zsh-titles" +[plugins.thefuck] +github = "laggardkernel/zsh-thefuck" + [plugins.eza] github = "twopizza9621536/zsh-eza" @@ -51,6 +54,13 @@ github = "fdellwing/zsh-bat" [plugins.youshoulduse] github = "MichaelAquilina/zsh-you-should-use" +[plugins.asdf] +github = "asdf-vm/asdf" + +[plugins.abbr] +github = "olets/zsh-abbr" +use = ["zsh-abbr.zsh"] + [plugins.autosuggestions] github = "zsh-users/zsh-autosuggestions" @@ -59,4 +69,4 @@ github = "zsh-users/zsh-syntax-highlighting" [plugins.ownconfigs] local = "~/.config/zsh/files/" -use = ["{bashcomps,evalstuff,options,sshcomp,aliases,functions,distroicon}.zsh"] \ No newline at end of file +use = ["{bashcomps,evalstuff,options,sshcomp,aliases,functions,distroicon}.zsh"] From 0c4d030803f9523da5af56084d74bb3579d5fca5 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 17 Apr 2024 03:15:41 +0200 Subject: [PATCH 81/87] lightened startup banners somewhat --- dot_config/zsh/dot_zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 555f23a..567ab60 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -7,7 +7,7 @@ path+=("$XDG_DATA_HOME"/JetBrains/Toolbox/scripts) # jetbrains toolbox path+=("$HOME"/.local/bin) # local bin # startup banner -potentialBanner=('joke bofh' 'joke dad' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq misc' 'colorscript random' 'fastfetch') +potentialBanner=('joke bofh' 'joke dad' 'fastfetch') # 'colorscript random' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq mimsc' eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" # source plugins @@ -18,4 +18,4 @@ for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done # theme potentialTheme=('lambda' 'emodipt-extend' 'kali' 'atomic' 'nordtron' 'illusi0n' 'di4am0nd' 'bubblesextra') -eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1].omp.json")" \ No newline at end of file +eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1].omp.json")" From b87225346327cb119e81de105844afaf650d9048 Mon Sep 17 00:00:00 2001 From: eeleater Date: Sun, 21 Apr 2024 20:34:30 +0200 Subject: [PATCH 82/87] fixed fzf ohmyzsh error --- dot_config/sheldon/plugins.toml | 2 +- dot_config/zsh/files/evalstuff.zsh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 33f1f70..66bb791 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -22,7 +22,7 @@ use = ["{completion,key-bindings,history,directories}.zsh"] [plugins.omzplugins] github = "ohmyzsh/ohmyzsh" dir = "plugins" -use = ["{systemd,fzf,command-not-found}/*.plugin.zsh"] +use = ["{systemd,command-not-found}/*.plugin.zsh"] [plugins.fzftab] github = "Aloxaf/fzf-tab" diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh index 5102e34..2d0ce8c 100644 --- a/dot_config/zsh/files/evalstuff.zsh +++ b/dot_config/zsh/files/evalstuff.zsh @@ -1,4 +1,5 @@ # evalstuff +_evalcache fzf --zsh _evalcache zoxide init --cmd cd zsh _evalcache atuin init zsh _evalcache navi widget zsh From d4c20a4ba8596d4febbd22e875de6fe546fbce42 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Thu, 13 Jun 2024 12:41:21 +0200 Subject: [PATCH 83/87] added redis history file --- dot_config/zsh/dot_zshenv | 1 + 1 file changed, 1 insertion(+) diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv index f82a40c..ad78257 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv @@ -39,6 +39,7 @@ export RUSTUP_HOME="$XDG_DATA_HOME"/rustup export GNUPGHOME="$XDG_DATA_HOME"/gnupg export W3M_DIR="$XDG_DATA_HOME"/w3m export GIBO_BOILERPLATES="$XDG_DATA_HOME"/giboboilerplates +export REDISCLI_HISTFILE="$XDG_DATA_HOME"/redis/history # other programs export LESSHISTFILE="$XDG_STATE_HOME"/less/history From 76c089042eae19ddab2c70c71f69a4c2b809398f Mon Sep 17 00:00:00 2001 From: eeleater Date: Fri, 19 Jul 2024 09:42:42 +0200 Subject: [PATCH 84/87] added clamav to skip list for topgrade --- dot_config/topgrade.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml index c52dd75..8b93b8c 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 = ["tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes", "rustup", "vscode", "powershell"] +disable = ["tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes", "rustup", "vscode", "powershell", "clam_av_db"] # Skip Notify skip_notify = true From 79258c6b4e28533d57e5af534bc318d6c8af610f Mon Sep 17 00:00:00 2001 From: eeleater Date: Fri, 26 Jul 2024 09:50:41 +0200 Subject: [PATCH 85/87] keychain has errors on wsl, replace with ssh-agent plugin --- dot_config/sheldon/plugins.toml | 2 +- dot_config/zsh/files/evalstuff.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_config/sheldon/plugins.toml b/dot_config/sheldon/plugins.toml index 66bb791..72c9e62 100644 --- a/dot_config/sheldon/plugins.toml +++ b/dot_config/sheldon/plugins.toml @@ -22,7 +22,7 @@ use = ["{completion,key-bindings,history,directories}.zsh"] [plugins.omzplugins] github = "ohmyzsh/ohmyzsh" dir = "plugins" -use = ["{systemd,command-not-found}/*.plugin.zsh"] +use = ["{systemd,command-not-found,ssh-agent}/*.plugin.zsh"] [plugins.fzftab] github = "Aloxaf/fzf-tab" diff --git a/dot_config/zsh/files/evalstuff.zsh b/dot_config/zsh/files/evalstuff.zsh index 2d0ce8c..b19e153 100644 --- a/dot_config/zsh/files/evalstuff.zsh +++ b/dot_config/zsh/files/evalstuff.zsh @@ -5,4 +5,4 @@ _evalcache atuin init zsh _evalcache navi widget zsh _evalcache direnv hook zsh #_evalcache ntfy shell-integration -eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" +#eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" From 5f6cae6e9c10dc1c3cb7caacba7d38765f7e4a17 Mon Sep 17 00:00:00 2001 From: eeleater Date: Thu, 8 Aug 2024 06:01:41 +0200 Subject: [PATCH 86/87] chose only one theme --- dot_config/zsh/dot_zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 567ab60..5f3757a 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -17,5 +17,6 @@ eval "$(sheldon source)" for sourced in "$XDG_DATA_HOME"/zsh/files/*; do source $sourced; done # theme -potentialTheme=('lambda' 'emodipt-extend' 'kali' 'atomic' 'nordtron' 'illusi0n' 'di4am0nd' 'bubblesextra') -eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1].omp.json")" +#potentialTheme=('emodipt-extend') # 'kali' 'lambda' 'bubblesextra' 'illusi0n' 'nordtron' 'di4am0nd' 'atomic' +#eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/$potentialTheme[$RANDOM%$#potentialTheme+1].omp.json")" +eval "$(oh-my-posh init zsh --config="$XDG_CACHE_HOME/oh-my-posh/themes/emodipt-extend.omp.json")" From 1f5a43ca196cabba5ee3653e1687e5b80e349a9e Mon Sep 17 00:00:00 2001 From: eeleater Date: Mon, 12 Aug 2024 18:55:50 +0200 Subject: [PATCH 87/87] updated sheldon --- dot_config/{topgrade.toml => topgrade.toml.tmpl} | 6 +++++- dot_config/zsh/{dot_zshenv => dot_zshenv.tmpl} | 2 ++ dot_config/zsh/dot_zshrc | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) rename dot_config/{topgrade.toml => topgrade.toml.tmpl} (92%) rename dot_config/zsh/{dot_zshenv => dot_zshenv.tmpl} (97%) diff --git a/dot_config/topgrade.toml b/dot_config/topgrade.toml.tmpl similarity index 92% rename from dot_config/topgrade.toml rename to dot_config/topgrade.toml.tmpl index 8b93b8c..f293b35 100644 --- a/dot_config/topgrade.toml +++ b/dot_config/topgrade.toml.tmpl @@ -3,7 +3,7 @@ #assume_yes = true # Disable specific steps - same options as the command line flag -disable = ["tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes", "rustup", "vscode", "powershell", "clam_av_db"] +disable = ["tldr", "pip3", "node", "vim", "git_repos", "containers", "asdf", "distrobox", "helix", "composer", "yarn", "cargo", "remotes", "rustup", "vscode", "powershell", "dotnet", "flatpak", "shell", "snap", "firmware", "clam_av_db"] # Skip Notify skip_notify = true @@ -21,7 +21,11 @@ skip_notify = true #run_in_tmux = true # List of remote machines with Topgrade installed on them +{{ if eq .chezmoi.hostname "pxm" }} +remote_topgrades = ["docker", "kali", "mail"] +{{ else }} remote_topgrades = ["pxm", "web", "infra"] +{{ end }} # Arguments to pass SSH when upgrading remote systems #ssh_arguments = "-o ConnectTimeout=2" diff --git a/dot_config/zsh/dot_zshenv b/dot_config/zsh/dot_zshenv.tmpl similarity index 97% rename from dot_config/zsh/dot_zshenv rename to dot_config/zsh/dot_zshenv.tmpl index ad78257..c409fc4 100644 --- a/dot_config/zsh/dot_zshenv +++ b/dot_config/zsh/dot_zshenv.tmpl @@ -60,6 +60,8 @@ export HISTSIZE=$(( 1.2 * SAVEHIST )) export ZSH_CACHE_DIR="$XDG_CACHE_HOME"/zsh export HISTFILE="$ZSH_CACHE_DIR"/history export GPG_TTY="$TTY" +{{ if eq .chezmoi.osRelease.id "endeavouros" }} export DIFFPROG='meld' +{{ end }} 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 EXA_COLORS="uu=36:gu=37:sn=32:sb=32:da=34:ur=34:uw=35:ux=36:ue=36:gr=34:gw=35:gx=36:tr=34:tw=35:tx=36" diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index 5f3757a..8927d24 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -10,6 +10,9 @@ path+=("$HOME"/.local/bin) # local bin potentialBanner=('joke bofh' 'joke dad' 'fastfetch') # 'colorscript random' 'joke hq dijkstra' 'joke hq knuth' 'joke hq perlis' 'joke hq mimsc' eval "$potentialBanner[$RANDOM%$#potentialBanner+1]" +# disable flowcontrol +stty -ixon + # source plugins eval "$(sheldon source)"