-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell_aliases
49 lines (36 loc) · 1.09 KB
/
shell_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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
alias sudo='sudo '
# ls
alias ls='ls --color=always -h -F'
alias la='ls -a'
alias ll='ls -l'
alias lla='ls -la'
# cd
alias ..='cd ..'
alias ...='cd ../..'
alias ~='cd ~'
alias -- -='cd -'
# just makes parents by default too
alias mkdir='mkdir --parents'
# ergonomic grep
alias grep='grep --color --ignore-case'
# it confuses me that nautilus is also called files
alias files='nautilus . > /dev/null 2> /dev/null &'
# development aliases
alias dc='docker-compose'
alias pc='pre-commit'
alias g='git'
alias b64='base64'
alias f8='flake8'
alias k='kubectl'
# shell utils
alias short='path_len 1'
alias long='path_len 0'
# easy and consise history
alias hist='history -iD'
# smarter tailing
alias tail='tail -f'
# json prettifier
alias json='python -m json.tool'
alias rmorig='rm **/*.orig'
alias docker-clean='docker stop $(docker ps --quiet) && docker rm $(docker ps --all --quiet) && docker rmi $(docker images --quiet)'
alias mirrorlist='reflector --protocol http,https --verbose --age 12 --latest 200 --country Denmark,Sweden,Germany,Norway,Netherlands --sort score --save /etc/pacman.d/mirrorlist'