forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
executable file
·70 lines (49 loc) · 1.96 KB
/
.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Easier navigation .., ..2, ..3, ..4
alias ..="cd .."
alias ..2="cd ../.."
alias ..3="cd ../../.."
alias ..4="cd ../../../.."
alias zipinfo="zipinfo -mtz"
# Shortcuts
alias p="cd ~/Documents/Projekte"
alias o="open"
alias oo="open ."
# List all files colorized in long format
alias ll="ls -lhGO"
# List all files colorized in long format, including dot files
alias lla="ll -a"
alias llt="ll -Atr"
# Color for grep
alias grep='grep --color=auto'
# List only directories | list only non-dirs
alias lld='ll | grep "^d\|^l"'
alias llf='ll | grep -v "^d"'
alias llda='lla | grep "^d\|^l"'
alias llfa='lla | grep -v "^d"'
alias exa='exa -lahH'
alias exad='exa | grep "^d\|^l"'
alias exaf='exa | grep -v "^d"'
alias fail='tail -f'
alias flushdns='sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponde'r
# Recursively delete `.DS_Store` files
alias dscleanup="find . -type f -name '*.DS_Store' -ls -delete"
##maybe add some more logs which can savely be deleted
# Clear Apple’s System Logs to improve shell startup speed
alias cleanlogs="sudo rm -rfv /private/var/log/asl/*.asl"
#some git power
alias gitlog='git log --date-order --reverse --all --format="%C(green)%H%Creset %C(yellow)%an%Creset %C(blue bold)%ar%Creset %C(red bold)%d%Creset%s" | tail -n 50'
alias untar="tar xvf"
alias tart="tar cvf"
alias tarz="tar czvf"
alias sha256="shasum -a 256"
alias sha512="shasum -a 512"
alias df="df -H"
alias bubu="echo -e '\e[34m\e[4mBrew update:\e[0m\e[39m' && brew update && echo -e '\e[34m\e[4mOutdated:\e[0m\e[39m' && brew outdated"
alias saturn="ssh saturn"
alias jupiter="ssh jupiter"
alias uber="ssh uber"
alias pi="ssh pi"
alias piserver="ssh piserver"
alias kodi="ssh kodi"
alias lakka="ssh lakka"
alias btc="curl -s https://apiv2.bitcoinaverage.com/indices/global/ticker/BTCEUR | grep last && curl -s https://api.coinmarketcap.com/v1/ticker/bitcoin-cash/\?convert\=EUR | grep price_eur && curl -s https://api.coinmarketcap.com/v1/ticker/bitcoin/\?convert\=EUR | grep price_eur"