created branch selfmade
This commit is contained in:
parent
aab40ca93c
commit
cf316114ee
4 changed files with 19 additions and 15 deletions
|
@ -2,7 +2,7 @@ add_newline = false
|
||||||
|
|
||||||
format = """$env_var $all"""
|
format = """$env_var $all"""
|
||||||
|
|
||||||
[env_var.STARSHIP_DISTRO]
|
[env_var.DISTROICON]
|
||||||
format = '[$env_value](white)'
|
format = '[$env_value](white)'
|
||||||
variable = "STARSHIP_DISTRO"
|
variable = "DISTROICON"
|
||||||
disabled = false
|
disabled = false
|
||||||
|
|
|
@ -30,4 +30,4 @@ case $_distro in
|
||||||
*) ICON="";;
|
*) ICON="";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
export STARSHIP_DISTRO="$ICON"
|
export DISTROICON="$ICON"
|
||||||
|
|
|
@ -73,4 +73,4 @@ export SAVEHIST=1048576
|
||||||
export HISTFILE="$XDG_CACHE_HOME"/zsh/history
|
export HISTFILE="$XDG_CACHE_HOME"/zsh/history
|
||||||
|
|
||||||
# local
|
# local
|
||||||
source "$XDG_DATA_HOME"/zsh/env.zsh
|
test -f "$XDG_DATA_HOME"/zsh/env.zsh && source "$XDG_DATA_HOME"/zsh/env.zsh
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
if test -v DISTROBOX_HOST_HOME; then unset ZDOTDIR; exec zsh; fi # fix distrobox
|
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
|
#fastfetch
|
||||||
bofh; echo " - BOFH"
|
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/fzf-marks/fzf-marks.zsh
|
||||||
source /usr/share/zsh/plugins/evalcache/evalcache.zsh
|
source /usr/share/zsh/plugins/evalcache/evalcache.zsh
|
||||||
source /usr/share/zsh/plugins/colorize/colorize.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/titles/titles.zsh
|
||||||
source /usr/share/zsh/plugins/thefuck/thefuck.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/ysu/ysu.zsh
|
||||||
source /usr/share/zsh/plugins/oath/oath.zsh
|
source /usr/share/zsh/plugins/oath/oath.zsh
|
||||||
source /usr/share/zsh/plugins/exa/exa.zsh
|
source /usr/share/zsh/plugins/exa/exa.zsh
|
||||||
source /usr/share/zsh/plugins/bat/bat.zsh
|
source /usr/share/zsh/plugins/bat/bat.zsh
|
||||||
source /usr/share/zsh/plugins/wakatime/wakatime.zsh
|
|
||||||
|
|
||||||
# plugins (self)
|
# plugins (self)
|
||||||
source /home/weger/.config/zsh/distroicon.zsh
|
source /home/weger/.config/zsh/distroicon.zsh
|
||||||
source /home/weger/.config/zsh/transfer.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
|
# eval stuff
|
||||||
_evalcache zoxide init zsh
|
_evalcache zoxide init zsh
|
||||||
_evalcache dircolors -b /usr/share/LS_COLORS/LS_COLORS
|
_evalcache dircolors -b /usr/share/LS_COLORS/LS_COLORS
|
||||||
|
@ -60,11 +67,6 @@ _evalcache direnv hook zsh
|
||||||
source /opt/asdf-vm/asdf.sh
|
source /opt/asdf-vm/asdf.sh
|
||||||
eval "$(keychain --dir "$XDG_CACHE_HOME"/keychain --eval --quiet id_rsa)"
|
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
|
# aliases
|
||||||
alias cd='z'
|
alias cd='z'
|
||||||
alias grep='rg'
|
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'
|
alias wget='wget --hsts-file="$XDG_DATA_HOME"/wget-hsts'
|
||||||
if (( ${+commands[nvim]} )); then alias vim="nvim"; fi
|
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
|
# key bindings
|
||||||
run_ranger () { echo; ranger < $TTY; zle redisplay }
|
run_ranger () { echo; ranger < $TTY; zle redisplay }
|
||||||
zle -N run_ranger
|
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-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-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::*'
|
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
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue