Skip to content

Instantly share code, notes, and snippets.

@noahrichards
Last active June 7, 2021 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noahrichards/8c7e79ff7fa034cfed8b15e3e4589892 to your computer and use it in GitHub Desktop.
Save noahrichards/8c7e79ff7fa034cfed8b15e3e4589892 to your computer and use it in GitHub Desktop.
# 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