-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathaliases
74 lines (61 loc) · 1.99 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
71
72
73
74
#!/usr/bin/env bash
# Reload .bash_profile
alias rebash="source ~/.bash_profile"
# Restart chunkwm or skhd
alias rechunk="brew services restart chunkwm"
alias rekey="brew services restart skhd"
# Update macOS and Homebrew. Also clean up Homebrew.
alias update="sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup"
# Finder
alias f="open ."
alias fkill="killall Finder"
# Cleanup
alias tidy="find . -type f -name '*.DS_Store' -ls -delete"
alias empty="sudo rm -rf ~/.Trash/*"
# Git
alias gpull="git pull origin master"
# Volume Control (useful for SSH just in case)
alias mute="osascript -e 'set volume output muted true'"
alias volume25="osascript -e 'set volume output volume 25'"
alias volume50="osascript -e 'set volume output volume 50'"
alias volume100="osascript -e 'set volume output volume 100'"
alias volumemax="osascript -e 'set volume output volume 100'"
# CPU Monitoring
alias cpu="top -F -R -o cpu"
# Lists the top 4 processes by CPU usage
alias hogs="ps -acrx -o pid,%cpu,command | awk 'NR<=5'"
# k [app name] or kill [process id]
alias pgrep="pgrep -i"
alias k="pkill -i"
alias cmdkill="pkill -i"
alias kill="kill -9"
alias pidkill="kill -9"
alias temp="osx-cpu-temp"
# Networking
alias netusers="arp -a | awk '/10.0.1/{print \$1, \$2}' | column -t" # Deprecated, needs tweaking to work with current router
alias myip="curl ipinfo.io/ip"
alias copyip="curl ipinfo.io.ip | pbcopy"
# Colorscripts
alias bars=". ~/dotfiles/code/colors/bars"
alias colors=". ~/dotfiles/code/colors/colors"
alias spooky=". ~/dotfiles/code/colors/ghosts"
alias pipes=". ~/dotfiles/code/colors/pipes"
alias slim=". ~/dotfiles/code/colors/slimcolors"
alias tanks=". ~/dotfiles/code/colors/tanks"
# Misc
alias spd="speedtest-cli"
alias dl="youtube-dl"
alias about="neofetch \
--config off \
--uptime_shorthand tiny \
--speed_shorthand on \
--cpu_temp F \
--ip_host ipinfo.io/ip \
--colors 6 4 5 2 4 7 \
--bold off \
--underline off \
--block_range 1 6 \
--block_width 4 \
--ascii_colors 2 3 1 1 5 4 \
--ascii_bold off \
"