-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zsh_aliases
30 lines (25 loc) · 964 Bytes
/
.zsh_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Compiles a PDF file from a source file. I'm using this to convert markdown to PDF.
function compilepdf {
pandoc $1 --pdf-engine=pdflatex -o $2
xdg-open $2
}
alias lynx="lynx -cfg=$HOME/.lynx.cfg -lss=$HOME/.lynx.lss"
ddg() {
declare url=$(urlencode "$*")
lynx "https://duckduckgo.com/lite?q=$url"
}
alias "?"=ddg
google() {
declare url=$(urlencode "$*")
lynx "https://google.com/search?q=$url"
}
alias "??"=google
alias ipinfo='(){ curl "https://ipinfo.io/$1" }'
alias new_tmux='(){ tmux new-session -t $1 }'
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
alias rustscan='docker run -it --rm --name rustscan rustscan/rustscan:1.10.0'
alias wpscan='docker run -it --rm --name wpscan wpscanteam/wpscan'
alias amass='docker run -v ~/:/.config/amass/ -it --rm --name amass caffix/amass'
alias impacket='docker run -it --rm --name impacket "impacket:latest"'
alias sqlmap='python ~/tools/sqlmap-dev/'