dotfiles/.bash_aliases
Kris Lamoureux db64bfb7aa
Remove default flag from alias branch
Flag -a does not work with some other flags and should not be a
default because of it.
2019-10-17 18:35:33 -04:00

40 lines
1.1 KiB
Bash

# Local system administration
alias 'editalias'='vim ~/.bash_aliases && . ~/.bash_aliases'
alias 'otheralias'='vim ~/.other_aliases && . ~/.bash_aliases'
alias 'viewalias'='view ~/.bash_aliases'
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'
alias 'reboot'='sudo reboot'
alias 'shutdown'='sudo shutdown'
# 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'
alias 'gdiff'='git diff'
alias 'status'='git status'
alias 'pull'='git pull'
alias 'branch'='git branch'
alias 'log'='git log'
alias 'checkout'='git checkout'
alias 'commit'='git commit -S'
alias 'amend'='git commit -S --amend'
# Color shift
alias 'night'='redshift -P -O 2500'
alias 'day'='redshift -x'
# SOCKS proxy over SSH
alias 'socks'='screen -dm ssh -D 1337 -q -C -N'
source ~/.other_aliases