Various updates

This commit is contained in:
2020-03-15 14:44:36 -04:00
parent f1cbe81655
commit f02cb843aa
10 changed files with 51 additions and 12 deletions

View File

@@ -1 +0,0 @@
test -f ~/.bashrc && . ~/.bashrc

View File

@@ -1,66 +0,0 @@
#set -x # Print out all of the commands that are executing.
# Unbreak broken, non-colored terminal
export TERM=xterm-256color
# Don't use ^D to exit
set -o ignoreeof
# For Windows setup
test -f ~/.functions && . ~/.functions
test -f ~/.aliases && . ~/.aliases
test -f ~/.aliases.private && . ~/.aliases.private
# Common env must come first.
test -f ~/.private-dotfiles.common/env && . ~/.private-dotfiles.common/env
test -f ~/.private-dotfiles/env && . ~/.private-dotfiles/env
if [[ -d "$HOME/bin" ]]; then
export PATH=$HOME/bin/:$PATH
fi
if [[ -d "$HOME/.dotfiles/bin" ]]; then
export PATH=$HOME/.dotfiles/bin/:$PATH
fi
# TMP and TEMP are defined in the Windows environment. Leaving them set to the default
# Windows temporary directory can have unexpected consequences.
export TMP=/tmp
export TEMP=/tmp
export TMPDIR=/tmp
# Customize the shell prompt
in_git_work_tree() {
git rev-parse --is-inside-work-tree &> /dev/null
}
parse_git_branch() {
if in_git_work_tree; then
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
fi
}
export PS1='\[\033[0;32m\]\[\033[0m\033[0;32m\]\u\[\033[0;36m\] @ \w\[\033[33m\]\n$(parse_git_branch)\[\033[0;32m\]\[\033[0m\033[0;32m\] \$\[\033[0m\033[0;32m\]\[\033[0m\] '
# Git autocompletion
# Git bash file can be downloaded with: `curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash`
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
# Git autocompletion fixes for bash aliases
__git_complete g __git_main
__git_complete gco _git_checkout
__git_complete gl _git_branch
__git_complete gll _git_branch
__git_complete gsh _git_branch
__git_complete gbd _git_branch
__git_complete gpo _git_branch
__git_complete grb _git_branch
__git_complete gm _git_merge
__git_complete gmff _git_merge
__git_complete gmnff _git_merge
fi
cd ~
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

View File

@@ -1 +0,0 @@
set completion-ignore-case on

View File

@@ -95,6 +95,10 @@ processor time and is generally useless.
* Setup git completions for bash:
* `curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash`
### 32-bit dev tools
* Load a 32-bit shell
* Install toolchain: `pacman -S mingw-w64-i686-toolchain`
## Setting up dev tools
* Download the Windows 2003 Resource Kit in order to get tools like `list.exe` (command line hex