-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_aliases
More file actions
52 lines (33 loc) · 1.33 KB
/
Copy pathbash_aliases
File metadata and controls
52 lines (33 loc) · 1.33 KB
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
alias ..='cd ..'
# for the lulz
alias bitch,=sudo
alias nginx.start='sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.stop='sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.restart='nginx.stop && nginx.start'
alias ls="ls --color=auto"
# Lock screen
alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
# Get local IP
alias local-ip="ipconfig getifaddr en0" # en0 is typically for ethernet and en1 is typically for wifi. Use ifconfig -a to find out interface name
alias u="sudo softwareupdate --install --all \
&& brew update \
&& brew upgrade --all \
&& brew cleanup \
&& brew cask cleanup \
&& npm update -g \
&& vim +PluginUpdate +qall"
alias github-status="curl https://status.github.com/api/status.json"
alias va="source ./venv/bin/activate"
alias vd="deactivate"
alias vc="python3 -m venv venv"
alias tw="TERM=xterm-kitty twt"
alias off-mon="wlr-randr --output DP-3 --off"
# nvim remote
alias nvim_server="nvim --headless --listen 0.0.0.0:6666"
alias nvim_client="nvim --remote-ui --server"
alias sc="grim -o ~/styles/last.png -g '0,0 2560x1440'"
alias uvim="uv run nvim"
alias pvim="poetry run nvim"
alias v="nvim"
alias u="uvim"
alias p="pvim"