Update aliases; add clang setup script

This commit is contained in:
Michael Campagnaro 2020-05-14 01:45:07 -04:00
parent 90be84e992
commit 05d0ac65b5
5 changed files with 32 additions and 3 deletions

View File

@ -341,11 +341,12 @@ alias ammend='echo "use am instead"'
alias amend='echo "use am instead"'
alias g='gitCmdWrapper'
alias ga='git add -A'
alias gaa='git add -A; gdc'
alias gaa='git add -A; gdcc'
alias gap='git add -Ap'
alias gau='git add --update'
alias gb='git branch -v'
alias gbd='git branch -D'
alias gbdr='git branch -Dr'
alias gbl='git branch --all'
alias gblm='git blame -wMC'
alias gbm='git branch -m'
@ -368,12 +369,13 @@ alias gcpa='git cherry-pick --abort'
alias gcpc='git cherry-pick --continue'
alias gcps='git cherry-pick -n'
alias gd='git diff'
alias gdc='git diff --cached --color-words'
alias gdc='git diff --cached'
alias gdcc='git diff --cached --color-words'
alias gdm='git diff master'
alias gds='git diff --stat=160,120'
alias gf='git fetch'
alias gfa='git fetch --all'
alias gfd='git fetch --prune'
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

25
script_helpers/clang.sh Normal file
View File

@ -0,0 +1,25 @@
#!/bin/bash
#---------------------------------------------------------------------------------------------------
# API
#---------------------------------------------------------------------------------------------------
get_clang_bin_path() {
declare -n _path=$1
_path="C:\Program Files\LLVM\bin"
if [[ ! -d $_path ]]; then
error "Was unable to find LLVM at "$_path".\n"
exit 1
fi
# Fix up the path
_path="/${_path/:/}" # Remove ':'.
_path="${_path//\\//}" # Remove Windows slashes.
_path="${_path// /\\ }" # Add a backslash before spaces.
# Assuming X64.
printf "${BOLD}${YELLOW}[Clang X64]${NORMAL}\n"
}

View File

@ -12,3 +12,4 @@ Abolish constnat constant
Abolish darw draw
Abolish transfered transferred
Abolish transfering transferring
Abolish haev have

View File

@ -261,3 +261,4 @@ ui
weapon
fov
exe
bitangent

Binary file not shown.