Skip to content

Instantly share code, notes, and snippets.

@bretonics bretonics/.bashrc
Last active Oct 26, 2019

Embed
What would you like to do?
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
# Functions
if [ -f ~/.bash_functions ]; then
source ~/.bash_functions
fi
#-------------------------------------------------------------------------------
# USER SPECIFIC
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# HISTORY
HISTSIZE=99999999
HISTFILESIZE=99999999
# HISTCONTROL=ignorespace # ignore spaced-refix commands => do not store in history
# HISTCONTROL=ignoredups # no duplicate lines stored
HISTCONTROL=ignoreboth # ignore same sucessive entries
HISTTIMEFORMAT="[%m/%d/%y %T] " # timestamp format
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# ALIASES
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"
# Remote Access
alias macbook=""
alias mini=""
alias server=""
alias bretonics=""
alias node0=""
alias node1=""
alias node2=""
alias node3=""
#-------------------------------------------------------------------------------
# GLOBAL
#- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Node Version Manager
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.