Update aliases
This commit is contained in:
parent
b78bb07cef
commit
7427e2e2ce
22
aliases
22
aliases
|
@ -567,7 +567,7 @@ dl_twitch_vid() {
|
||||||
# 1 arg = use GPU
|
# 1 arg = use GPU
|
||||||
compress-video 1 "$filename" "$temp_name"
|
compress-video 1 "$filename" "$temp_name"
|
||||||
extension="${filename##*.}"
|
extension="${filename##*.}"
|
||||||
mv "$filename" "orig_$filename.$extension"
|
mv "$filename" "orig_$filename"
|
||||||
mv $temp_name.$extension "$filename"
|
mv $temp_name.$extension "$filename"
|
||||||
printf "${BOLD}Make sure to delete the original video file${NORMAL}\n"
|
printf "${BOLD}Make sure to delete the original video file${NORMAL}\n"
|
||||||
fi
|
fi
|
||||||
|
@ -627,7 +627,7 @@ dl_vimeo_vid() {
|
||||||
# 1 arg = use GPU
|
# 1 arg = use GPU
|
||||||
compress-video 1 "$filename" "$temp_name"
|
compress-video 1 "$filename" "$temp_name"
|
||||||
extension="${filename##*.}"
|
extension="${filename##*.}"
|
||||||
mv "$filename" "orig_$filename.$extension"
|
mv "$filename" "orig_$filename"
|
||||||
mv $temp_name.$extension "$filename"
|
mv $temp_name.$extension "$filename"
|
||||||
printf "${BOLD}Make sure to delete the original video file${NORMAL}\n"
|
printf "${BOLD}Make sure to delete the original video file${NORMAL}\n"
|
||||||
fi
|
fi
|
||||||
|
@ -813,11 +813,21 @@ git_commit() {
|
||||||
eval "$cmd"
|
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() {
|
git_commit_signed() {
|
||||||
cmd="git commit -S -m \"$*\""
|
cmd="git commit -S -m \"$*\""
|
||||||
eval "$cmd"
|
eval "$cmd"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
git_fix_nocheckin() {
|
||||||
|
eval "DISABLE_NOCHECKIN=1 git commit --amend -C HEAD"
|
||||||
|
}
|
||||||
|
|
||||||
git_branch_name() {
|
git_branch_name() {
|
||||||
val=`git branch 2>/dev/null | grep '^*' | colrm 1 2`
|
val=`git branch 2>/dev/null | grep '^*' | colrm 1 2`
|
||||||
echo "$val"
|
echo "$val"
|
||||||
|
@ -855,10 +865,10 @@ alias gblm='git blame -wMC'
|
||||||
alias gbm='git branch -m'
|
alias gbm='git branch -m'
|
||||||
alias gbr='git branch -rv'
|
alias gbr='git branch -rv'
|
||||||
alias gc='git commit'
|
alias gc='git commit'
|
||||||
alias gcs='git commit -S' # signed
|
|
||||||
alias gcl='git clone'
|
alias gcl='git clone'
|
||||||
alias gcm='git_commit'
|
alias gcm='git_commit'
|
||||||
alias gcms='git_commit_signed' # signed
|
alias gcms='git_commit_signed' # signed
|
||||||
|
alias gcmno='git_commit_nocheckin'
|
||||||
alias gco='git checkout'
|
alias gco='git checkout'
|
||||||
alias gco-='git checkout -'
|
alias gco-='git checkout -'
|
||||||
alias gcob='git checkout -b'
|
alias gcob='git checkout -b'
|
||||||
|
@ -875,9 +885,9 @@ alias gds='git diff --stat=160,120'
|
||||||
alias gf='git fetch'
|
alias gf='git fetch'
|
||||||
alias gfa='git fetch --all'
|
alias gfa='git fetch --all'
|
||||||
alias gfd='git fetch --prune' # Removes remote branches that don't have a counterpart branch on the remote.
|
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 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 gfixs="git commit -S -a --amend -C HEAD" # signed
|
alias gfixno='git_fix_nocheckin'
|
||||||
alias gfo='git fetch origin'
|
alias gfo='git fetch origin'
|
||||||
alias gfu='git fetch up'
|
alias gfu='git fetch up'
|
||||||
alias gfm='git fetch origin master'
|
alias gfm='git fetch origin master'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user