From 58b60cb5ebc2a54194c76cb0cf6bb6af9648d589 Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Mon, 23 May 2022 22:59:56 -0400 Subject: [PATCH] Add vagrant and git aliases --- .bash_aliases | 9 +++++++-- .gitconfig | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 96e3db4..b5caf6e 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -30,9 +30,10 @@ alias 'shutdown'='sudo shutdown' alias df='df -x squashfs -x tmpfs -x devtmpfs' # Vagrant shortcuts -alias 'vdup'='vagrant destroy -f && vagrant up' +alias 'vdup'='vagrant destroy -f && vagrant up --no-destroy-on-error' alias 'vpro'='vagrant provision' -alias 'vssh'='ssh-add && vagrant ssh -c "sudo -i"' +alias 'vssh'='ssh-add && vagrant ssh' +alias 'vsshr'='ssh-add && vagrant ssh -c "sudo -i"' alias 'vup'='vagrant up' alias 'vhalt'='vagrant halt' @@ -59,6 +60,10 @@ alias 'tcommit'='git commit -m "testing"' alias 'tamend'='git commit --amend --no-edit --date "`date -R`"' alias 'amend'='git commit -S --amend' alias 'amendnew'='git commit -S --amend --date "`date -R`"' +alias 'giturl'='git remote set-url' +alias 'setorigin'='git remote set-url origin' +alias 'origin'='git remote show origin' +alias 'remote'='git remote' alias 'fetch'='git fetch' alias 'stash'='git stash' alias 'resetb'='git reset --hard @{u}' diff --git a/.gitconfig b/.gitconfig index 946ef3e..4088d70 100644 --- a/.gitconfig +++ b/.gitconfig @@ -3,3 +3,5 @@ [include] path = ~/.gitconfig_other +[init] + defaultBranch = main