From cf316114ee3fe96ca55f9a3877ba12c4110ccfff Mon Sep 17 00:00:00 2001 From: eeleater Date: Tue, 13 Dec 2022 16:36:11 +0100 Subject: [PATCH] created branch selfmade --- dot_config/starship/config.toml | 4 ++-- dot_config/zsh/distroicon.zsh | 2 +- dot_config/zsh/env.zsh | 2 +- dot_config/zsh/rc.zsh | 26 +++++++++++++++----------- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/dot_config/starship/config.toml b/dot_config/starship/config.toml index 0c02cd4..31eebd9 100644 --- a/dot_config/starship/config.toml +++ b/dot_config/starship/config.toml @@ -2,7 +2,7 @@ add_newline = false format = """$env_var $all""" -[env_var.STARSHIP_DISTRO] +[env_var.DISTROICON] format = '[$env_value](white)' -variable = "STARSHIP_DISTRO" +variable = "DISTROICON" disabled = false diff --git a/dot_config/zsh/distroicon.zsh b/dot_config/zsh/distroicon.zsh index 31fa089..fc4599c 100644 --- a/dot_config/zsh/distroicon.zsh +++ b/dot_config/zsh/distroicon.zsh @@ -30,4 +30,4 @@ case $_distro in *) ICON="";; esac -export STARSHIP_DISTRO="$ICON" +export DISTROICON="$ICON" diff --git a/dot_config/zsh/env.zsh b/dot_config/zsh/env.zsh index bfd4c12..a81dff3 100644 --- a/dot_config/zsh/env.zsh +++ b/dot_config/zsh/env.zsh @@ -73,4 +73,4 @@ export SAVEHIST=1048576 export HISTFILE="$XDG_CACHE_HOME"/zsh/history # local -source "$XDG_DATA_HOME"/zsh/env.zsh +test -f "$XDG_DATA_HOME"/zsh/env.zsh && source "$XDG_DATA_HOME"/zsh/env.zsh diff --git a/dot_config/zsh/rc.zsh b/dot_config/zsh/rc.zsh index 044d06e..cd447e6 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 # don't autostart in kitty or konsole +if test $TERMINALNAME = "alacritty"; then eval "$(zellij setup --generate-auto-start zsh)"; fi # autostart only in alacritty #fastfetch bofh; echo " - BOFH" @@ -38,19 +38,26 @@ source /usr/share/zsh/plugins/fzf-tab/fzf-tab.zsh source /usr/share/zsh/plugins/fzf-marks/fzf-marks.zsh source /usr/share/zsh/plugins/evalcache/evalcache.zsh source /usr/share/zsh/plugins/colorize/colorize.zsh +source /usr/share/zsh/plugins/wakatime/wakatime.zsh source /usr/share/zsh/plugins/titles/titles.zsh source /usr/share/zsh/plugins/thefuck/thefuck.zsh -source /usr/share/zsh/plugins/forgit/forgit.plugin.zsh source /usr/share/zsh/plugins/ysu/ysu.zsh source /usr/share/zsh/plugins/oath/oath.zsh source /usr/share/zsh/plugins/exa/exa.zsh source /usr/share/zsh/plugins/bat/bat.zsh -source /usr/share/zsh/plugins/wakatime/wakatime.zsh # plugins (self) source /home/weger/.config/zsh/distroicon.zsh source /home/weger/.config/zsh/transfer.zsh +#themes +source /usr/share/zsh/themes/powerlevel10k/powerlevel10k.zsh-theme +#_evalcache starship init zsh +#_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json + +# syntax highlighting +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + # eval stuff _evalcache zoxide init zsh _evalcache dircolors -b /usr/share/LS_COLORS/LS_COLORS @@ -60,11 +67,6 @@ _evalcache direnv hook zsh source /opt/asdf-vm/asdf.sh eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)" -#themes -source /usr/share/zsh/themes/powerlevel10k/powerlevel10k.zsh-theme -#_evalcache starship init zsh -#_evalcache oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/kali.omp.json - # aliases alias cd='z' alias grep='rg' @@ -81,6 +83,11 @@ alias ktheme='kitty +kitten themes --reload-in=all' alias wget='wget --hsts-file="$XDG_DATA_HOME"/wget-hsts' if (( ${+commands[nvim]} )); then alias vim="nvim"; fi +# gdb stuff +alias peda="gdb -iex 'source /usr/share/peda/peda.py' --nh -q" +alias gef="gdb -iex 'source /usr/share/gef/gef.py' --nh -q" +alias pwndbg="gdb -iex 'source /usr/share/pwndbg/gdbinit.py' --nh -q" + # key bindings run_ranger () { echo; ranger < $TTY; zle redisplay } zle -N run_ranger @@ -103,6 +110,3 @@ zstyle ':completion:*:*:*:users' ignored-patterns '*' zstyle ':completion:*:*:*:hosts-host' ignored-patterns '*(.|:)*' loopback ip6-loopback localhost localhost4 localhost6 ip6-localhost broadcasthost zstyle ':completion:*:*:*:hosts-domain' ignored-patterns '<->.<->.<->.<->' '^[-[:alnum:]]##(.[-[:alnum:]]##)##' '*@*' '*localdomain*' '*.eeleater.org' '*.local' '*.hbz-nrw.de' zstyle ':completion:*:*:*:hosts-ipaddr' ignored-patterns '^(<->.<->.<->.<->|(|::)([[:xdigit:].]##:(#c,2))##(|%*))' '127.0.0.<->' '255.255.255.255' '::1' 'fe80::*' - -# syntax highlighting -source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh