aboutsummaryrefslogtreecommitdiff
path: root/aliases
blob: 762e4d2a78dd1dff930657cebc10dfe1b9dac348 (plain)
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
31
32
33
34
alias ga='git add'
alias gc='git commit'
alias gp='git pull'
alias gs='git status -sb'
alias gb='git branch'
alias gd='git diff'
alias gl='git l'

alias ls=ls; unalias ls
alias ls='ls -hF'
alias l='ls'
alias la='l -a'
alias ll='l -l'
alias lo='l -alo'
alias sl='ls'

alias ltoday='lr -1 -t "mtime >= \"00:00:00\"" -t "! name =~ \"^[.]{1,2}$\""'
alias lftoday='ltoday -t "type == f"'

alias portscan='nmap -Pn'
alias wanip='curl ipinfo.io/ip'

alias xi='doas xbps-install'
alias xr='doas xbps-remove'
alias xq='xbps-query'

alias doch='doas mksh -c "$(fc -ln -1)"'

alias rot13='tr \
    abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \
    nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM'

type hd >/dev/null || hd() hexdump -e '"%08.8_ax  " 8/1 "%02X " \
	" - " 8/1 "%02X "' -e '"  |" "%_p"' -e '"|\n"' "$@"