knoebber / bashrc

~/.bashrc Commits Diff Raw
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
case $- in
    *i*) ;;
      *) return;;
esac

export EDITOR='vim'
export COSMOS_TUNA_PATH="$HOME/projects/comptche-shop"
export CGO_CFLAGS="-g -O2 -Wno-return-local-addr"
export PATH="/usr/local/lib/node_modules/yarn/bin:$PATH"
# setup rbenv
export PATH="$HOME/.rbenv/bin:$PATH"
if [ -e rbenv ]; then
    eval "$(rbenv init -)"
fi

# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=9001
HISTFILESIZE=18002

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi
if [ -f ~/.bash_ps1 ]; then
    . ~/.bash_ps1
fi