Created
November 1, 2019 13:43
-
-
Save peterdemin/af9611366cc1d11a8f78b571c3bf5d75 to your computer and use it in GitHub Desktop.
My bashrc file from NCBI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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