-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.txt
82 lines (73 loc) · 2.22 KB
/
aliases.txt
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# START CUSTOM ALIASES
# A collection of useful Bash aliases.
# https://github.com/sandren/bash
#
# To update run: `curl -s https://sandren.com/bash.sh | bash`
# Directories
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ws='cd /etc/nginx'
alias wsc='cd /etc/nginx/conf.d'
alias wr='cd /var/www'
alias md='mkdir -p'
alias rd='rmdir'
alias ls='ls -hF --color=auto --group-directories-first'
alias la='ls -hFA --color=auto --group-directories-first'
alias ll='ls -hFAl --color=auto --group-directories-first'
# Packages
alias apt.update='sudo apt update && sudo apt upgrade -y'
alias apt.clean='sudo apt-get clean && sudo apt update'
alias apt.autoclean='sudo apt-get autoclean && sudo apt update'
alias apt.autoremove='sudo apt autoremove --purge -y'
# Programs
alias y='yarn'
alias p='pnpm'
alias d='deno run --allow-env --allow-net --allow-read --allow-write'
alias b='bun run'
alias n='nano'
alias sn='sudo nano'
alias m='micro'
alias sm='sudo micro'
alias t='touch'
alias st='sudo touch'
alias targz='tar -zcvf'
alias untargz='tar -zxvf'
alias wget='wget -c'
alias ping='ping -c 5'
alias top='htop'
# Node
alias npm.list='sudo npm list -g --depth 0 --silent'
alias npm.outdated='npm outdated -g --depth=0'
alias npm.update='sudo npm update -g'
alias npm.upgrade='sudo npm upgrade -g'
alias npm.clean='sudo rm ./node_modules/.cache -R'
alias npm.fuckit='sudo rm -rf ./node_modules/ && sudo rm package-lock.json && npm install'
# Tmux
alias tn='tmux new-session -s'
alias stn='sudo tmux new-session -s'
alias ta='tmux attach-session -t'
alias sta='sudo tmux attach-session -t'
alias tr='tmux rename-session -t'
alias str='sudo tmux rename-session -t'
alias tl='tmux list-sessions'
alias stl='sudo tmux list-sessions'
alias tk='tmux kill-session -t'
alias stk='sudo tmux kill-session -t'
# System
alias start='sudo systemctl start'
alias reload='sudo systemctl reload'
alias restart='sudo systemctl restart'
alias stop='sudo systemctl stop'
alias service='sudo service'
alias myip='curl ipinfo.io/ip'
# Miscellaneous
alias root='sudo -i'
alias fuck='sudo'
alias fucking='sudo'
alias c='clear'
alias bash.edit='sudo nano ~/.bashrc'
# Exports
# export NODE_OPTIONS=--max-old-space-size=XXXX
# END CUSTOM ALIASES