Last active
June 7, 2021 17:52
-
-
Save noahrichards/8c7e79ff7fa034cfed8b15e3e4589892 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Git completion, from git/contrib/completion | |
source ~/.git-completion.bash | |
EDITOR="vim" | |
VISUAL="vim" | |
alias vim="vim -p" | |
# Alias git to "hub", the github-happy version! | |
alias git='hub' | |
alias blaze='bazel' | |
GIT_PS1_SHOWDIRTYSTATE='yesplz' | |
if [ "$DNS" == "" ]; then | |
# Set the (color) term to user@host [dir] | |
PS1='\[\033[00;32m\]\u@\h\[\033[00m\] [\[\033[01;34m\]\w\[\033[00m\]]# ' | |
else | |
# Set the (color) term to user@DNS [dir] | |
PS1='\[\033[00;32m\]\u@$DNS\[\033[00m\] [\[\033[01;34m\]\w\[\033[00m\]]# ' | |
fi | |
# Make ls use colors | |
alias ls='ls -G' | |
# Aliases for common ls shortcuts | |
alias l='ls' | |
alias ll='ls -l' | |
alias la='ls -A' | |
# Compute directory size | |
alias dirsize='du -d 0 -h' | |
# Turn the git prompt on and off | |
alias giton='source ~/bin/gitprompt.sh' | |
alias gitoff='source ~/bin/normalprompt.sh' | |
# Show on the first hit of tab, even if it is ambiguous, instead | |
# of making me hit tab twice | |
bind "set show-all-if-ambiguous on" | |
# Ignore case on completion matches | |
bind "set completion-ignore-case on" | |
export PATH=/usr/local/bin:$PATH:~/bin:/usr/local/sbin | |
# Temporary: add msp430 binutils/gcc to path | |
export PATH=$PATH:/opt/msp430-gcc-4.4.5/bin | |
# Use git achievements! | |
alias gita=git-achievements |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment