Skip to content

Instantly share code, notes, and snippets.

@iboard
Last active September 13, 2019 12:20
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 iboard/ed91af202c66e435469021cef009bec2 to your computer and use it in GitHub Desktop.
Save iboard/ed91af202c66e435469021cef009bec2 to your computer and use it in GitHub Desktop.
Andi's BASHRC
#!/bin/bash
#
# Andi Altendorfer's .bashrc as used on OSX
# BASIC SETUP ==============================================
export TERM="xterm-256color"
export LC_CTYPE=en_US.UTF-8
# Load my function-library
test -f ~/.andi-bash-functions && source ~/.andi-bash-functions
test -f ~/.bashrc.local && source ~/.bashrc.local
export PS1="\$(printf '\h'|colrm 3 20)@\$(printf \u|colrm 3 20):${BLUE}\W${NOCOLOR}:\$(git_prompt) [\j]\$ "
# Make sure the /usr/local/bin path is searched first
export PATH="/usr/local/bin:$PATH"
# ALIASES ==================================================
## OS/Bash
alias l="ls -Gl"
alias ll="ls -Gla"
alias r="echo '' && echo '' && date && pwd && source $HOME/.bashrc && echo ''"
alias rc="clear && echo '' && date && pwd && source $HOME/.bashrc && echo ''"
## Git
alias ga="git add"
alias gl="git log --oneline --color=always --graph --decorate=full"
alias gll="git log --color=always --graph --decorate=full"
alias gs="git status"
alias gss="git status --short | colrm 1 3"
alias gd="git diff --color=always"
alias gc="git commit -av"
alias gp="git push"
## load local settings, not part of the gist
[ -f ~/.bashrc.local ] && source ~/.bashrc.local
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment