updated antidote
This commit is contained in:
parent
d2b2840b29
commit
f645247321
3 changed files with 28 additions and 4 deletions
|
@ -1,6 +1,3 @@
|
|||
# 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'
|
||||
|
||||
|
@ -20,6 +17,21 @@ 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"
|
||||
|
||||
# add previous command to pet
|
||||
function prev() {
|
||||
PREV=$(fc -lrn | head -n 1)
|
||||
sh -c "pet new `printf %q "$PREV"`"
|
||||
}
|
||||
|
||||
# select from pet snippets
|
||||
function pet-select() {
|
||||
BUFFER=$(pet search --query "$LBUFFER")
|
||||
CURSOR=$#BUFFER
|
||||
zle redisplay
|
||||
}
|
||||
zle -N pet-select
|
||||
bindkey '^s' pet-select
|
||||
|
||||
# ranger as cli file manager
|
||||
run_ranger () {
|
||||
echo
|
||||
|
@ -28,3 +40,11 @@ run_ranger () {
|
|||
}
|
||||
zle -N run_ranger
|
||||
bindkey '^f' run_ranger
|
||||
|
||||
function ss() {
|
||||
command grc --colour=auto ss "$@"
|
||||
}
|
||||
|
||||
function gi() {
|
||||
curl -sLw "\n" "https://www.toptal.com/developers/gitignore/api/$@"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue