Created
May 10, 2015 11:15
-
-
Save johnf/d9b7be9895a4c1109b3e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/usr/bin/env bash | |
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
HISTSIZE=10000 | |
HISTFILESIZE=100000 | |
HISTTIMEFORMAT='%F %T: ' | |
PROMPT_DIRTRIM=3 | |
# Default editor | |
export EDITOR="vim" | |
# Have less deal with ASCII formatting | |
export LESS="-X -R" | |
# Ignore some useless things in history | |
export HISTIGNORE="&:ls:[bf]g:exit" | |
# Work around typos | |
shopt -s cdspell | |
shopt -s dirspell | |
# Allow easy reediting of multiline commands | |
shopt -s cmdhist | |
# Ignore whitespace in diff | |
alias diff="diff --ignore-tab-expansion --ignore-space-change --ignore-all-space --ignore-blank-lines --unified" | |
# gnome-open is awesome and open is useless | |
alias open="gvfs-open" | |
alias ping="ping -n" | |
export GZIP="--rsyncable" | |
export GREP_OPTIONS="--exclude-dir=\.git --exclude=*.swp --exclude=*.swo --color=auto" | |
complete -f -X '!*.sqlite3' sqlite3 | |
###### | |
# GIT | |
###### | |
# Add git into PS | |
PS1="\[\033[01;34m\]\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[00;33m\]\$(__git_ps1 \" (%s)\")\[\033[01;36m\]\[\033[00m\]\$ " | |
alias ls='ls --color=auto -F' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment