dotfiles/.bash_aliases

40 lines
1.1 KiB
Bash
Raw Normal View History

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'
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'
alias 'pull'='git pull'
alias 'branch'='git branch'
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