Create a gist now

Instantly share code, notes, and snippets.

@bretonics /.bashrc
Last active Feb 9, 2018

What would you like to do?
Personalized .bashrc
# .bashrc - interactive non-login shells
################################################################################
# SOURCE
# Global Definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
################################################################################
# USER SPECIFIC
## HISTORY
HISTSIZE=9999 HISTFILESIZE=9999 # size
HISTCONTROL=ignoredups # no duplicate lines stored
HISTCONTROL=ignoreboth # ignore same sucessive entries
HISTCONTROL=ignorespace # ignore spaced-refix commands => do not store in history
HISTTIMEFORMAT="[%m/%d/%y %T] " # timestamp format
## ALIAS
alias ls="ls -GFh --color=yes" # Linux
alias ll="ls -GFhla --color=yes" # Linux
alias ls="ls -GFh" # Mac
alias ll="ls -laGFh" # Mac
alias cp="cp -i"
alias rm="rm -i"
alias mv="mv -i"
alias vi="vim"
# Git
alias gs="git status"
alias gc="git commit"
# Perl
alias myPerlTest="perl -MDevel::Cover";
alias myProveTest="HARNESS_PERL_SWITCHES=-MDevel::Cover prove";
# Remote Access
## FUNCTIONS
if [ -f ~/.bash_functions ]; then
source ~/.bash_functions
fi
## EXPORTS
export LS_COLORS="" # Linux
export LSCOLORS="cxgxcxdxbxegedabagacab" # Mac
export PROMPT_COMMAND='history -a' # add commands to history immediately (terminal resolution)
export PERL5LIB=/usr/local/Library/Perl/5.18/:~/Dropbox/Development/Modules
export HOMEBREW_NO_ANALYTICS=1 # Mac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment