Create a gist now

Instantly share code, notes, and snippets.

@bretonics /.bashrc
Last active Feb 22, 2018

Embed
Personalized .bashrc
# .bashrc - interactive non-login shells
# Template from https://gist.github.com/bretonics/f3b61fcd1fa946df6dac
#-------------------------------------------------------------------------------
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment