Skip to content

Instantly share code, notes, and snippets.

@peterdemin
Created November 1, 2019 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterdemin/af9611366cc1d11a8f78b571c3bf5d75 to your computer and use it in GitHub Desktop.
Save peterdemin/af9611366cc1d11a8f78b571c3bf5d75 to your computer and use it in GitHub Desktop.
My bashrc file from NCBI
#!/usr/bin/env bash
# bash history
export HISTFILESIZE=99999
export HISTSIZE=99999
# solarized
export TMUX="screen-256color"
# vim
export LC_ALL=en_US.UTF-8
export EDITOR=vim
# ~/bin
export PATH=/home/deminp/bin/:$PATH
# git
source ~/.git-completion.bash
alias tig='git log --graph --decorate --oneline'
# python
if (which virtualenvwrapper.sh 2>/dev/null >/dev/null)
then
source virtualenvwrapper.sh
fi
# Add g+w sticky bit
umask 002
export NVM_DIR="/pmc3/Work/deminp/.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
# http://stackoverflow.com/a/34683596/135079
fixssh() {
eval $(tmux show-env | sed -n 's/^\([^-][^=]*\)=\(.*\)/export \1="\2"/p')
}
alias ll='ls -alF --group-directories-first --color=auto' 2>/dev/null
alias vimg='vim -O $(git diff HEAD --name-only)'
alias vimb='vim -O $(git diff master --name-only)'
export PS1='\h \t \W $ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment