Update aliases

This commit is contained in:
Michael Campagnaro 2021-09-13 20:59:47 -04:00
parent b78bb07cef
commit 7427e2e2ce

22
aliases
View File

@ -567,7 +567,7 @@ dl_twitch_vid() {
# 1 arg = use GPU
compress-video 1 "$filename" "$temp_name"
extension="${filename##*.}"
mv "$filename" "orig_$filename.$extension"
mv "$filename" "orig_$filename"
mv $temp_name.$extension "$filename"
printf "${BOLD}Make sure to delete the original video file${NORMAL}\n"
fi
@ -627,7 +627,7 @@ dl_vimeo_vid() {
# 1 arg = use GPU
compress-video 1 "$filename" "$temp_name"
extension="${filename##*.}"
mv "$filename" "orig_$filename.$extension"
mv "$filename" "orig_$filename"
mv $temp_name.$extension "$filename"
printf "${BOLD}Make sure to delete the original video file${NORMAL}\n"
fi
@ -813,11 +813,21 @@ git_commit() {
eval "$cmd"
}
# Performs a commit with the nocheckin prehook disabled.
git_commit_nocheckin() {
cmd="git commit -m \"$*\""
eval "DISABLE_NOCHECKIN=1 $cmd"
}
git_commit_signed() {
cmd="git commit -S -m \"$*\""
eval "$cmd"
}
git_fix_nocheckin() {
eval "DISABLE_NOCHECKIN=1 git commit --amend -C HEAD"
}
git_branch_name() {
val=`git branch 2>/dev/null | grep '^*' | colrm 1 2`
echo "$val"
@ -855,10 +865,10 @@ alias gblm='git blame -wMC'
alias gbm='git branch -m'
alias gbr='git branch -rv'
alias gc='git commit'
alias gcs='git commit -S' # signed
alias gcl='git clone'
alias gcm='git_commit'
alias gcms='git_commit_signed' # signed
alias gcmno='git_commit_nocheckin'
alias gco='git checkout'
alias gco-='git checkout -'
alias gcob='git checkout -b'
@ -875,9 +885,9 @@ alias gds='git diff --stat=160,120'
alias gf='git fetch'
alias gfa='git fetch --all'
alias gfd='git fetch --prune' # Removes remote branches that don't have a counterpart branch on the remote.
alias gfix="git commit --amend -C HEAD"
alias gfixx="git commit --amend -C HEAD ; gp -f"
alias gfixs="git commit -S -a --amend -C HEAD" # signed
alias gfix='git commit --amend -C HEAD'
alias gfixs='git commit -S -a --amend -C HEAD' # signed
alias gfixno='git_fix_nocheckin'
alias gfo='git fetch origin'
alias gfu='git fetch up'
alias gfm='git fetch origin master'