2019-09-27 15:19:27 +00:00
|
|
|
# Local system administration
|
2019-11-13 15:35:32 +00:00
|
|
|
|
|
|
|
# Alias management
|
2019-09-27 15:19:27 +00:00
|
|
|
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-11-05 16:25:43 +00:00
|
|
|
alias 'refreshalias'='source ~/.bash_aliases'
|
2019-11-13 15:35:32 +00:00
|
|
|
|
|
|
|
# SSH management
|
2019-09-27 15:19:27 +00:00
|
|
|
alias 'editssh'='vim ~/.ssh/config'
|
2019-11-13 15:35:32 +00:00
|
|
|
|
|
|
|
# System packages using apt
|
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'
|
2019-11-13 15:35:32 +00:00
|
|
|
alias 'remove'='sudo apt remove'
|
|
|
|
|
|
|
|
# Restart display manager
|
2019-09-27 15:19:27 +00:00
|
|
|
alias 'restartgui'='sudo service sddm restart'
|
2019-11-13 15:35:32 +00:00
|
|
|
|
|
|
|
# Power management
|
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-05 16:25:43 +00:00
|
|
|
alias 'merge'='git merge --ff-only'
|
|
|
|
alias 'upstream'='git push --set-upstream origin'
|
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-11 16:09:43 +00:00
|
|
|
alias 'list'='git branch -a'
|
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-12-16 22:29:36 +00:00
|
|
|
alias 'fetch'='git fetch'
|
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
|