Skip to content

Commit

Permalink
bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilalh committed Jun 26, 2011
1 parent b2de4ae commit b7a2104
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,34 @@

export PS1="Bilalh: $ " # bash prompt

### History Settings
export HISTFILESIZE=10000 # the bash history should save 10000 commands
export HISTCONTROL=erasedups # remove duplicate from history

# don't store history entries that match this pattern
declare -x HISTIGNORE='op:opr:mlgw:cs:mll:ax:jr*:gitx:hista:mlwg:aes*:on:mdb*:histm: *'
declare -x HISTIGNORE='op:opr:mlgw:cs:mll:ax:jr*:gitx:hista:mlwg:aes*:hda:on:mdb*:histm: *'

alias h='history | grep '
alias hist='history | less '


# Bash Settings
### Bash options
shopt -s histappend # all sessions are saved
shopt -s cdspell # fix minor error in cd paths
shopt -s histreedit # allows re-edit on C-R

export EDITOR='vim' # default editor
# Ignores files in tab completion
export FIGNORE=$FIGNORE:.pyc:.o:.class

# Colorize the prompt and commands such as ls
export CLICOLOR=1
export LSCOLORS=ExFxCxDxbxegedabagacad

source ~/.completion/git-completion.bash # git auto complete
source ~/.bash/bashmarks.bash

### Path Settings
# Path settings(bin before current $PATH to override default version)
export PATH=$HOME/bin:/usr/local/bin:$PATH
# scripts
Expand Down

0 comments on commit b7a2104

Please sign in to comment.