-
Notifications
You must be signed in to change notification settings - Fork 1
/
aliases.zsh
68 lines (55 loc) · 1.64 KB
/
aliases.zsh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
alias c='clear'
alias h='history'
alias gh='history|grep'
alias mkdir='mkdir -p'
alias mv='mv -vi'
alias cp='cp -vi'
alias tree='tree -C'
alias ping='ping -c 5'
alias df='df -H'
alias pbc='pbcopy'
alias vim='nvim'
alias gpgl='gpg --list-keys'
alias p='python'
alias p2='$HOME/.pyenv/shims/python2'
alias p3='python3'
alias reboot='sudo /sbin/reboot'
alias rfinder='killall Finder'
alias rdock='killall Dock'
alias cat='bat --paging=never'
alias gdu='gdu-go'
alias ptop='bpytop'
alias disk='gdu'
alias grep='rg'
alias top='htop'
alias wget='wget2'
alias dnslookup="dig +noall +answer"
alias ga='git add'
alias gs='git status'
alias gc='git commit'
alias ls='eza --group-directories-first --icons'
alias ll='eza --group-directories-first --icons -lh'
alias la='eza --group-directories-first --icons -a'
alias lla='eza --group-directories-first --icons -lah'
alias lsa='eza --group-directories-first --icons -lah'
alias ..='cd ..'
alias ...='cd ../../'
alias ....='cd ../../../'
alias .2='cd ../../'
alias .3='cd ../../../'
alias .4='cd ../../../../'
alias sc='source $HOME/.zshrc'
alias zshrc='zed ~/.zshrc'
alias sship='zed ~/.config/starship.toml'
alias aliases='zed ~/.zsh/aliases.zsh'
# Share current dir
alias pshare='python -m http.server 2121'
alias rshare='ruby -run -e httpd . -p 2121'
# Stealth (very slow) nmap
alias snmap='nmap -f -T2 --data-length 8 --randomize-hosts -ttl 58'
# local ip
#alias ip='ifconfig | grep "inet "'
# public ip
#alias myip='curl ipinfo.io; echo'
# combined
alias ip='echo "Local ips:" && ifconfig | grep "inet " | awk '\''{printf "\t%s\n", $2}'\'' && echo "External ip:" && curl -s ipinfo.io/ip | awk '\''{printf "\t%s\n", $0}'\'';'