-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zsh_aliases
44 lines (36 loc) · 1.42 KB
/
.zsh_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
# ZSH
alias reload="source ~/.zshrc"
# IP addresses
alias ip="dig +short myip.opendns.com @resolver1.opendns.com"
alias ipl="hostname -I"
# System utilities
alias sysupgrade='sudo apt update && sudo apt dist-upgrade -y && sudo apt autoremove -y && sudo apt autoclean && sudo updatedb'
alias restart_audio='pulseaudio -k && sudo alsa force-reload'
alias restart_pulseaudio='sudo killall pulseaudio; rm -rf ~/.config/pulse/*'
alias change_brightness_hdmi='f() { xrandr --output HDMI-2 --brightness $1. };f'
# Ruby & Rails
alias serve='ruby -run -e httpd . -p 8000'
alias ras='rails s -b 0.0.0.0'
alias rr='rails routes'
alias rac='rails c'
alias raredb='rails db:drop db:create db:migrate db:seed'
alias be='bundle exec'
alias bi='bundle install'
# Yarn
alias ys='yarn start'
# Git
alias gac='git add . && git ci'
alias gacp='git add . && git ci && git push'
# NordVPN
alias vpnes='nordvpn connect es'
alias vpnnl='nordvpn connect nl'
alias vpndis='nordvpn disconnect'
# Project folders
alias cdc='cd ~/code/'
alias cdv='cd ~/code/verse/'
alias cdcs='cd ~/code/sabatesduran/'
alias cdhrbs='cd ~/code/hrbs/monolith'
# Apps
alias updateStation='sudo wget -O /opt/Station.AppImage "https://dl.getstation.com/download/linux_64?filetype=AppImage" && sudo chmod +x /opt/Station.AppImage'
alias updateHyper='sudo wget -O /opt/hyper.AppImage "https://releases.hyper.is/download/AppImage" && sudo chmod +x /opt/hyper.AppImage'
alias prp="pipenv run python"