2019-09-27 15:19:27 +00:00
|
|
|
# Local system administration
|
|
|
|
alias 'editalias'='vim ~/.bash_aliases && . ~/.bash_aliases'
|
2019-10-17 03:07:35 +00:00
|
|
|
alias 'otheralias'='vim ~/.other_aliases && . ~/.bash_aliases'
|
2019-10-17 02:41:30 +00:00
|
|
|
alias 'viewalias'='view ~/.bash_aliases'
|
2019-09-27 15:19:27 +00:00
|
|
|
alias 'editssh'='vim ~/.ssh/config'
|
2019-11-04 15:24:29 +00:00
|
|
|
alias 'update'='sudo apt update'
|
2019-09-27 15:19:27 +00:00
|
|
|
alias 'upgrade'='sudo apt update && sudo apt upgrade'
|
|
|
|
alias 'install'='sudo apt update && sudo apt install'
|
|
|
|
alias 'restartgui'='sudo service sddm restart'
|
2019-10-17 02:41:30 +00:00
|
|
|
alias 'reboot'='sudo reboot'
|
|
|
|
alias 'shutdown'='sudo shutdown'
|
2019-09-27 15:19:27 +00:00
|
|
|
|
|
|
|
# Vagrant shortcuts
|
|
|
|
alias 'vdup'='vagrant destroy -f && vagrant up'
|
|
|
|
alias 'vpro'='vagrant provision'
|
|
|
|
alias 'vssh'='ssh-add && vagrant ssh'
|
|
|
|
alias 'vup'='vagrant up'
|
|
|
|
|
|
|
|
# Change to project folder
|
|
|
|
alias 'sw'='cd /home/$USER/software && clear'
|
|
|
|
|
|
|
|
# Git shortcuts
|
|
|
|
alias 'gad'='git add . && git diff --cached'
|
2019-10-17 02:41:30 +00:00
|
|
|
alias 'gdiff'='git diff'
|
|
|
|
alias 'status'='git status'
|
2019-11-04 15:12:26 +00:00
|
|
|
alias 'pull'='git pull --rebase'
|
2019-11-04 15:14:10 +00:00
|
|
|
alias 'push'='git push'
|
2019-10-17 22:35:33 +00:00
|
|
|
alias 'branch'='git branch'
|
2019-11-05 15:16:35 +00:00
|
|
|
alias 'unstage'='git reset HEAD'
|
|
|
|
alias 'discard'='git checkout --'
|
2019-10-17 02:41:30 +00:00
|
|
|
alias 'log'='git log'
|
|
|
|
alias 'checkout'='git checkout'
|
|
|
|
alias 'commit'='git commit -S'
|
|
|
|
alias 'amend'='git commit -S --amend'
|
2019-09-27 15:19:27 +00:00
|
|
|
|
|
|
|
# Color shift
|
2019-10-17 02:41:30 +00:00
|
|
|
alias 'night'='redshift -P -O 2500'
|
2019-09-27 15:19:27 +00:00
|
|
|
alias 'day'='redshift -x'
|
|
|
|
|
|
|
|
# SOCKS proxy over SSH
|
|
|
|
alias 'socks'='screen -dm ssh -D 1337 -q -C -N'
|
2019-10-17 03:07:35 +00:00
|
|
|
|
|
|
|
source ~/.other_aliases
|