Instantly share code, notes, and snippets.

@bretonics /.bashrc
Last active Aug 2, 2018

Embed
What would you like to do?
Personalized .bashrc
# .bashrc - interactive non-login shells
# Template from https://gist.github.com/bretonics/f3b61fcd1fa946df6dac
# Andrés Bretón ~ http://andresbreton.com, dev@andresbreton.com
#-------------------------------------------------------------------------------
# SOURCE
# Global Definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
#-------------------------------------------------------------------------------
# USER SPECIFIC
# HISTORY
HISTSIZE=999999 HISTFILESIZE=999999 # size
HISTCONTROL=ignoreboth # ignore same sucessive entries and space-prefixed
# HISTCONTROL=ignoredups # no duplicate lines stored
# HISTCONTROL=ignorespace # ignore spaced-refix commands => do not store in history
HISTTIMEFORMAT="[%m/%d/%y %T] " # timestamp format
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# ALIASES
alias cp="cp -i"
alias rm="rm -i"
alias mv="mv -i"
alias vi="vim"
# OS Dependent
case "${OSTYPE}" in
darwin*)
alias ls="ls -GFh"
alias ll="ls -la"
;;
linux*)
alias ls="ls -GFh --color=yes"
alias ll="ls -la --color=yes"
# SGE
alias qstat="qstat -u `whoami`"
;;
esac
# Git
alias gs="git status"
alias gc="git commit"
# Remote Access
# Perl
alias myPerlTest="perl -MDevel::Cover";
alias myProveTest="HARNESS_PERL_SWITCHES=-MDevel::Cover prove";
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# FUNCTIONS
if [ -f ~/.bash_functions ]; then
source ~/.bash_functions
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment