updated antidote in prep for usage on laptop

This commit is contained in:
eeleater 2024-08-16 00:07:37 +02:00
parent 48b4d418af
commit b111001de3
4 changed files with 15 additions and 27 deletions

View file

@ -24,10 +24,14 @@ source "$XDG_DATA_HOME"/antidote/antidote.zsh
zstyle ':antidote:bundle' use-friendly-names 'yes' zstyle ':antidote:bundle' use-friendly-names 'yes'
antidote load antidote load
# load programs
_evalcache zoxide init --cmd cd zsh
_evalcache atuin init zsh
_evalcache navi widget zsh
_evalcache direnv hook zsh
# source files # source files
source "$ZDOTDIR"/files/evalstuff.zsh
source "$ZDOTDIR"/files/aliases.zsh source "$ZDOTDIR"/files/aliases.zsh
source "$ZDOTDIR"/files/functions.zsh
# completion files # completion files
source "$ZDOTDIR"/files/sshcomp.zsh source "$ZDOTDIR"/files/sshcomp.zsh

View file

@ -19,3 +19,12 @@ if (( ${+commands[nvim]} )); then alias vim="nvim"; fi
alias peda="gdb -iex 'source /usr/share/peda/peda.py' --nh -q" 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 gef="gdb -iex 'source /usr/share/gef/gef.py' --nh -q"
alias pwndbg="gdb -iex 'source /usr/share/pwndbg/gdbinit.py' --nh -q" alias pwndbg="gdb -iex 'source /usr/share/pwndbg/gdbinit.py' --nh -q"
# ranger as cli file manager
run_ranger () {
echo
ranger < $TTY
zle redisplay
}
zle -N run_ranger
bindkey '^f' run_ranger

View file

@ -1,5 +0,0 @@
# evalstuff
_evalcache zoxide init --cmd cd zsh
_evalcache atuin init zsh
_evalcache navi widget zsh
_evalcache direnv hook zsh

View file

@ -1,20 +0,0 @@
pet_select () {
BUFFER=$(pet search --query "$LBUFFER")
CURSOR=$#BUFFER
zle redisplay
}
zle -N pet_select
bindkey '^s' pet_select
prev () {
PREV=$(fc -lrn | head -n 1)
sh -c "pet new $(printf %q "$PREV")"
}
run_ranger () {
echo
ranger < $TTY
zle redisplay
}
zle -N run_ranger
bindkey '^f' run_ranger